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
76a5a28a
Commit
76a5a28a
authored
Feb 15, 2007
by
Dafydd Harries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename lookup functions
darcs-hash:20070215231050-c9803-285ce7f280023942f837b05dc7965900e8a99a6a.gz
parent
7523b49b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
agent/agent.c
agent/agent.c
+12
-12
No files found.
agent/agent.c
View file @
76a5a28a
...
@@ -162,7 +162,7 @@ static guint signals[N_SIGNALS];
...
@@ -162,7 +162,7 @@ static guint signals[N_SIGNALS];
static
Stream
*
static
Stream
*
_stream_lookup
(
NiceAgent
*
agent
,
guint
stream_id
)
find_stream
(
NiceAgent
*
agent
,
guint
stream_id
)
{
{
GSList
*
i
;
GSList
*
i
;
...
@@ -179,7 +179,7 @@ _stream_lookup (NiceAgent *agent, guint stream_id)
...
@@ -179,7 +179,7 @@ _stream_lookup (NiceAgent *agent, guint stream_id)
static
gboolean
static
gboolean
_component_lookup
(
find_component
(
NiceAgent
*
agent
,
NiceAgent
*
agent
,
guint
stream_id
,
guint
stream_id
,
guint
component_id
,
guint
component_id
,
...
@@ -191,7 +191,7 @@ _component_lookup (
...
@@ -191,7 +191,7 @@ _component_lookup (
if
(
component_id
!=
1
)
if
(
component_id
!=
1
)
return
FALSE
;
return
FALSE
;
s
=
_stream_lookup
(
agent
,
stream_id
);
s
=
find_stream
(
agent
,
stream_id
);
if
(
stream
==
NULL
)
if
(
stream
==
NULL
)
return
FALSE
;
return
FALSE
;
...
@@ -416,7 +416,7 @@ nice_agent_remove_stream (
...
@@ -416,7 +416,7 @@ nice_agent_remove_stream (
Stream
*
stream
;
Stream
*
stream
;
stream
=
_stream_lookup
(
agent
,
stream_id
);
stream
=
find_stream
(
agent
,
stream_id
);
if
(
!
stream
)
if
(
!
stream
)
return
;
return
;
...
@@ -545,7 +545,7 @@ _local_candidate_lookup (NiceAgent *agent, guint candidate_id)
...
@@ -545,7 +545,7 @@ _local_candidate_lookup (NiceAgent *agent, guint candidate_id)
static
NiceCandidate
*
static
NiceCandidate
*
_local_candidate_lookup
_by_fd
(
NiceAgent
*
agent
,
guint
fd
)
find_candidate
_by_fd
(
NiceAgent
*
agent
,
guint
fd
)
{
{
GSList
*
i
;
GSList
*
i
;
...
@@ -933,12 +933,12 @@ nice_agent_recv (
...
@@ -933,12 +933,12 @@ nice_agent_recv (
Stream
*
stream
;
Stream
*
stream
;
Component
*
component
;
Component
*
component
;
candidate
=
_local_candidate_lookup
_by_fd
(
agent
,
j
);
candidate
=
find_candidate
_by_fd
(
agent
,
j
);
if
(
candidate
==
NULL
)
if
(
candidate
==
NULL
)
continue
;
continue
;
if
(
!
_component_lookup
(
agent
,
candidate
->
stream_id
,
if
(
!
find_component
(
agent
,
candidate
->
stream_id
,
candidate
->
component_id
,
&
stream
,
&
component
))
candidate
->
component_id
,
&
stream
,
&
component
))
continue
;
continue
;
...
@@ -968,10 +968,10 @@ nice_agent_recv_sock (
...
@@ -968,10 +968,10 @@ nice_agent_recv_sock (
Stream
*
stream
;
Stream
*
stream
;
Component
*
component
;
Component
*
component
;
candidate
=
_local_candidate_lookup
_by_fd
(
agent
,
sock
);
candidate
=
find_candidate
_by_fd
(
agent
,
sock
);
g_assert
(
candidate
);
g_assert
(
candidate
);
if
(
!
_component_lookup
(
agent
,
stream_id
,
component_id
,
&
stream
,
&
component
))
if
(
!
find_component
(
agent
,
stream_id
,
component_id
,
&
stream
,
&
component
))
return
0
;
return
0
;
return
_nice_agent_recv
(
agent
,
stream
,
component
,
candidate
,
buf_len
,
buf
);
return
_nice_agent_recv
(
agent
,
stream
,
component
,
candidate
,
buf_len
,
buf
);
...
@@ -1049,7 +1049,7 @@ nice_agent_poll_read (
...
@@ -1049,7 +1049,7 @@ nice_agent_poll_read (
gchar
buf
[
1024
];
gchar
buf
[
1024
];
guint
len
;
guint
len
;
if
(
!
_component_lookup
(
agent
,
candidate
->
stream_id
,
if
(
!
find_component
(
agent
,
candidate
->
stream_id
,
candidate
->
component_id
,
&
stream
,
&
component
))
candidate
->
component_id
,
&
stream
,
&
component
))
break
;
break
;
...
@@ -1078,7 +1078,7 @@ nice_agent_send (
...
@@ -1078,7 +1078,7 @@ nice_agent_send (
Stream
*
stream
;
Stream
*
stream
;
Component
*
component
;
Component
*
component
;
if
(
!
_component_lookup
(
agent
,
stream_id
,
component_id
,
&
stream
,
&
component
))
if
(
!
find_component
(
agent
,
stream_id
,
component_id
,
&
stream
,
&
component
))
return
;
return
;
if
(
component
->
active_candidate
!=
NULL
)
if
(
component
->
active_candidate
!=
NULL
)
...
@@ -1280,7 +1280,7 @@ nice_agent_main_context_attach (
...
@@ -1280,7 +1280,7 @@ nice_agent_main_context_attach (
Component
*
component
;
Component
*
component
;
IOCtx
*
ctx
;
IOCtx
*
ctx
;
if
(
!
_component_lookup
(
agent
,
candidate
->
stream_id
,
if
(
!
find_component
(
agent
,
candidate
->
stream_id
,
candidate
->
component_id
,
&
stream
,
&
component
))
candidate
->
component_id
,
&
stream
,
&
component
))
continue
;
continue
;
...
...
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