#include <stdint.h>
#include <stdlib.h>
struct atp_handle;
struct atp_thread_info;
const size_t ATP_THREAD_INFO_SIZE = 24;
#ifdef __cplusplus
extern "C" {
#endif
atp_handle *atp_promote_current_thread_to_real_time(uint32_t audio_buffer_frames,
uint32_t audio_samplerate_hz);
atp_handle *atp_promote_thread_to_real_time(atp_thread_info *thread_info,
uint32_t audio_buffer_frames,
uint32_t audio_samplerate_hz);
int32_t atp_demote_current_thread_from_real_time(atp_handle *handle);
int32_t atp_demote_thread_from_real_time(atp_handle *handle);
int32_t atp_free_handle(atp_handle *handle);
atp_thread_info *atp_get_current_thread_info();
int32_t atp_free_thread_info(atp_thread_info *thread_info);
void atp_serialize_thread_info(atp_thread_info *thread_info, uint8_t *bytes);
atp_thread_info* atp_deserialize_thread_info(uint8_t *bytes);
#ifdef __cplusplus
} #endif