summaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'net.h')
-rw-r--r--net.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/net.h b/net.h
new file mode 100644
index 0000000..3a53d9e
--- /dev/null
+++ b/net.h
@@ -0,0 +1,13 @@
+#ifndef NET_H
+#define NET_H
+
+// life cycle / event loop related functions
+void net_init(void); // initialize net
+void net_run_once(void); // process event loop for a short amount of time
+void net_quit(void); // disconnect and clean up
+
+// interface for the GUI implementation
+void net_connect(const char* jid, const char* password);
+void net_disconnect(void);
+
+#endif