diff options
author | xengineering <me@xengineering.eu> | 2022-11-27 18:53:12 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-11-27 19:07:49 +0100 |
commit | 2efc9022bf064136bb7cd25bd59971f2b419ff48 (patch) | |
tree | 87ea72030a3bb28f1ddba1675482a9346c5df814 /data.h | |
parent | 8b9ce1d7848bd8ad417a3834d11e1b00c028f8eb (diff) | |
download | limox-2efc9022bf064136bb7cd25bd59971f2b419ff48.tar limox-2efc9022bf064136bb7cd25bd59971f2b419ff48.tar.zst limox-2efc9022bf064136bb7cd25bd59971f2b419ff48.zip |
Switch completely to SDL2 version
The now legacy version of LimoX with GTK4 and libstrophe is now not part
of the main branch anymore. There might be a legacy branch keeping this
version at the time of reading.
This cut of implemented functionality is motivated by these reasons:
- Implementing XMPP is fun, educative and gives full control.
- Low level graphics with SDL2 is portable, fast, educative an mature.
- I do not have to use GLib and a crazy event loop anymore (run and hide)
Diffstat (limited to 'data.h')
-rw-r--r-- | data.h | 40 |
1 files changed, 0 insertions, 40 deletions
@@ -1,40 +0,0 @@ -#ifndef DATA_H -#define DATA_H - -// https://www.rfc-editor.org/rfc/rfc6121#section-2.1.2.5 -typedef enum { - SUB_NONE, - SUB_TO, - SUB_FROM, - SUB_BOTH -} subscription_t; - -typedef struct _message_t { - char* content; - char* sender_jid; - char* recipient_jid; - struct _message_t* next; - void* widget; -} message_t; - -typedef struct _chat_t { - char* jid; - message_t* messages; - void* widget; -} chat_t; - -typedef struct _roster_item_t { - char* name; // could be NULL - char* jid; - subscription_t sub; - chat_t* chat; - struct _roster_item_t* next; - void* widget; -} roster_item_t; - -void data_add_roster_item(const char* jid, const char* subscription, - const char* name); -void data_add_incoming_message(const char* sender_jid, const char* content); -void data_add_outgoing_message(const char* sender_jid, const char* content, - chat_t* chat); -#endif |