Fork me on GitHub
Loading...
Searching...
No Matches
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
24void janus_turnrest_init(void);
26void janus_turnrest_deinit(void);
27
28
36void janus_turnrest_set_backend(const char *server, const char *key, const char *method, const uint timeout);
39const char *janus_turnrest_get_backend(void);
40
41
43typedef struct janus_turnrest_response {
45 char *username;
47 char *password;
49 guint32 ttl;
51 GList *servers;
52} janus_turnrest_response;
53
55typedef struct janus_turnrest_instance {
57 char *server;
59 guint16 port;
61 int transport;
62} janus_turnrest_instance;
65void janus_turnrest_response_destroy(janus_turnrest_response *response);
66
67
72janus_turnrest_response *janus_turnrest_request(const char *user);
73
74#endif
75
76#endif