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
9ca1eb42
Commit
9ca1eb42
authored
Nov 04, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove stream_find_component_by_fd and component_find_socket_by_fd since they are unused
parent
ae614812
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
53 deletions
+0
-53
agent/component.c
agent/component.c
+0
-25
agent/component.h
agent/component.h
+0
-3
agent/stream.c
agent/stream.c
+0
-22
agent/stream.h
agent/stream.h
+0
-3
No files found.
agent/component.c
View file @
9ca1eb42
...
@@ -120,31 +120,6 @@ component_free (Component *cmp)
...
@@ -120,31 +120,6 @@ component_free (Component *cmp)
g_slice_free
(
Component
,
cmp
);
g_slice_free
(
Component
,
cmp
);
}
}
/**
* Returns a component UDP socket struct that uses handle 'fd'.
*
* Note: there might be multiple sockets using the same
* handle.
*/
NiceSocket
*
component_find_socket_by_fd
(
Component
*
component
,
guint
fd
)
{
GSList
*
i
;
/* XXX: this won't work anymore, a single fd may be used
* by multiple candidates */
for
(
i
=
component
->
sockets
;
i
;
i
=
i
->
next
)
{
NiceSocket
*
sockptr
=
i
->
data
;
if
(
sockptr
->
fileno
==
fd
)
return
sockptr
;
}
return
NULL
;
}
/**
/**
* Finds a candidate pair that has matching foundation ids.
* Finds a candidate pair that has matching foundation ids.
*
*
...
...
agent/component.h
View file @
9ca1eb42
...
@@ -102,9 +102,6 @@ component_new (
...
@@ -102,9 +102,6 @@ component_new (
void
void
component_free
(
Component
*
cmp
);
component_free
(
Component
*
cmp
);
NiceSocket
*
component_find_socket_by_fd
(
Component
*
component
,
guint
fd
);
gboolean
gboolean
component_find_pair
(
Component
*
cmp
,
NiceAgent
*
agent
,
const
gchar
*
lfoundation
,
const
gchar
*
rfoundation
,
CandidatePair
*
pair
);
component_find_pair
(
Component
*
cmp
,
NiceAgent
*
agent
,
const
gchar
*
lfoundation
,
const
gchar
*
rfoundation
,
CandidatePair
*
pair
);
...
...
agent/stream.c
View file @
9ca1eb42
...
@@ -129,28 +129,6 @@ stream_all_components_ready (const Stream *stream)
...
@@ -129,28 +129,6 @@ stream_all_components_ready (const Stream *stream)
}
}
/**
* Returns the component that owns a socket using
* handle 'fd'.
*
* See also component_find_socket_by_fd()
*/
Component
*
stream_find_component_by_fd
(
const
Stream
*
stream
,
guint
fd
)
{
GSList
*
i
;
for
(
i
=
stream
->
components
;
i
;
i
=
i
->
next
)
{
Component
*
component
=
i
->
data
;
NiceSocket
*
socket
=
component_find_socket_by_fd
(
component
,
fd
);
if
(
socket
)
return
component
;
}
return
NULL
;
}
/**
/**
* Initialized the local crendentials for the stream.
* Initialized the local crendentials for the stream.
*/
*/
...
...
agent/stream.h
View file @
9ca1eb42
...
@@ -97,9 +97,6 @@ stream_all_components_ready (const Stream *stream);
...
@@ -97,9 +97,6 @@ stream_all_components_ready (const Stream *stream);
Component
*
Component
*
stream_find_component_by_id
(
const
Stream
*
stream
,
guint
id
);
stream_find_component_by_id
(
const
Stream
*
stream
,
guint
id
);
Component
*
stream_find_component_by_fd
(
const
Stream
*
stream
,
guint
fd
);
void
void
stream_initialize_credentials
(
Stream
*
stream
,
NiceRNG
*
rng
);
stream_initialize_credentials
(
Stream
*
stream
,
NiceRNG
*
rng
);
...
...
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