commit - 2ca3a24bea4fd072a7e0f83180161516afd47305
commit + f717154221cea829e8a246839a38c5c1b983711a
blob - dc24c06eec92e79a9617c02e9ef2458ce7123753
blob + 3ce39ee952c20c53b582e0d4fc08252fcf667c81
--- lib/got_lib_privsep.h
+++ lib/got_lib_privsep.h
* separate process which runs under pledge("stdio").
* This sandboxes our own repository parsing code, as well as zlib.
*/
- GOT_IMSG_READ_LOOSE_OBJECT_HEADER_REQUEST,
- GOT_IMSG_READ_LOOSE_OBJECT_HEADER_REPLY,
- GOT_IMSG_READ_LOOSE_BLOB_OBJECT_REQUEST,
- GOT_IMSG_READ_LOOSE_BLOB_OBJECT_REPLY,
- GOT_IMSG_READ_LOOSE_TREE_OBJECT_REQUEST,
- GOT_IMSG_READ_LOOSE_TREE_OBJECT_REPLY,
- GOT_IMSG_READ_LOOSE_COMMIT_OBJECT_REQUEST,
- GOT_IMSG_READ_LOOSE_COMMIT_OBJECT_REPLY,
- GOT_IMSG_READ_PACKED_BLOB_OBJECT_REQUEST,
- GOT_IMSG_READ_PACKED_BLOB_OBJECT_REPLY,
- GOT_IMSG_READ_PACKED_TREE_OBJECT_REQUEST,
- GOT_IMSG_READ_PACKED_TREE_OBJECT_REPLY,
- GOT_IMSG_READ_PACKED_COMMIT_OBJECT_REQUEST,
- GOT_IMSG_READ_PACKED_COMMIT_OBJECT_REPLY
+ GOT_IMSG_LOOSE_OBJECT_HEADER_REQUEST,
+ GOT_IMSG_LOOSE_OBJECT_HEADER_REPLY,
+ GOT_IMSG_LOOSE_BLOB_OBJECT_REQUEST,
+ GOT_IMSG_LOOSE_BLOB_OBJECT_REPLY,
+ GOT_IMSG_LOOSE_TREE_OBJECT_REQUEST,
+ GOT_IMSG_LOOSE_TREE_OBJECT_REPLY,
+ GOT_IMSG_LOOSE_COMMIT_OBJECT_REQUEST,
+ GOT_IMSG_LOOSE_COMMIT_OBJECT_REPLY,
+ GOT_IMSG_PACKED_BLOB_OBJECT_REQUEST,
+ 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
};
/* Structure for GOT_IMSG_ERROR. */
*/
};
-/* Structure for GOT_IMSG_READ_LOOSE_OBJECT_HEADER_REQUEST data. */
-struct got_imsg_read_loose_object_header_request {
+/* Structure for GOT_IMSG_LOOSE_OBJECT_HEADER_REQUEST data. */
+struct got_imsg_loose_object_header_request {
/*
* Empty since the following is implied: If imsg fd == -1 then
* read raw object data from imsg buffer, else read from fd.
*/
};
-/* Structure for GOT_IMSG_READ_LOOSE_OBJECT_HEADER_REPLY data. */
-struct got_imsg_read_loose_object_header_reply {
+/* Structure for transmitting struct got_object data in an imsg. */
+struct got_imsg_object {
/* These fields are the same as in struct got_object. */
int type;
int flags;
int ndeltas; /* this many GOT_IMSG_DELTA messages follow */
};
+/* Structure for GOT_IMSG_LOOSE_OBJECT_HEADER_REPLY data. */
+struct got_imsg_loose_object_header_reply {
+ struct got_imsg_object iobj;
+};
+
/* TODO: Implement the above, and then add more message data types here. */