summaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-08-20 17:52:16 +0200
committerxengineering <me@xengineering.eu>2022-08-20 17:52:16 +0200
commit4e61f83b432350303aee5635e98d3bc147e8fffa (patch)
tree4ac40e73bbdc648b4cafefd4917df6cd6d1a5983 /net.h
parentb661cc4bde4004f4d7085716680969f4659222a1 (diff)
downloadlimox-4e61f83b432350303aee5635e98d3bc147e8fffa.tar
limox-4e61f83b432350303aee5635e98d3bc147e8fffa.tar.zst
limox-4e61f83b432350303aee5635e98d3bc147e8fffa.zip
Rename limox.{c,h} to net.{c,h}
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