]> git.ozlabs.org Git - petitboot/blobdiff - lib/pb-protocol/pb-protocol.h
Add boot_option_copy routine
[petitboot] / lib / pb-protocol / pb-protocol.h
index ce9c96b42cb68090d2a011e3e518aa0a3d146b5c..c8ce36bb328d7944ddd29c2c4558da37a065dbb7 100644 (file)
@@ -41,6 +41,8 @@ struct boot_option {
        struct list_item list;
 };
 
+struct boot_option *boot_option_copy(void* ctx, const struct boot_option *opt);
+
 int pb_protocol_device_len(struct device *dev);
 
 int pb_protocol_serialise_string(char *pos, const char *str);
@@ -52,7 +54,7 @@ int pb_protocol_serialise_device(struct device *dev, char *buf, int buf_len);
 int pb_protocol_write_message(int fd, struct pb_protocol_message *message);
 
 struct pb_protocol_message *pb_protocol_create_message(void *ctx,
-               int action, int payload_len);
+               enum pb_protocol_action action, int payload_len);
 
 struct pb_protocol_message *pb_protocol_read_message(void *ctx, int fd);