Remove `const` constraint from media_upload’s content

This commit is contained in:
Gergely Polonkai 2016-01-15 13:53:06 +01:00
parent 59ae4b266f
commit 84c0eb569d
2 changed files with 4 additions and 4 deletions

View File

@ -390,7 +390,7 @@ matrix_api_media_thumbnail(MatrixAPI *api,
* @callback
* @content_type: (allow-none): the content type of the file being
* uploaded
* @content: the content to be uploaded
* @content: (transfer full): the content to be uploaded
* @error: return location for a #GError, or %NULL
*
* Upload some content to the content repository.
@ -400,7 +400,7 @@ matrix_api_media_upload(MatrixAPI *api,
MatrixAPICallback callback,
gpointer user_data,
const gchar *content_type,
const GByteArray *content,
GByteArray *content,
GError **error)
{
g_return_if_fail(MATRIX_IS_API(api));

View File

@ -82,7 +82,7 @@ struct _MatrixAPIInterface {
MatrixAPICallback callback,
gpointer user_data,
const gchar *content_type,
const GByteArray *content,
GByteArray *content,
GError **error);
/* Presence */
@ -499,7 +499,7 @@ void matrix_api_media_upload(MatrixAPI *api,
MatrixAPICallback callback,
gpointer user_data,
const gchar *content_type,
const GByteArray *content,
GByteArray *content,
GError **error);
/* Presence */