]> git.ozlabs.org Git - petitboot/blobdiff - lib/pb-protocol/pb-protocol.h
lib/types: Create common file for type definitions
[petitboot] / lib / pb-protocol / pb-protocol.h
index bfa92222606443e6632034c193125d2ad1f45068..07ef7e15f0a1cbe2bf4c501bf3242a947a343793 100644 (file)
@@ -5,6 +5,7 @@
 #include <stdio.h>
 
 #include <list/list.h>
+#include <types/types.h>
 
 #define PB_SOCKET_PATH "/tmp/petitboot.ui"
 
@@ -21,32 +22,6 @@ struct pb_protocol_message {
        char     payload[];
 };
 
-struct device {
-       char *id;
-       char *name;
-       char *description;
-       char *icon_file;
-
-       struct list boot_options;
-
-       int n_options;
-       void *ui_info;
-};
-
-struct boot_option {
-       char *id;
-       char *name;
-       char *description;
-       char *icon_file;
-       char *boot_image_file;
-       char *initrd_file;
-       char *boot_args;
-
-       struct list_item list;
-
-       void *ui_info;
-};
-
 void pb_protocol_dump_device(const struct device *dev, const char *text,
        FILE *stream);
 int pb_protocol_device_len(const struct device *dev);