Files
purple-plugin-delta/delta-connection.h
Nick Thomas 12ef4d5125 Fix compilation against deltachat-core v0.35.0
The plugin doesn't work yet. Thread handling has changed significantly,
and other changes may also be needed.
2019-01-06 01:22:29 +00:00

26 lines
596 B
C

#ifndef DELTA_CONNECTION_H
#define DELTA_CONNECTION_H
#include <glib.h>
#include <deltachat/deltachat.h>
struct _PurpleConnection;
//struct _dc_context_t;
typedef struct _DeltaConnectionData {
struct _PurpleConnection *pc;
dc_context_t *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