Implement get_pushers

This commit is contained in:
Gergely Polonkai 2016-01-15 14:49:39 +01:00
parent f8e6b4b782
commit 4b62015d93

View File

@ -1352,6 +1352,19 @@ i_update_pusher(MatrixAPI *api,
FALSE, error); 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 static void
matrix_http_api_matrix_api_init(MatrixAPIInterface *iface) matrix_http_api_matrix_api_init(MatrixAPIInterface *iface)
{ {
@ -1375,7 +1388,7 @@ matrix_http_api_matrix_api_init(MatrixAPIInterface *iface)
/* Push notifications */ /* Push notifications */
iface->update_pusher = i_update_pusher; iface->update_pusher = i_update_pusher;
iface->get_pushers = NULL; iface->get_pushers = i_get_pushers;
iface->delete_pusher = NULL; iface->delete_pusher = NULL;
iface->get_pusher = NULL; iface->get_pusher = NULL;
iface->add_pusher = NULL; iface->add_pusher = NULL;