From 37feda62bd2835eabc779d275301a9b763521f7a Mon Sep 17 00:00:00 2001 From: Samuel Mendoza-Jonas Date: Fri, 16 Jun 2017 15:09:55 +1000 Subject: 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 --- discover/device-handler.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'discover/device-handler.h') 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); -- cgit v1.2.1