1 #include "git-compat-util.h"
2 #include "simple-ipc.h"
4 #ifndef SUPPORTS_SIMPLE_IPC
6 * This source file should only be compiled when Simple IPC is supported.
7 * See the top-level Makefile.
9 #error SUPPORTS_SIMPLE_IPC not defined
12 int ipc_server_run(const char *path
, const struct ipc_server_opts
*opts
,
13 ipc_server_application_cb
*application_cb
,
14 void *application_data
)
16 struct ipc_server_data
*server_data
= NULL
;
19 ret
= ipc_server_run_async(&server_data
, path
, opts
,
20 application_cb
, application_data
);
24 ret
= ipc_server_await(server_data
);
26 ipc_server_free(server_data
);