diff options
author | xengineering <me@xengineering.eu> | 2022-10-04 10:15:09 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-10-04 10:15:09 +0200 |
commit | ebc1ec7623360bb895723af26a589782ef7b3b33 (patch) | |
tree | 4679c609b67df66f6146131071164ad93eb67c98 /net_rewrite.c | |
parent | ab499add5ac6bc8c61b4fe32838a2a33f81e4867 (diff) | |
download | limox-ebc1ec7623360bb895723af26a589782ef7b3b33.tar limox-ebc1ec7623360bb895723af26a589782ef7b3b33.tar.zst limox-ebc1ec7623360bb895723af26a589782ef7b3b33.zip |
Remove rewrite of net.c
Incremental improvements seem to be better.
Diffstat (limited to 'net_rewrite.c')
-rw-r--r-- | net_rewrite.c | 55 |
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 -} |