agent: Integrate TcpUserData into Component
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 16 Dec 2013 11:35:11 +0000 (11:35 +0000)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Fri, 31 Jan 2014 06:48:58 +0000 (01:48 -0500)
commit68a9632e645d45821ae54bfbebc709955aa6423a
tree2784cd1a90a751a3ce7ef7382328413b7831a778
parent80716d380230812013533d737ea3c87b77e9dd00
agent: Integrate TcpUserData into Component

It was allocated separately and always set, which is a wasted
allocation. Instead, pull the NiceAgent and Stream pointers into the
Component directly, and eliminate the redundant allocation.

This also means the NiceAgent and Stream are available for use elsewhere
in the Component code (not just with TCP stuff).
agent/agent.c
agent/component.c
agent/component.h
agent/stream.c
agent/stream.h