aboutsummaryrefslogtreecommitdiffstats
path: root/src/server.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-12 11:24:50 +0200
committerMattias Andrée <maandree@kth.se>2016-07-12 11:24:50 +0200
commita27250396644e7f603dc6de3e685b53e1671bf1f (patch)
treef3c48f6f863dece7a1562bdd2a4e5ccd4ca631fe /src/server.h
parentRename project: gammad => coopgammad (diff)
downloadcoopgammad-a27250396644e7f603dc6de3e685b53e1671bf1f.tar.gz
coopgammad-a27250396644e7f603dc6de3e685b53e1671bf1f.tar.bz2
coopgammad-a27250396644e7f603dc6de3e685b53e1671bf1f.tar.xz
Add loop that waits on sockets
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/server.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h
index 1edcf0e..f490f22 100644
--- a/src/server.h
+++ b/src/server.h
@@ -88,3 +88,10 @@ size_t server_marshal(void* buf);
*/
size_t server_unmarshal(const void* buf);
+/**
+ * The program's main loop
+ *
+ * @return Zero on success, -1 on error
+ */
+int main_loop(void);
+