Fork me on GitHub
turnrest.h
Go to the documentation of this file.
1 
16 #ifndef JANUS_TURNREST_H
17 #define JANUS_TURNREST_H
18 
19 #ifdef HAVE_TURNRESTAPI
20 
21 #include <glib.h>
22 
24 void janus_turnrest_init(void);
26 void janus_turnrest_deinit(void);
27 
28 
35 void janus_turnrest_set_backend(const char *server, const char *key, const char *method);
38 const char *janus_turnrest_get_backend(void);
39 
40 
42 typedef struct janus_turnrest_response {
44  char *username;
46  char *password;
48  guint32 ttl;
50  GList *servers;
51 } janus_turnrest_response;
52 
54 typedef struct janus_turnrest_instance {
56  char *server;
58  guint16 port;
60  int transport;
61 } janus_turnrest_instance;
64 void janus_turnrest_response_destroy(janus_turnrest_response *response);
65 
66 
70 janus_turnrest_response *janus_turnrest_request(void);
71 
72 #endif
73 
74 #endif