summaryrefslogtreecommitdiff
path: root/agent/event.c
blob: 53b78bf4af3032a7d3a295e9973c29243fd72661 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

#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)
{
  switch (ev->type)
    {
      case EVENT_CANDIDATE_SELECTED:
        break;
    }

  g_slice_free (NiceEvent, ev);
}