summaryrefslogtreecommitdiffstats
path: root/sources/core.h
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-24 14:37:19 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-24 14:43:10 +0200
commit48de51537ec18606f8adc52e9c43d222a330cf58 (patch)
tree36d833f0c004d52ba4145a2f6947d6a83deca6a9 /sources/core.h
parentc46fa3c9e560ccf4adc35319559d778482b8aac6 (diff)
#971 split socket core logic and main files
Extract socket core and main from ogAdmServer file.
Diffstat (limited to 'sources/core.h')
-rw-r--r--sources/core.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sources/core.h b/sources/core.h
new file mode 100644
index 0000000..dd5cd58
--- /dev/null
+++ b/sources/core.h
@@ -0,0 +1,10 @@
+#ifndef _OG_CORE_H
+#define _OG_CORE_H
+
+extern int socket_rest, socket_agent_rest;
+extern struct ev_loop *og_loop;
+
+int og_socket_server_init(const char *port);
+void og_server_accept_cb(struct ev_loop *loop, struct ev_io *io, int events);
+
+#endif