forked from necrosis/slack-libpurple
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathslack-rtm.h
More file actions
16 lines (11 loc) · 674 Bytes
/
slack-rtm.h
File metadata and controls
16 lines (11 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _PURPLE_SLACK_RTM_H
#define _PURPLE_SLACK_RTM_H
#include "json.h"
#include "slack.h"
typedef struct _SlackRTMCall SlackRTMCall;
typedef void SlackRTMCallback(SlackAccount *sa, gpointer user_data, json_value *json, const char *error);
void slack_rtm_connect(SlackAccount *sa);
/* Send an RTM message of the given type (unquoted, escaped json string) with the given key (unquoted, escaped json string), value (const char *json) pairs */
void slack_rtm_send(SlackAccount *sa, SlackRTMCallback *callback, gpointer user_data, const char *type, /* const char *key1, const char *json1, */ ...) G_GNUC_NULL_TERMINATED;
void slack_rtm_cancel(SlackRTMCall *call);
#endif