X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=discover%2Fmessage.h;fp=discover%2Fmessage.h;h=d0b0e34ed329c6ec2dd78736304b1af625450b20;hb=32e6a41f33e5576716b351bd473a27939fe94fa1;hp=0000000000000000000000000000000000000000;hpb=000a92b4fa909c432732ac3ed8f28eeeaeac70ee;p=petitboot diff --git a/discover/message.h b/discover/message.h new file mode 100644 index 0000000..d0b0e34 --- /dev/null +++ b/discover/message.h @@ -0,0 +1,31 @@ + +#ifndef _MESSAGE_H +#define _MESSAGE_H + +enum device_action { + DEV_ACTION_ADD_DEVICE = 0, + DEV_ACTION_ADD_OPTION = 1, + DEV_ACTION_REMOVE_DEVICE = 2, + DEV_ACTION_REMOVE_OPTION = 3 +}; + +struct device { + char *id; + char *name; + char *description; + char *icon_file; + + struct boot_option { + char *id; + char *name; + char *description; + char *icon_file; + char *boot_image_file; + char *initrd_file; + char *boot_args; + } *options; + int n_options; +}; + + +#endif /* _MESSAGE_H */