Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
a1dfecc8
Commit
a1dfecc8
authored
Feb 04, 2007
by
Dafydd Harries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tidy up event code
darcs-hash:20070204183000-c9803-a0097fea720448ab40a782a07e9aea6098f8cbcc.gz
parent
39f85398
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
15 deletions
+11
-15
agent/event.c
agent/event.c
+0
-6
agent/event.h
agent/event.h
+11
-9
No files found.
agent/event.c
View file @
a1dfecc8
...
@@ -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
);
}
}
agent/event.h
View file @
a1dfecc8
...
@@ -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
;
};
};
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment