]> git.ozlabs.org Git - petitboot/blobdiff - lib/pb-protocol/pb-protocol.h
Add n_options to struct device
[petitboot] / lib / pb-protocol / pb-protocol.h
index fa5dd86a1ca80ee8824507bbad822e676a9e7b35..b2d57d25b574fbe98de1c6d67a2751606602059e 100644 (file)
@@ -7,7 +7,7 @@
 
 #define PB_SOCKET_PATH "/tmp/petitboot.ui"
 
-#define PB_PROTOCOL_MAX_PAYLOAD_SIZE 4096
+#define PB_PROTOCOL_MAX_PAYLOAD_SIZE (64 * 1024)
 
 enum pb_protocol_action {
        PB_PROTOCOL_ACTION_ADD          = 0x1,
@@ -28,6 +28,7 @@ struct device {
 
        struct list boot_options;
 
+       int n_options;
        void *ui_info;
 };
 
@@ -45,8 +46,6 @@ struct boot_option {
        void *ui_info;
 };
 
-struct boot_option *boot_option_copy(void* ctx, const struct boot_option *opt);
-
 int pb_protocol_device_len(const struct device *dev);
 int pb_protocol_device_cmp(const struct device *a, const struct device *b);