diff options
author | Richard van der Hoff <richard@matrix.org> | 2015-10-19 16:05:25 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2015-10-19 16:05:25 +0100 |
commit | 257a42345d1b7b6780caaf77c06d7c28e9428b9d (patch) | |
tree | 6ff4a27c71933ad7193213abfe7be1f890c1a7b9 /matrix-room.h | |
parent | 370a3ee7f14c87ae59c117ecdc3a6dfdec8ab705 (diff) | |
download | purple-matrix-257a42345d1b7b6780caaf77c06d7c28e9428b9d.tar.gz |
Implement polling for incoming messages
We now receive new messages in existing chats.
Diffstat (limited to 'matrix-room.h')
-rw-r--r-- | matrix-room.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/matrix-room.h b/matrix-room.h index d8c5781..69e297a 100644 --- a/matrix-room.h +++ b/matrix-room.h @@ -21,6 +21,8 @@ #include <glib.h> +#include "libmatrix.h" + struct _PurpleConnection; /* The state event table is a hashtable which maps from event type to @@ -29,16 +31,13 @@ struct _PurpleConnection; */ typedef GHashTable MatrixRoomStateEventTable; -struct _JsonArray; struct _JsonObject; - /** - * Parse a json list of room state into a MatrixRoomStateEventTable + * handle a room within the sync response */ -void matrix_room_parse_state_events(MatrixRoomStateEventTable *state_table, - struct _JsonArray *state_array, struct _JsonObject *event_map); - +void matrix_room_handle_sync(const gchar *room_id, + struct _JsonObject *room_data, MatrixAccount *ma); /** * Figure out the best name for a room, from its state table |