16 #ifndef JANUS_TURNREST_H
17 #define JANUS_TURNREST_H
19 #ifdef HAVE_TURNRESTAPI
24 void janus_turnrest_init(
void);
26 void janus_turnrest_deinit(
void);
36 void janus_turnrest_set_backend(
const char *server,
const char *key,
const char *method,
const uint timeout);
39 const char *janus_turnrest_get_backend(
void);
43 typedef struct janus_turnrest_response {
52 } janus_turnrest_response;
55 typedef struct janus_turnrest_instance {
62 } janus_turnrest_instance;
65 void janus_turnrest_response_destroy(janus_turnrest_response *response);
72 janus_turnrest_response *janus_turnrest_request(
const char *user);