summaryrefslogtreecommitdiff
path: root/net_rewrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'net_rewrite.c')
-rw-r--r--net_rewrite.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/net_rewrite.c b/net_rewrite.c
deleted file mode 100644
index 55a3520..0000000
--- a/net_rewrite.c
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-#include <stdio.h>
-
-#include <strophe.h>
-
-
-// the state of net
-typedef enum {
- DISCONNECTED, // initial state
-} net_state_t;
-
-
-// these variables stay initialized for the whole runtime
-static net_state_t state;
-static xmpp_log_t* log;
-static xmpp_ctx_t* ctx;
-
-
-void net_init(void) {
-
- fprintf(stderr, "limox: net_init()\n");
-
- xmpp_initialize();
- log = xmpp_get_default_logger(XMPP_LEVEL_DEBUG); // or NULL for silence
- ctx = xmpp_ctx_new(NULL, log);
-
- state = DISCONNECTED;
-}
-
-void net_run_once(void) {
- // TODO
-}
-
-void net_quit(void) {
-
- fprintf(stderr, "limox: net_quit()\n");
-
- xmpp_ctx_free(ctx);
- xmpp_shutdown();
-
-}
-
-void net_connect(const char* jid, const char* password) {
- // TODO
-}
-
-void net_disconnect(void) {
- // TODO
-}
-
-void net_send_message(const char* sender, const char* content,
- const char* recipient) {
- // TODO
-}