Commit a1dfecc8 authored by Dafydd Harries's avatar Dafydd Harries
Browse files

tidy up event code

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