]> git.ozlabs.org Git - petitboot/blobdiff - discover/event.h
lib/system: Add vgscan, vgchange utilities
[petitboot] / discover / event.h
index 900ced892d11738939dad4381fd4241c4c7208ca..a639d9cfa85b03dc87d749770a757f143aef2f48 100644 (file)
@@ -10,6 +10,10 @@ enum event_type {
 enum event_action {
        EVENT_ACTION_ADD = 20,
        EVENT_ACTION_REMOVE,
+       EVENT_ACTION_URL,
+       EVENT_ACTION_DHCP,
+       EVENT_ACTION_BOOT,
+       EVENT_ACTION_SYNC,
        EVENT_ACTION_MAX,
 };
 
@@ -19,13 +23,14 @@ struct event {
        const char *device;
 
        struct param {
-               const char *name;
-               const char *value;
+               char *name;
+               char *value;
        } *params;
        int n_params;
 };
 
 int event_parse_ad_message(struct event *event, char *buf, int len);
 const char *event_get_param(const struct event *event, const char *name);
+void event_set_param(struct event *event, const char *name, const char *value);
 
 #endif /* _PB_EVENT_H */