summaryrefslogtreecommitdiffstats
path: root/lib/types/types.h
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-02-14 15:56:55 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-08-15 11:40:09 +1000
commit98b04aa42a4f1dc8e585f00d75c3b28d9e9aa2a9 (patch)
tree5d87ea583c6d8c5a8b92628c611ac417ddd272be /lib/types/types.h
parent4974b691020cca86ce6c7f1f62c7c3fee4f52c61 (diff)
downloadtalos-petitboot-98b04aa42a4f1dc8e585f00d75c3b28d9e9aa2a9.tar.gz
talos-petitboot-98b04aa42a4f1dc8e585f00d75c3b28d9e9aa2a9.zip
lib: Add plugin_option type and protocol
Add a new struct 'plugin_option' to represent pb-plugins that are installed on the system. This consists of plugin metadata and an array of installed executables. This also adds two new pb-protocol actions to advertise the addition of a new plugin_option, and to remove known plugin_options. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'lib/types/types.h')
-rw-r--r--lib/types/types.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/types/types.h b/lib/types/types.h
index 7f4ae1f..36841cd 100644
--- a/lib/types/types.h
+++ b/lib/types/types.h
@@ -60,6 +60,21 @@ struct boot_option {
void *ui_info;
};
+struct plugin_option {
+ char *id;
+ char *name;
+ char *vendor;
+ char *vendor_id;
+ char *version;
+ char *date;
+ char *plugin_file;
+
+ unsigned int n_executables;
+ char **executables;
+
+ void *ui_info;
+};
+
struct boot_command {
char *option_id;
char *boot_image_file;
OpenPOWER on IntegriCloud