Use GApplication to gain bus ownership of org.genivi.LUCHandler1
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>
Wed, 13 Jun 2012 11:18:37 +0000 (12:18 +0100)
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>
Wed, 13 Jun 2012 11:18:37 +0000 (12:18 +0100)
commit82b3f5922bf76d451508228578d34aeb6d63b6aa
tree5ae744d85d24a9eef028e8e0b2ff6b08baa24cb7
parent3571efc391f7e86d92401f8e46814a8fd343c87f
Use GApplication to gain bus ownership of org.genivi.LUCHandler1

In order for the service to respond to client requests properly, we
need to own the org.genivi.LUCHandler1 name on the bus. GApplication
transparently handles this for us. This commit adds a new
LUCHandlerApplication class and uses that for managing the daemon's
lifecycle, including bus ownership, main loop and shutdown after a
period of inactivity.
luc-handler/Makefile.am
luc-handler/luc-handler-application.c [new file with mode: 0644]
luc-handler/luc-handler-application.h [new file with mode: 0644]
luc-handler/main.c