libmm-glib,sms: fix get|dup_data() introspection annotations

We need to specify explicitly that the return type is an array of
guint8 elements.
This commit is contained in:
Aleksander Morgado
2017-09-26 15:18:27 +02:00
parent bda7b9a74a
commit 3ee1dc5fa0

View File

@@ -131,7 +131,7 @@ mm_sms_dup_text (MMSms *self)
* *
* Gets the message data. * Gets the message data.
* *
* Returns: (transfer none): The message data, or %NULL if it doesn't contain any (e.g. contains text instead). * Returns: (transfer none) (array length=data_len) (element-type guint8): The message data, or %NULL if it doesn't contain any (e.g. contains text instead).
*/ */
const guint8 * const guint8 *
mm_sms_get_data (MMSms *self, mm_sms_get_data (MMSms *self,
@@ -158,7 +158,7 @@ mm_sms_get_data (MMSms *self,
* *
* Gets the message data. * Gets the message data.
* *
* Returns: (transfer full): The message data, or %NULL if it doesn't contain any (e.g. contains text instead). The returned value should be freed with g_free(). * Returns: (transfer full) (array length=data_len) (element-type guint8): The message data, or %NULL if it doesn't contain any (e.g. contains text instead). The returned value should be freed with g_free().
*/ */
guint8 * guint8 *
mm_sms_dup_data (MMSms *self, mm_sms_dup_data (MMSms *self,