qga: hang GAConfig/socket_activation off of GAState global
commit0f4d3a4912d1ca6585409b92d1d7fefb8baf60fa
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Sun, 7 Oct 2018 11:02:18 +0000 (7 14:02 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 31 Oct 2018 14:04:20 +0000 (31 09:04 -0500)
tree2d1b5afc7c58a576f201fa820ec48ab021fbd0c8
parent50d5b3c465ffafbd6973acb8afde1f1e4ca5a2da
qga: hang GAConfig/socket_activation off of GAState global

For w32 services we rely on the global GAState to access resources
associated with the agent within service_main(). Currently this is
sufficient for starting the agent since we open the channel once prior
to calling service_main(), and simply start the GMainLoop to start the
agent from within service_main().

Eventually we want to be able to also [re-]open the communication
channel from within service_main(), which requires access to
config/socket_activation variables, so we hang them off GAState in
preparation for that.

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
*dont move GAConfig struct, just the typedef
*fix build bisect for w32
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/main.c