agent: Move I/O callback handling from NiceAgent into Component
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 16 Dec 2013 11:04:30 +0000 (11:04 +0000)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Fri, 31 Jan 2014 06:48:58 +0000 (01:48 -0500)
commit6fe29601eec5514ef267640310af955a686c502d
treed44136500b0fa9d88e8ae62b9dfa27b93f7f1623
parent790974e0b0540e9895968820c33cc855b008c01c
agent: Move I/O callback handling from NiceAgent into Component

Compartmentalise the handling of setting and clearing the user-provided
per-Component I/O callbacks.

Data flows from the socket, through nice_agent_g_source_cb(), to
component_emit_io_callback() which calls the callback provided by the
user when originally attaching to the stream/component.
agent/agent.c
agent/component.c
agent/component.h