Fork me on GitHub
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
turnrest.h
Go to the documentation of this file.
1 
16 #ifndef _JANUS_TURNREST_H
17 #define _JANUS_TURNREST_H
18 
19 #ifdef HAVE_LIBCURL
20 
21 #include <glib.h>
22 
24 void janus_turnrest_init(void);
26 void janus_turnrest_deinit(void);
27 
28 
34 void janus_turnrest_set_backend(const char *server, const char *key);
37 const char *janus_turnrest_get_backend(void);
38 
39 
41 typedef struct janus_turnrest_response {
43  char *username;
45  char *password;
47  guint32 ttl;
49  GList *servers;
50 } janus_turnrest_response;
51 
53 typedef struct janus_turnrest_instance {
55  char *server;
57  guint16 port;
59  int transport;
60 } janus_turnrest_instance;
63 void janus_turnrest_response_destroy(janus_turnrest_response *response);
64 
65 
69 janus_turnrest_response *janus_turnrest_request(void);
70 
71 #endif
72 
73 #endif