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 
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);
40 
41 
43 typedef struct janus_turnrest_response {
45  char *username;
47  char *password;
49  guint32 ttl;
51  GList *servers;
52 } janus_turnrest_response;
53 
55 typedef struct janus_turnrest_instance {
57  char *server;
59  guint16 port;
61  int transport;
62 } janus_turnrest_instance;
65 void janus_turnrest_response_destroy(janus_turnrest_response *response);
66 
67 
72 janus_turnrest_response *janus_turnrest_request(const char *user);
73 
74 #endif
75 
76 #endif