summaryrefslogtreecommitdiffstats
path: root/discover/discover-server.h
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-02-01 16:11:43 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-08-15 13:03:28 +1000
commitff7293bba1fd4cdf54bb90bd1b7a38dd393fee69 (patch)
tree39c5d79e99c48d577ed9f8a26114b2d8407cfe9e /discover/discover-server.h
parent9f191cc3c194ed51534c22e2dae15b2c08c8abc2 (diff)
downloadtalos-petitboot-ff7293bba1fd4cdf54bb90bd1b7a38dd393fee69.tar.gz
talos-petitboot-ff7293bba1fd4cdf54bb90bd1b7a38dd393fee69.zip
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>
Diffstat (limited to 'discover/discover-server.h')
-rw-r--r--discover/discover-server.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/discover/discover-server.h b/discover/discover-server.h
index 97d07e6..9f3aa62 100644
--- a/discover/discover-server.h
+++ b/discover/discover-server.h
@@ -7,6 +7,8 @@ struct discover_server;
struct device_handler;
struct boot_option;
struct status;
+struct plugin_option;
+struct boot_status;
struct system_info;
struct device;
struct config;
@@ -30,4 +32,7 @@ void discover_server_notify_system_info(struct discover_server *server,
const struct system_info *sysinfo);
void discover_server_notify_config(struct discover_server *server,
const struct config *config);
+void discover_server_notify_plugin_option_add(struct discover_server *server,
+ struct plugin_option *option);
+void discover_server_notify_plugins_remove(struct discover_server *server);
#endif /* _DISCOVER_SERVER_H */
OpenPOWER on IntegriCloud