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
ee493a3e
Commit
ee493a3e
authored
May 17, 2014
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent: Add new-selected-pair-full
This signal include the whole candidate as the foundation is ambiguous.
parent
4a063d41
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
2 deletions
+38
-2
agent/agent.c
agent/agent.c
+38
-2
No files found.
agent/agent.c
View file @
ee493a3e
...
...
@@ -123,6 +123,7 @@ enum
SIGNAL_INITIAL_BINDING_REQUEST_RECEIVED
,
SIGNAL_RELIABLE_TRANSPORT_WRITABLE
,
SIGNAL_STREAMS_REMOVED
,
SIGNAL_NEW_SELECTED_PAIR_FULL
,
SIGNAL_NEW_CANDIDATE_FULL
,
SIGNAL_NEW_REMOTE_CANDIDATE_FULL
,
...
...
@@ -734,8 +735,13 @@ nice_agent_class_init (NiceAgentClass *klass)
* @lfoundation: The local foundation of the selected candidate pair
* @rfoundation: The remote foundation of the selected candidate pair
*
* This signal is fired once a candidate pair is selected for data transfer for
* a stream's component
* This signal is fired once a candidate pair is selected for data
* transfer for a stream's component This is emitted along with
* #NiceAgent::new-selected-pair-full which has the whole candidate,
* the Foundation of a Candidate is not a unique identifier.
*
* See also: #NiceAgent::new-selected-pair-full
* Deprecated: UNRELEASED: Use #NiceAgent::new-selected-pair-full
*/
signals
[
SIGNAL_NEW_SELECTED_PAIR
]
=
g_signal_new
(
...
...
@@ -886,6 +892,34 @@ nice_agent_class_init (NiceAgentClass *klass)
G_TYPE_INVALID
);
/**
* NiceAgent::new-selected-pair-full
* @agent: The #NiceAgent object
* @stream_id: The ID of the stream
* @component_id: The ID of the component
* @lcandidate: The local #NiceCandidate of the selected candidate pair
* @rcandidate: The remote #NiceCandidate of the selected candidate pair
*
* This signal is fired once a candidate pair is selected for data
* transfer for a stream's component. This is emitted along with
* #NiceAgent::new-selected-pair.
*
* See also: #NiceAgent::new-selected-pair
* Since: UNRELEASED
*/
signals
[
SIGNAL_NEW_SELECTED_PAIR_FULL
]
=
g_signal_new
(
"new-selected-pair-full"
,
G_OBJECT_CLASS_TYPE
(
klass
),
G_SIGNAL_RUN_LAST
,
0
,
NULL
,
NULL
,
NULL
,
G_TYPE_NONE
,
4
,
G_TYPE_UINT
,
G_TYPE_UINT
,
NICE_TYPE_CANDIDATE
,
NICE_TYPE_CANDIDATE
,
G_TYPE_INVALID
);
/**
* NiceAgent::new-candidate-full
* @agent: The #NiceAgent object
...
...
@@ -1930,6 +1964,8 @@ void agent_signal_new_selected_pair (NiceAgent *agent, guint stream_id,
"PEER-RFLX"
:
"???"
);
}
agent_queue_signal
(
agent
,
signals
[
SIGNAL_NEW_SELECTED_PAIR_FULL
],
stream_id
,
component_id
,
lcandidate
,
rcandidate
);
agent_queue_signal
(
agent
,
signals
[
SIGNAL_NEW_SELECTED_PAIR
],
stream_id
,
component_id
,
lcandidate
->
foundation
,
rcandidate
->
foundation
);
...
...
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