Files
purple-plugin-delta/delta-connection.h
Nick Thomas de213f2b7a 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.
2018-05-07 01:47:00 +01:00

25 lines
563 B
C

#ifndef DELTA_CONNECTION_H
#define DELTA_CONNECTION_H
#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