summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-06-16 15:09:55 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-08-15 13:38:17 +1000
commit37feda62bd2835eabc779d275301a9b763521f7a (patch)
tree6a92baf2ea721f2bc55551f16c9f5651ed83949c /lib
parentff54a215f0ce4c25262b24038841b58274cc51d3 (diff)
downloadtalos-petitboot-37feda62bd2835eabc779d275301a9b763521f7a.zip
talos-petitboot-37feda62bd2835eabc779d275301a9b763521f7a.tar.gz
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 'lib')
-rw-r--r--lib/pb-protocol/pb-protocol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pb-protocol/pb-protocol.h b/lib/pb-protocol/pb-protocol.h
index ce876d0..250c2d1 100644
--- a/lib/pb-protocol/pb-protocol.h
+++ b/lib/pb-protocol/pb-protocol.h
@@ -25,6 +25,7 @@ enum pb_protocol_action {
PB_PROTOCOL_ACTION_ADD_URL = 0xb,
PB_PROTOCOL_ACTION_PLUGIN_OPTION_ADD = 0xc,
PB_PROTOCOL_ACTION_PLUGINS_REMOVE = 0xd,
+ PB_PROTOCOL_ACTION_PLUGIN_INSTALL = 0xe,
};
struct pb_protocol_message {
OpenPOWER on IntegriCloud