summaryrefslogtreecommitdiff
path: root/room.h
diff options
context:
space:
mode:
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