it seems we won't need all that many imsg types
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
diff --git a/lib/got_lib_privsep.h b/lib/got_lib_privsep.h
index 6d63ebb..79bae21 100644
--- a/lib/got_lib_privsep.h
+++ b/lib/got_lib_privsep.h
@@ -49,20 +49,16 @@ enum got_imsg_type {
GOT_IMSG_LOOSE_OBJECT_HEADER_REQUEST,
GOT_IMSG_LOOSE_OBJECT_HEADER_REPLY,
GOT_IMSG_LOOSE_BLOB_OBJECT_REQUEST,
- GOT_IMSG_LOOSE_BLOB_OBJECT_REQUEST_OUTPUT,
- GOT_IMSG_LOOSE_BLOB_OBJECT_REPLY,
GOT_IMSG_LOOSE_TREE_OBJECT_REQUEST,
- GOT_IMSG_LOOSE_TREE_OBJECT_REPLY,
- GOT_IMSG_TREE_ENTRY,
GOT_IMSG_LOOSE_COMMIT_OBJECT_REQUEST,
- GOT_IMSG_LOOSE_COMMIT_OBJECT_REPLY,
GOT_IMSG_PACKED_BLOB_OBJECT_REQUEST,
- GOT_IMSG_PACKED_BLOB_OBJECT_REQUEST_OUTPUT,
- GOT_IMSG_PACKED_BLOB_OBJECT_REPLY,
GOT_IMSG_PACKED_TREE_OBJECT_REQUEST,
- GOT_IMSG_PACKED_TREE_OBJECT_REPLY,
GOT_IMSG_PACKED_COMMIT_OBJECT_REQUEST,
- GOT_IMSG_PACKED_COMMIT_OBJECT_REPLY
+ GOT_IMSG_BLOB_OBJECT_REQUEST_OUTPUT,
+ GOT_IMSG_BLOB_OBJECT_REPLY,
+ GOT_IMSG_TREE_OBJECT_REPLY,
+ GOT_IMSG_TREE_ENTRY,
+ GOT_IMSG_COMMIT_OBJECT_REPLY
};
/* Structure for GOT_IMSG_ERROR. */
@@ -128,11 +124,13 @@ struct got_imsg_loose_blob_object_request {
/*
* The following is implied: If imsg fd == -1 then read raw
* blob data from imsg buffer, else read from fd.
+ *
+ * This message is followed by an OBJECT_REQUEST_OUTPUT message.
*/
};
-/* Structure for GOT_IMSG_LOOSE_BLOB_OBJECT_REQUEST_OUTPUT data. */
-struct got_imsg_loose_blob_object_request_output {
+/* Structure for GOT_IMSG_BLOB_OBJECT_REQUEST_OUTPUT data. */
+struct got_imsg_blob_object_request_output {
/*
* Empty since the following is implied: If imsg fd == -1 then
* respond with blob data in imsg buffer, else write to fd.
@@ -156,7 +154,7 @@ struct got_imsg_tree_entry {
/* Followed by entry's name in remaining data of imsg buffer. */
} __attribute__((__packed__));
-/* Structure for transmitting struct got_tree_object data in an imsg. */
+/* Structure for GOT_IMSG_TREE_OBJECT_REPLY data. */
struct got_imsg_tree_object {
int nentries; /* This many TREE_ENTRY messages follow. */
};