summaryrefslogtreecommitdiff
path: root/room.h
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-06-29 13:44:41 +0800
committerIru Cai <mytbk920423@gmail.com>2018-06-29 13:44:41 +0800
commit40164b64876f25c9cf53b2b288dabc91e23551d0 (patch)
tree041c35001b8d091cc7bf8ad8219bc174545ba152 /room.h
parent1719796a3a10eccf91eadb38c019829110e96294 (diff)
downloadmatrix-curl-40164b64876f25c9cf53b2b288dabc91e23551d0.tar.xz
room/message
Diffstat (limited to 'room.h')
-rw-r--r--room.h26
1 files changed, 26 insertions, 0 deletions
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 <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