summaryrefslogtreecommitdiff
path: root/room.h
blob: 4678f014008b35afad958d267b559f3ec5b6b460 (plain)
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
#ifndef LIBMC_ROOM_H
#define LIBMC_ROOM_H

#include <json-c/json_object.h>
#include "session.h"

#ifdef __cplusplus
extern "C" {
#endif /* } */

typedef struct
{
	char *from;
	char *to;
	char dir;
	int limit;
	char *filter;
} query_param;

json_object * get_room_messages(matrix_session *sess, const char *roomid, query_param *param);

#ifdef __cplusplus
}
#endif

#endif