]> git.ozlabs.org Git - petitboot/commit
discover: Handle and track plugin_options
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Wed, 1 Feb 2017 05:11:43 +0000 (16:11 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 15 Aug 2017 03:03:28 +0000 (13:03 +1000)
commitff7293bba1fd4cdf54bb90bd1b7a38dd393fee69
tree39c5d79e99c48d577ed9f8a26114b2d8407cfe9e
parent9f191cc3c194ed51534c22e2dae15b2c08c8abc2
discover: Handle and track plugin_options

Track plugin_options in the device_handler. Plugins can be added with
device_handler_add_plugin_option() and accessed via
device_handler_get_plugin().
Extend discover_server to support the new 'add' and 'remove' pb-protocol
actions and advertise new plugins to connecting clients.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
discover/device-handler.c
discover/device-handler.h
discover/discover-server.c
discover/discover-server.h
test/parser/Makefile.am
test/parser/handler.c
test/parser/user-event.c [new file with mode: 0644]