diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2017-06-16 15:09:55 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2017-08-15 13:38:17 +1000 |
commit | 37feda62bd2835eabc779d275301a9b763521f7a (patch) | |
tree | 6a92baf2ea721f2bc55551f16c9f5651ed83949c /discover/device-handler.h | |
parent | ff54a215f0ce4c25262b24038841b58274cc51d3 (diff) | |
download | talos-petitboot-37feda62bd2835eabc779d275301a9b763521f7a.tar.gz talos-petitboot-37feda62bd2835eabc779d275301a9b763521f7a.zip |
discover: Handle plugin install request
Handle "_PLUGIN_INSTALL" requests from clients. Calling the pb-plugin
script from pb-discover ensures different clients don't trip over each
other. Successfully installed plugins are automatically communicated
back to clients once pb-plugin sends a 'plugin' user event.
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/device-handler.h')
-rw-r--r-- | discover/device-handler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/discover/device-handler.h b/discover/device-handler.h index c1bbe7d..a95cc9d 100644 --- a/discover/device-handler.h +++ b/discover/device-handler.h @@ -159,6 +159,8 @@ void device_handler_update_config(struct device_handler *handler, struct config *config); void device_handler_process_url(struct device_handler *handler, const char *url, const char *mac, const char *ip); +void device_handler_install_plugin(struct device_handler *handler, + const char *plugin_file); void device_handler_reinit(struct device_handler *handler); int device_request_write(struct discover_device *dev, bool *release); |