From 40164b64876f25c9cf53b2b288dabc91e23551d0 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Fri, 29 Jun 2018 13:44:41 +0800 Subject: room/message --- room.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 room.h (limited to 'room.h') diff --git a/room.h b/room.h new file mode 100644 index 0000000..4678f01 --- /dev/null +++ b/room.h @@ -0,0 +1,26 @@ +#ifndef LIBMC_ROOM_H +#define LIBMC_ROOM_H + +#include +#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 -- cgit v1.2.3