Commit a1dfecc8 authored by Dafydd Harries's avatar Dafydd Harries

tidy up event code

darcs-hash:20070204183000-c9803-a0097fea720448ab40a782a07e9aea6098f8cbcc.gz
parent 39f85398
......@@ -16,12 +16,6 @@ _nice_event_new (NiceEventType type)
void
nice_event_free (NiceEvent *ev)
{
switch (ev->type)
{
case EVENT_CANDIDATE_SELECTED:
break;
}
g_slice_free (NiceEvent, ev);
}
......@@ -4,13 +4,16 @@
#include <glib.h>
#include "candidate.h"
G_BEGIN_DECLS
typedef enum _NiceEventType NiceEventType;
enum _NiceEventType
{
EVENT_CANDIDATE_SELECTED,
NICE_EVENT_COMPONENT_CONNECTED,
NICE_EVENT_CANDIDATE_SELECTED,
};
......@@ -22,15 +25,14 @@ struct _NiceEvent
union {
struct {
NiceAddress *addr;
guint candidate_id;
} request_port;
guint stream_id;
guint component_id;
NiceAddress addr;
} component_connected;
struct {
NiceAddress *from;
guint from_port;
NiceAddress *to;
guint to_port;
} request_stun_query;
NiceCandidate *local;
NiceCandidate *remote;
} candidate_selected;
};
};
......
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