forked from mrim-prpl-team/mrim-prpl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
message.h
18 lines (13 loc) · 816 Bytes
/
message.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef MRIM_MESSAGE_H
#define MRIM_MESSAGE_H
#include "mrim.h"
int mrim_send_im(PurpleConnection *gc, const char *to, const char *message, PurpleMessageFlags flags);
unsigned int mrim_send_typing(PurpleConnection *gc, const char *name,PurpleTypingState typing);
gboolean mrim_send_attention(PurpleConnection *gc, const char *username, guint type);
void mrim_receive_im(MrimData *mrim, MrimPackage *pack);
void mrim_receive_offline_message(MrimData *mrim, gchar *message);
void mrim_send_sms(MrimData *mrim, gchar *phone, gchar *message);
void mrim_chat_whisper(PurpleConnection *gc, int id, const char *who, const char *message);
int mrim_chat_send(PurpleConnection *gc, int id, const char *message, PurpleMessageFlags flags);
void mrim_set_chat_topic(PurpleConnection *gc, int id, const char *topic);
#endif