aboutsummaryrefslogtreecommitdiffstats
path: root/src/servers/master.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-17 19:26:25 +0200
committerMattias Andrée <maandree@kth.se>2016-07-17 19:26:25 +0200
commitf9a45c8a0cbe0ca4cbf6061e7b68ee20f9dbee39 (patch)
tree2c36a5febbb405845da3119459903603d80879c8 /src/servers/master.h
parentMore refactoring (diff)
downloadcoopgammad-f9a45c8a0cbe0ca4cbf6061e7b68ee20f9dbee39.tar.gz
coopgammad-f9a45c8a0cbe0ca4cbf6061e7b68ee20f9dbee39.tar.bz2
coopgammad-f9a45c8a0cbe0ca4cbf6061e7b68ee20f9dbee39.tar.xz
Even more refactoring
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/servers/master.h')
-rw-r--r--src/servers/master.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/servers/master.h b/src/servers/master.h
new file mode 100644
index 0000000..d7ef6e5
--- /dev/null
+++ b/src/servers/master.h
@@ -0,0 +1,36 @@
+/**
+ * coopgammad -- Cooperative gamma server
+ * Copyright (C) 2016 Mattias Andrée (maandree@kth.se)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+#ifndef SERVERS_MASTER_H
+#define SERVERS_MASTER_H
+
+
+/**
+ * Disconnect all clients
+ */
+void disconnect_all(void);
+
+/**
+ * The program's main loop
+ *
+ * @return Zero on success, -1 on error
+ */
+int main_loop(void);
+
+
+#endif
+