Loading...
Searching...
No Matches
turnrest.h
Go to the documentation of this file.
#ifndef JANUS_TURNREST_H
#define JANUS_TURNREST_H
#ifdef HAVE_TURNRESTAPI
#include <glib.h>
void janus_turnrest_init(void);
void janus_turnrest_deinit(void);
void janus_turnrest_set_backend(const char *server, const char *key, const char *method, const uint timeout);
const char *janus_turnrest_get_backend(void);
typedef struct janus_turnrest_response {
char *username;
char *password;
guint32 ttl;
GList *servers;
} janus_turnrest_response;
typedef struct janus_turnrest_instance {
char *server;
guint16 port;
int transport;
} janus_turnrest_instance;
void janus_turnrest_response_destroy(janus_turnrest_response *response);
janus_turnrest_response *janus_turnrest_request(const char *user);
#endif
#endif