From 4b62015d93ede332b72753989587dd5976fe0d87 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 15 Jan 2016 14:49:39 +0100 Subject: [PATCH] Implement get_pushers --- src/matrix-http-api.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/matrix-http-api.c b/src/matrix-http-api.c index 5eb3f6e..b88bdee 100644 --- a/src/matrix-http-api.c +++ b/src/matrix-http-api.c @@ -1352,6 +1352,19 @@ i_update_pusher(MatrixAPI *api, FALSE, error); } +static void +i_get_pushers(MatrixAPI *api, + MatrixAPICallback callback, + gpointer user_data, + GError **error) +{ + _send(MATRIX_HTTP_API(api), + callback, user_data, + CALL_API, + "GET", "pushrules/", NULL, NULL, NULL, NULL, + FALSE, error); +} + static void matrix_http_api_matrix_api_init(MatrixAPIInterface *iface) { @@ -1375,7 +1388,7 @@ matrix_http_api_matrix_api_init(MatrixAPIInterface *iface) /* Push notifications */ iface->update_pusher = i_update_pusher; - iface->get_pushers = NULL; + iface->get_pushers = i_get_pushers; iface->delete_pusher = NULL; iface->get_pusher = NULL; iface->add_pusher = NULL;