[evolution-data-server/gnome-3-38] I#296 - CamelMime*: Annotate the data arrays with element-type uint8
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-38] I#296 - CamelMime*: Annotate the data arrays with element-type uint8
- Date: Thu, 11 Feb 2021 09:13:50 +0000 (UTC)
commit 61779b2849dd2bce33d67c00a43eb4c7faa8e49e
Author: Corentin Noël <corentin noel collabora com>
Date: Wed Feb 10 12:29:08 2021 +0100
I#296 - CamelMime*: Annotate the data arrays with element-type uint8
This is the element-type used for data transfers even if it doesn't match the C prototype here.
Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/296
src/camel/camel-mime-filter.c | 10 +++++-----
src/camel/camel-mime-parser.c | 6 +++---
src/camel/camel-mime-part.c | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/camel/camel-mime-filter.c b/src/camel/camel-mime-filter.c
index 23b1032cf..fa9aa7e44 100644
--- a/src/camel/camel-mime-filter.c
+++ b/src/camel/camel-mime-filter.c
@@ -195,10 +195,10 @@ filter_run (CamelMimeFilter *f,
/**
* camel_mime_filter_filter:
* @filter: a #CamelMimeFilter object
- * @in: (array length=len): input buffer
+ * @in: (array length=len) (element-type guint8): input buffer
* @len: length of @in
* @prespace: amount of prespace
- * @out: (out) (array length=outlen): pointer to the output buffer (to be set)
+ * @out: (out) (array length=outlen) (element-type guint8): pointer to the output buffer (to be set)
* @outlen: (out): pointer to the length of the output buffer (to be set)
* @outprespace: (out): pointer to the output prespace length (to be set)
*
@@ -231,10 +231,10 @@ camel_mime_filter_filter (CamelMimeFilter *filter,
/**
* camel_mime_filter_complete:
* @filter: a #CamelMimeFilter object
- * @in: (array length=len): input buffer
+ * @in: (array length=len) (element-type guint8): input buffer
* @len: length of @in
* @prespace: amount of prespace
- * @out: (out) (array length=outlen): pointer to the output buffer (to be set)
+ * @out: (out) (array length=outlen) (element-type guint8): pointer to the output buffer (to be set)
* @outlen: (out): pointer to the length of the output buffer (to be set)
* @outprespace: (out): pointer to the output prespace length (to be set)
*
@@ -293,7 +293,7 @@ camel_mime_filter_reset (CamelMimeFilter *filter)
/**
* camel_mime_filter_backup:
* @filter: a #CamelMimeFilter object
- * @data: (array length=length): data buffer to backup
+ * @data: (array length=length) (element-type guint8): data buffer to backup
* @length: length of @data
*
* Saves @data to be used as prespace input data to the next call to
diff --git a/src/camel/camel-mime-parser.c b/src/camel/camel-mime-parser.c
index adfb92604..a0199a032 100644
--- a/src/camel/camel-mime-parser.c
+++ b/src/camel/camel-mime-parser.c
@@ -649,10 +649,10 @@ camel_mime_parser_drop_step (CamelMimeParser *parser)
/**
* camel_mime_parser_step:
* @parser: MIME parser object
- * @databuffer: (inout) (array length=datalength) (nullable): Pointer to accept a pointer to the data
- * associated with this step (if any). May be %NULL,
+ * @databuffer: (inout) (array length=datalength) (optional) (element-type guint8): Pointer to
+ * accept a pointer to the data associated with this step (if any). May be %NULL,
* in which case datalength is also ingored.
- * @datalength: (inout) (nullable): Pointer to accept a pointer to the data
+ * @datalength: (inout) (optional): Pointer to accept a pointer to the data
* length associated with this step (if any).
*
* Parse the next part of the MIME message. If camel_mime_parser_unstep()
diff --git a/src/camel/camel-mime-part.c b/src/camel/camel-mime-part.c
index a1394446e..ac915040f 100644
--- a/src/camel/camel-mime-part.c
+++ b/src/camel/camel-mime-part.c
@@ -1114,7 +1114,7 @@ camel_mime_part_new (void)
/**
* camel_mime_part_set_content:
* @mime_part: a #CamelMimePart
- * @data: (array length=length) (nullable): data to put into the part
+ * @data: (array length=length) (nullable) (element-type guint8): data to put into the part
* @length: length of @data
* @type: (nullable): Content-Type of the data
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]