aboutsummaryrefslogtreecommitdiff
path: root/lib/include/initsock.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/include/initsock.h')
-rw-r--r--lib/include/initsock.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/include/initsock.h b/lib/include/initsock.h
new file mode 100644
index 0000000..5c1437c
--- /dev/null
+++ b/lib/include/initsock.h
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: ISC */
+#ifndef INITSOCK_H
+#define INITSOCK_H
+
+#include "config.h"
+
+#define INIT_SOCK_PATH SOCKDIR "/init.sock"
+
+typedef enum {
+ EIR_STATUS = 0x00,
+} E_INIT_REQUEST;
+
+typedef struct {
+ E_INIT_REQUEST rq;
+} init_request_t;
+
+int init_socket_create(void);
+
+int init_socket_open(const char *tmppath);
+
+int init_socket_send_request(int fd, E_INIT_REQUEST rq);
+
+#endif /* INITSOCK_H */