aboutsummaryrefslogtreecommitdiff
path: root/lib/include/initsock.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <goliath@infraroot.at>2019-03-15 11:23:40 +0100
committerDavid Oberhollenzer <goliath@infraroot.at>2019-03-18 14:15:58 +0100
commitc78bbd2f731ae44c7d2588b9bb3d19005f192fc6 (patch)
treef71e53964f09eba1a6f7c98cccdf21c78ff19119 /lib/include/initsock.h
parentc544fcc7a30d9a934b0f8d098e000259e8b9ed62 (diff)
Add helpers for initd socket
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
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 */