aboutsummaryrefslogtreecommitdiffstats
path: root/matrix-api.h
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2015-10-19 16:05:25 +0100
committerRichard van der Hoff <richard@matrix.org>2015-10-19 16:05:25 +0100
commit257a42345d1b7b6780caaf77c06d7c28e9428b9d (patch)
tree6ff4a27c71933ad7193213abfe7be1f890c1a7b9 /matrix-api.h
parent370a3ee7f14c87ae59c117ecdc3a6dfdec8ab705 (diff)
downloadpurple-matrix-257a42345d1b7b6780caaf77c06d7c28e9428b9d.tar.gz
Implement polling for incoming messages
We now receive new messages in existing chats.
Diffstat (limited to 'matrix-api.h')
-rw-r--r--matrix-api.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/matrix-api.h b/matrix-api.h
index 6783fe8..85adea6 100644
--- a/matrix-api.h
+++ b/matrix-api.h
@@ -58,11 +58,13 @@ typedef void (*MatrixApiCallback)(MatrixAccount *account,
* call the /sync API
*
* @param account The MatrixAccount for which to make the request
+ * @param since If non-null, the batch token to start sync from
* @param callback Function to be called when the request completes
* @param user_data Opaque data to be passed to the callback
*/
PurpleUtilFetchUrlData *matrix_sync(MatrixAccount *account,
- MatrixApiCallback callback,
- gpointer user_data);
+ const gchar *since,
+ MatrixApiCallback callback,
+ gpointer user_data);
#endif