summaryrefslogtreecommitdiff
path: root/simple-ipc.h
diff options
context:
space:
mode:
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>2021-09-20 15:36:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-09-20 15:57:58 (GMT)
commit59c923229e8b3b0ee30be37e2daf8aa6c91c7f34 (patch)
tree201e8661ad93656eb8f0a19f8b3ef64766737dd3 /simple-ipc.h
parenta3e2033e04ae06ac4f1cda582ac83944df29830d (diff)
downloadgit-59c923229e8b3b0ee30be37e2daf8aa6c91c7f34.zip
git-59c923229e8b3b0ee30be37e2daf8aa6c91c7f34.tar.gz
git-59c923229e8b3b0ee30be37e2daf8aa6c91c7f34.tar.bz2
simple-ipc: move definition of ipc_active_state outside of ifdef
Move the declartion of the `enum ipc_active_state` type outside of the SUPPORTS_SIMPLE_IPC ifdef. A later commit will introduce the `fsmonitor_ipc__*()` API and stub in a "mock" implementation that requires this enum in some function signatures. Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'simple-ipc.h')
-rw-r--r--simple-ipc.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/simple-ipc.h b/simple-ipc.h
index 9c7330f..b396293 100644
--- a/simple-ipc.h
+++ b/simple-ipc.h
@@ -5,13 +5,6 @@
* See Documentation/technical/api-simple-ipc.txt
*/
-#ifdef SUPPORTS_SIMPLE_IPC
-#include "pkt-line.h"
-
-/*
- * Simple IPC Client Side API.
- */
-
enum ipc_active_state {
/*
* The pipe/socket exists and the daemon is waiting for connections.
@@ -43,6 +36,13 @@ enum ipc_active_state {
IPC_STATE__OTHER_ERROR,
};
+#ifdef SUPPORTS_SIMPLE_IPC
+#include "pkt-line.h"
+
+/*
+ * Simple IPC Client Side API.
+ */
+
struct ipc_client_connect_options {
/*
* Spin under timeout if the server is running but can't