Download raw body.
struct for priv_fds
Howdy,
I'd like to add the following to got_repository.h to prepare for adding
multiple privileged fds to gotwebd, instead of the single one it has
now.
ok?
--
Tracey Emery
diff d6a28ffe187127e3247254d7e242bb52d66eb26b /home/tracey/src/got
blob - b6e44e8b40b8476a471c53fd10cffd4a7ff3b32d
file + include/got_repository.h
--- include/got_repository.h
+++ include/got_repository.h
@@ -177,3 +177,12 @@ const struct got_error *got_repo_get_loose_object_info
/* Obtain the number and size of packed objects in the repository. */
const struct got_error *got_repo_get_packfile_info(int *npackfiles,
int *nobjects, off_t *total_packsize, struct got_repository *);
+
+/*
+ * Container to hold a privileged fd, to be passed to non-privileged processes
+ */
+struct got_priv_fd {
+ TAILQ_ENTRY(got_priv_fd) entry;
+ int id;
+ int fd;
+};
struct for priv_fds