client: Create agent data structure and pass it in function callbacks
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 12 Jun 2013 13:54:27 +0000 (16:54 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 13 Jun 2013 07:35:06 +0000 (10:35 +0300)
commit2e43802f8196be75f14890567076da6663654bf3
treee6c6e319cafb6398f3afa884658c4e6e63cb8b63
parentba7f46b82bbe45f9fe14b4999305bc44be2b25ad
client: Create agent data structure and pass it in function callbacks

Collect the agent variables into a data structure and update the agent
functionality to pass this data structure around as function callback
user data.

Update the agent mode input functionality to store both the callback
function and user data pointers. Notice that only only one input
callback can be handled at any one time due to the input handling itself
and the simple storing of callback and user data pointers.
client/agent.c
client/input.c
client/input.h