[evolution-data-server] Correct some parameter annotation warnings
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Correct some parameter annotation warnings
- Date: Wed, 22 Jun 2022 16:58:28 +0000 (UTC)
commit 82af4bc80fd011d38731206db3bbfac5009dbdb6
Author: Milan Crha <mcrha redhat com>
Date: Wed Jun 22 18:57:40 2022 +0200
Correct some parameter annotation warnings
src/libedataserver/e-soup-session.c | 6 +++---
src/libedataserver/e-webdav-session.c | 6 +++---
src/libedataserver/e-webdav-session.h | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/libedataserver/e-soup-session.c b/src/libedataserver/e-soup-session.c
index ef2843203..7946cc224 100644
--- a/src/libedataserver/e-soup-session.c
+++ b/src/libedataserver/e-soup-session.c
@@ -1838,7 +1838,7 @@ e_soup_session_message_restarted_cb (SoupMessage *message,
/**
* e_soup_session_util_set_message_request_body:
* @message: a #SoupMessage
- * @content_type: (optional): optional Content-Type of the @data, or %NULL
+ * @content_type: (nullable): optional Content-Type of the @data, or %NULL
* @input_stream (transfer none): the request body data as a #GInputStream
* @length: length of the @data
*
@@ -1875,10 +1875,10 @@ e_soup_session_util_set_message_request_body (SoupMessage *message,
* e_soup_session_util_set_message_request_body_from_data:
* @message: a #SoupMessage
* @create_copy: whether to create copy of the @data
- * @content_type: (optional): optional Content-Type of the @data, or %NULL
+ * @content_type: (nullable): optional Content-Type of the @data, or %NULL
* @data: the request body data
* @length: length of the @data
- * @free_func: (optional): a free function for the @data, or %NULL
+ * @free_func: (nullable): a free function for the @data, or %NULL
*
* Sets the request body of the @message from the @data of the @length, with optional
* @content_type. The function makes sure the @message request body is set again
diff --git a/src/libedataserver/e-webdav-session.c b/src/libedataserver/e-webdav-session.c
index 785dc316f..41da2483e 100644
--- a/src/libedataserver/e-webdav-session.c
+++ b/src/libedataserver/e-webdav-session.c
@@ -1275,7 +1275,7 @@ e_webdav_session_copy_request_headers (SoupMessage *message,
* @data: data to post to the server
* @data_length: length of @data, or -1, when @data is NUL-terminated
* @in_content_type: (nullable): a Content-Type of the @data, or %NULL, to use application/xml
- * @in_headers: (optional): additional #SoupMessageHeaders to be added to the request, or %NULL
+ * @in_headers: (nullable): additional #SoupMessageHeaders to be added to the request, or %NULL
* @out_content_type: (out) (nullable) (transfer full): return location for response Content-Type, or %NULL
* @out_headers: (out) (optional) (transfer full): optional return location for response
#SoupMessageHeaders, or %NULL
* @out_content: (out) (nullable) (transfer full): return location for response content, or %NULL
@@ -2161,7 +2161,7 @@ e_webdav_session_set_if_match_header (SoupMessage *message,
* @uri: URI of the resource to write
* @etag: (nullable): an ETag of the resource, if it's an existing resource, or %NULL
* @content_type: Content-Type of the @bytes to be written
- * @in_headers: (optional): additional #SoupMessageHeaders to be added to the request, or %NULL
+ * @in_headers: (nullable): additional #SoupMessageHeaders to be added to the request, or %NULL
* @stream: a #GInputStream with data to be written
* @stream_length: length of the @stream, or -1 if unknown
* @out_href: (out) (nullable) (transfer full): optional return location for href of the resource, or %NULL
@@ -2306,7 +2306,7 @@ e_webdav_session_put_sync (EWebDAVSession *webdav,
* @uri: URI of the resource to write
* @etag: (nullable): an ETag of the resource, if it's an existing resource, or %NULL
* @content_type: Content-Type of the @bytes to be written
- * @in_headers: (optional): additional #SoupMessageHeaders to be added to the request, or %NULL
+ * @in_headers: (nullable): additional #SoupMessageHeaders to be added to the request, or %NULL
* @bytes: actual bytes to be written
* @length: how many bytes to write, or -1, when the @bytes is NUL-terminated
* @out_href: (out) (nullable) (transfer full): optional return location for href of the resource, or %NULL
diff --git a/src/libedataserver/e-webdav-session.h b/src/libedataserver/e-webdav-session.h
index 6636492dc..c1d22acda 100644
--- a/src/libedataserver/e-webdav-session.h
+++ b/src/libedataserver/e-webdav-session.h
@@ -349,7 +349,7 @@ SoupMessage *
GError **error);
gboolean e_webdav_session_replace_with_detailed_error
(EWebDAVSession *webdav,
- SoupMessage *request,
+ SoupMessage *message,
const GByteArray *response_data,
gboolean ignore_multistatus,
const gchar *prefix,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]