Initial integration with libdeltachat

This implements configuration, connection, sending and receiving IMs in the
simplest possible way. Lots and lots of cases are not handled.
This commit is contained in:
2018-05-02 02:09:59 +01:00
parent 2049e30dc5
commit de213f2b7a
7 changed files with 285 additions and 39 deletions

View File

@@ -4,13 +4,21 @@
#include <glib.h>
struct _PurpleConnection;
struct _mrmailbox;
typedef struct _DeltaConnectionData {
struct _PurpleConnection *pc;
struct _mrmailbox *mailbox;
} DeltaConnectionData;
#define MAX_DELTA_CONFIGURE 901
void delta_connection_new(struct _PurpleConnection *pc);
void delta_connection_free(struct _PurpleConnection *pc);
void delta_connection_start_login(PurpleConnection *pc);
int delta_send_im(PurpleConnection *pc, const char *who, const char *message, PurpleMessageFlags flags);
#endif