Rename modify_pusher update_pusher
It reflects the functionality better.
This commit is contained in:
parent
26875278e3
commit
3e464e7318
@ -212,7 +212,7 @@ matrix_api_get_user_presence
|
|||||||
matrix_api_set_user_presence
|
matrix_api_set_user_presence
|
||||||
|
|
||||||
<SUBSECTION>
|
<SUBSECTION>
|
||||||
matrix_api_modify_pusher
|
matrix_api_update_pusher
|
||||||
matrix_api_get_pushers
|
matrix_api_get_pushers
|
||||||
matrix_api_delete_pusher
|
matrix_api_delete_pusher
|
||||||
matrix_api_get_pusher
|
matrix_api_get_pusher
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
* @update_presence_list: virtual function for matrix_api_update_presence_list()
|
* @update_presence_list: virtual function for matrix_api_update_presence_list()
|
||||||
* @get_user_presence: virtual function for matrix_api_get_user_presence()
|
* @get_user_presence: virtual function for matrix_api_get_user_presence()
|
||||||
* @set_user_presence: virtual function for matrix_api_set_user_presence()
|
* @set_user_presence: virtual function for matrix_api_set_user_presence()
|
||||||
* @modify_pusher: virtual function for matrix_api_modify_pusher()
|
* @update_pusher: virtual function for matrix_api_update_pusher()
|
||||||
* @get_pushers: virtual function for matrix_api_get_pushers()
|
* @get_pushers: virtual function for matrix_api_get_pushers()
|
||||||
* @delete_pusher: virtual function for matrix_api_delete_pusher()
|
* @delete_pusher: virtual function for matrix_api_delete_pusher()
|
||||||
* @get_pusher: virtual function for matrix_api_get_pusher()
|
* @get_pusher: virtual function for matrix_api_get_pusher()
|
||||||
@ -532,7 +532,7 @@ matrix_api_set_user_presence(MatrixAPI *api,
|
|||||||
/* Push notifications */
|
/* Push notifications */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* matrix_api_modify_pusher:
|
* matrix_api_update_pusher:
|
||||||
* @api: a #MatrixAPI implementation
|
* @api: a #MatrixAPI implementation
|
||||||
* @callback: (scope async) (allow-none): a function to call when the
|
* @callback: (scope async) (allow-none): a function to call when the
|
||||||
* request is finished
|
* request is finished
|
||||||
@ -541,10 +541,11 @@ matrix_api_set_user_presence(MatrixAPI *api,
|
|||||||
* @pusher: the pusher information
|
* @pusher: the pusher information
|
||||||
* @error: return location for a #GError, or %NULL
|
* @error: return location for a #GError, or %NULL
|
||||||
*
|
*
|
||||||
* Modify a pushers for the active user on this homeserver.
|
* Create, update or delete a pusher for the active user on this
|
||||||
|
* homeserver.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
matrix_api_modify_pusher(MatrixAPI *api,
|
matrix_api_update_pusher(MatrixAPI *api,
|
||||||
MatrixAPICallback callback,
|
MatrixAPICallback callback,
|
||||||
gpointer user_data,
|
gpointer user_data,
|
||||||
MatrixAPIPusher *pusher,
|
MatrixAPIPusher *pusher,
|
||||||
@ -553,7 +554,7 @@ matrix_api_modify_pusher(MatrixAPI *api,
|
|||||||
g_return_if_fail(MATRIX_IS_API(api));
|
g_return_if_fail(MATRIX_IS_API(api));
|
||||||
|
|
||||||
MATRIX_API_GET_IFACE(api)
|
MATRIX_API_GET_IFACE(api)
|
||||||
->modify_pusher(api,
|
->update_pusher(api,
|
||||||
callback, user_data,
|
callback, user_data,
|
||||||
pusher, error);
|
pusher, error);
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,7 @@ struct _MatrixAPIInterface {
|
|||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
/* Push notifications */
|
/* Push notifications */
|
||||||
void (*modify_pusher)(MatrixAPI *api,
|
void (*update_pusher)(MatrixAPI *api,
|
||||||
MatrixAPICallback callback,
|
MatrixAPICallback callback,
|
||||||
gpointer user_data,
|
gpointer user_data,
|
||||||
MatrixAPIPusher *pusher,
|
MatrixAPIPusher *pusher,
|
||||||
@ -529,7 +529,7 @@ void matrix_api_set_user_presence(MatrixAPI *api,
|
|||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
/* Push notifications */
|
/* Push notifications */
|
||||||
void matrix_api_modify_pusher(MatrixAPI *api,
|
void matrix_api_update_pusher(MatrixAPI *api,
|
||||||
MatrixAPICallback callback,
|
MatrixAPICallback callback,
|
||||||
gpointer user_data,
|
gpointer user_data,
|
||||||
MatrixAPIPusher *pusher,
|
MatrixAPIPusher *pusher,
|
||||||
|
@ -1353,7 +1353,7 @@ matrix_http_api_matrix_api_init(MatrixAPIInterface *iface)
|
|||||||
iface->set_user_presence = i_set_user_presence;
|
iface->set_user_presence = i_set_user_presence;
|
||||||
|
|
||||||
/* Push notifications */
|
/* Push notifications */
|
||||||
iface->modify_pusher = NULL;
|
iface->update_pusher = NULL;
|
||||||
iface->get_pushers = NULL;
|
iface->get_pushers = NULL;
|
||||||
iface->delete_pusher = NULL;
|
iface->delete_pusher = NULL;
|
||||||
iface->get_pusher = NULL;
|
iface->get_pusher = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user