You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rtpengine/daemon/control_ng.h

38 lines
619 B

#ifndef _CONTROL_NG_H_
#define _CONTROL_NG_H_
#include "obj.h"
#include "cookie_cache.h"
#include "udp_listener.h"
#include "socket.h"
struct poller;
struct control_ng_stats {
sockaddr_t proxy;
int ping;
int offer;
int answer;
int delete;
int query;
int list;
int start_recording;
int stop_recording;
int errors;
};
struct control_ng {
struct obj obj;
struct cookie_cache cookie_cache;
socket_t udp_listeners[2];
};
struct control_ng *control_ng_new(struct poller *, endpoint_t *, unsigned char);
void control_ng_init(void);
extern mutex_t rtpe_cngs_lock;
extern GHashTable *rtpe_cngs_hash;
#endif