Commit Diff


commit - 0dacc2d1e74df1eb6498ea3aa9b99cc54d8091e3
commit + c025a41e7f67c88958f622544f1045bd18a482c3
blob - 876853c722684db199bf4d7592c0280ce39c5c50
blob + 19198aeebdb4e90ebbe8dc7628be1cbb53784090
--- lib/got_lib_privsep.h
+++ lib/got_lib_privsep.h
@@ -28,6 +28,9 @@
  */
 
 enum got_imsg_type {
+	/* An error occured while processing a request. */
+	GOT_IMSG_ERROR,
+
 	/*
 	 * Messages concerned with read access to objects in a repository.
 	 * Object and pack files are opened by the main process, where
@@ -53,6 +56,11 @@ enum got_imsg_type {
 	GOT_IMSG_READ_PACKED_COMMIT_OBJECT_REPLY
 };
 
+/* Structure for GOT_IMSG_ERROR. */
+struct got_imsg_error {
+	int code; /* an error code from got_error.h */
+};
+
 /* Structure for GOT_IMSG_READ_LOOSE_OBJECT_HEADER_REQUEST data. */
 struct got_imsg_read_loose_object_header_request {
 	/*