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>

Carlo Marcelo Arenas Belón committed Sep 20, 2021 at 15:36 UTC 59c923229e8b3b0ee30be37e2daf8aa6c91c7f34
1 file changed +7 -7
simple-ipc.h
+7 -7
@@ -5,13 +5,6 @@
5 * See Documentation/technical/api-simple-ipc.txt
6 */
7
8 -#ifdef SUPPORTS_SIMPLE_IPC
9 -#include "pkt-line.h"
10 -
11 -/*
12 - * Simple IPC Client Side API.
13 - */
14 -
8 enum ipc_active_state {
9 /*
10 * The pipe/socket exists and the daemon is waiting for connections.
@@ -43,6 +36,13 @@ enum ipc_active_state {
36 IPC_STATE__OTHER_ERROR,
37 };
38
39 +#ifdef SUPPORTS_SIMPLE_IPC
40 +#include "pkt-line.h"
41 +
42 +/*
43 + * Simple IPC Client Side API.
44 + */
45 +
46 struct ipc_client_connect_options {
47 /*
48 * Spin under timeout if the server is running but can't