diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-01-02 15:01:40 +0000 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-01-31 01:48:58 -0500 |
commit | c56727025dd1ffa2e0513bf6bfc5218b58e2b483 (patch) | |
tree | 3851f0d5a90db35ff67866c9961f1a585ea7b3b7 /agent/agent-priv.h | |
parent | 12ee430ef3dbe61e52fe1ace5196f1931cf1e2c4 (diff) | |
download | libnice-c56727025dd1ffa2e0513bf6bfc5218b58e2b483.tar.gz |
agent: Move GSource handling into Component
Rather than handle GSource creation, attachment and removal in
NiceAgent, handle it inside Component. This brings it closer to the
networking code, and improves encapsulation of the state of each
Component.
Diffstat (limited to 'agent/agent-priv.h')
-rw-r--r-- | agent/agent-priv.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/agent/agent-priv.h b/agent/agent-priv.h index cf212f8..350d1a3 100644 --- a/agent/agent-priv.h +++ b/agent/agent-priv.h @@ -166,15 +166,16 @@ guint64 agent_candidate_pair_priority (NiceAgent *agent, NiceCandidate *local, N GSource *agent_timeout_add_with_context (NiceAgent *agent, guint interval, GSourceFunc function, gpointer data); -void agent_attach_stream_component_socket (NiceAgent *agent, - Stream *stream, - Component *component, - NiceSocket *socket); - StunUsageIceCompatibility agent_to_ice_compatibility (NiceAgent *agent); StunUsageTurnCompatibility agent_to_turn_compatibility (NiceAgent *agent); NiceTurnSocketCompatibility agent_to_turn_socket_compatibility (NiceAgent *agent); void _priv_set_socket_tos (NiceAgent *agent, NiceSocket *sock, gint tos); +gboolean +component_io_cb ( + GSocket *gsocket, + GIOCondition condition, + gpointer data); + #endif /*_NICE_AGENT_PRIV_H */ |