Commit a5398e4e authored by Dafydd Harries's avatar Dafydd Harries

remove unused event API

darcs-hash:20070213135600-c9803-b95a4e2aa58beb7e0194da8296c3d9671e5a3f51.gz
parent aa55a7e5
......@@ -18,9 +18,7 @@ libagent_la_SOURCES = \
candidate.h \
candidate.c \
agent.h \
agent.c \
event.h \
event.c
agent.c
libagent_la_LIBADD = \
$(top_builddir)/address/libaddress.la \
......@@ -56,5 +54,5 @@ test_poll_LDADD = $(COMMON_LDADD)
test_mainloop_LDADD = $(COMMON_LDADD)
pkginclude_HEADERS = agent.h candidate.h event.h
pkginclude_HEADERS = agent.h candidate.h
......@@ -7,15 +7,11 @@
#include "udp.h"
#include "address.h"
#include "candidate.h"
#include "event.h"
G_BEGIN_DECLS
typedef struct _NiceAgent NiceAgent;
typedef void (*NiceAgentEventFunc) (
NiceAgent *agent, NiceEvent *event);
typedef void (*NiceAgentRecvFunc) (
NiceAgent *agent, guint stream_id, guint component_id, guint len,
gchar *buf, gpointer user_data);
......@@ -29,7 +25,6 @@ struct _NiceAgent
GSList *local_candidates;
GSList *remote_candidates;
GSList *streams;
GSList *events;
gboolean main_context_set;
GMainContext *main_context;
NiceAgentRecvFunc read_func;
......
#include "address.h"
#include "event.h"
NiceEvent *
_nice_event_new (NiceEventType type)
{
NiceEvent *ev;
ev = g_slice_new0 (NiceEvent);
ev->type = type;
return ev;
}
void
nice_event_free (NiceEvent *ev)
{
g_slice_free (NiceEvent, ev);
}
#ifndef _EVENT_H
#define _EVENT_H
#include <glib.h>
#include "candidate.h"
G_BEGIN_DECLS
typedef enum
{
NICE_EVENT_COMPONENT_CONNECTED,
NICE_EVENT_CANDIDATE_SELECTED,
} NiceEventType;
typedef struct _NiceEvent NiceEvent;
struct _NiceEvent
{
NiceEventType type;
union {
struct {
guint stream_id;
guint component_id;
NiceAddress addr;
} component_connected;
struct {
NiceCandidate *local;
NiceCandidate *remote;
} candidate_selected;
};
};
NiceEvent *
_nice_event_new (NiceEventType type);
void
nice_event_free (NiceEvent *ev);
G_END_DECLS
#endif /* _EVENT_H */
......@@ -25,8 +25,6 @@ T nice_candidate_ice_priority
T nice_candidate_jingle_priority
T nice_candidate_new
T nice_event_free
T nice_interface_free
T nice_interface_new
T nice_list_local_interfaces
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment