From ebc1ec7623360bb895723af26a589782ef7b3b33 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 4 Oct 2022 10:15:09 +0200 Subject: Remove rewrite of net.c Incremental improvements seem to be better. --- net_rewrite.c | 55 ------------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 net_rewrite.c (limited to 'net_rewrite.c') 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 - -#include - - -// 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 -} -- cgit v1.2.3-70-g09d2