-
Notifications
You must be signed in to change notification settings - Fork 44
/
slack_chat.h
61 lines (45 loc) · 888 Bytes
/
slack_chat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef _SLACK_CHAT_H
#define _SLACK_CHAT_H
#include "slack_plugin.h"
#include <glib/gi18n.h>
#include <plugin.h>
#include <prpl.h>
typedef struct _SlackChannel
{
SlackAccount *sa;
PurpleBuddy *buddy;
gchar *id;
gchar *name;
gint purple_id;
guint typeflag;
} SlackChannel;
// on slack login
void
slack_chat_login(PurpleAccount * account);
void
slack_chat_close(PurpleConnection *pc);
void
slack_join_chat(PurpleConnection * gc,
GHashTable * data);
const char *
slack_list_icon(PurpleAccount * account,
PurpleBuddy * buddy);
GList *
slack_statuses(PurpleAccount * acct);
void
slack_buddy_free(PurpleBuddy *buddy);
int
slack_chat_send(
PurpleConnection * gc,
int id,
const char *message,
PurpleMessageFlags flags
);
gint
slack_send_im(
PurpleConnection *pc,
const gchar *who,
const gchar *msg,
PurpleMessageFlags flags
);
#endif //_SLACK_CHAT_H