summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gio/giomodule.c7
-rw-r--r--gio/giostream.c6
-rw-r--r--gio/gsocketclient.c2
-rw-r--r--gio/gsocketconnection.c2
-rw-r--r--gio/gsocketlistener.c6
5 files changed, 13 insertions, 10 deletions
diff --git a/gio/giomodule.c b/gio/giomodule.c
index d9dbda6b2..e40b7ef7d 100644
--- a/gio/giomodule.c
+++ b/gio/giomodule.c
@@ -723,9 +723,10 @@ lazy_load_modules (GIOExtensionPoint *extension_point)
*
* Gets a list of all extensions that implement this extension point.
* The list is sorted by priority, beginning with the highest priority.
- *
- * Returns: a #GList of #GIOExtension<!-- -->s. The list is owned by
- * GIO and should not be modified
+ *
+ * Returns: (element-type GIOExtension) (transfer none): a #GList of
+ * #GIOExtension<!-- -->s. The list is owned by GIO and should not be
+ * modified.
*/
GList *
g_io_extension_point_get_extensions (GIOExtensionPoint *extension_point)
diff --git a/gio/giostream.c b/gio/giostream.c
index be0483689..9d824edc7 100644
--- a/gio/giostream.c
+++ b/gio/giostream.c
@@ -222,7 +222,8 @@ g_io_stream_is_closed (GIOStream *stream)
* Gets the input stream for this object. This is used
* for reading.
*
- * Returns: a #GInputStream, owned by the #GIOStream. Do not free.
+ * Returns: (transfer none): a #GInputStream, owned by the #GIOStream.
+ * Do not free.
*
* Since: 2.22
*/
@@ -245,7 +246,8 @@ g_io_stream_get_input_stream (GIOStream *stream)
* Gets the output stream for this object. This is used for
* writing.
*
- * Returns: a #GOutputStream, owned by the #GIOStream. Do not free.
+ * Returns: (transfer none): a #GOutputStream, owned by the #GIOStream.
+ * Do not free.
*
* Since: 2.22
*/
diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c
index e05917cbb..d0266ff09 100644
--- a/gio/gsocketclient.c
+++ b/gio/gsocketclient.c
@@ -356,7 +356,7 @@ g_socket_client_set_protocol (GSocketClient *client,
*
* See g_socket_client_set_local_address() for details.
*
- * Returns: a #GSocketAddres or %NULL. don't free
+ * Returns: (transfer none): a #GSocketAddres or %NULL. don't free
*
* Since: 2.22
*/
diff --git a/gio/gsocketconnection.c b/gio/gsocketconnection.c
index 0058adb3a..c68465d95 100644
--- a/gio/gsocketconnection.c
+++ b/gio/gsocketconnection.c
@@ -122,7 +122,7 @@ g_socket_connection_get_output_stream (GIOStream *io_stream)
* This can be useful if you want to do something unusual on it
* not supported by the #GSocketConnection APIs.
*
- * Returns: a #GSocketAddress or %NULL on error.
+ * Returns: (transfer none): a #GSocketAddress or %NULL on error.
*
* Since: 2.22
*/
diff --git a/gio/gsocketlistener.c b/gio/gsocketlistener.c
index 3386091e6..0fba2e78c 100644
--- a/gio/gsocketlistener.c
+++ b/gio/gsocketlistener.c
@@ -254,7 +254,7 @@ g_socket_listener_add_socket (GSocketListener *listener,
* @type: a #GSocketType
* @protocol: a #GSocketProtocol
* @source_object: Optional #GObject identifying this source
- * @effective_address: location to store the address that was bound to, or %NULL.
+ * @effective_address: (out) (allow-none): location to store the address that was bound to, or %NULL.
* @error: #GError for error reporting, or %NULL to ignore.
*
* Creates a socket of type @type and protocol @protocol, binds
@@ -562,7 +562,7 @@ accept_callback (GSocket *socket,
/**
* g_socket_listener_accept_socket:
* @listener: a #GSocketListener
- * @source_object: location where #GObject pointer will be stored, or %NULL
+ * @source_object: (out) (transfer none) (allow-none): location where #GObject pointer will be stored, or %NULL.
* @cancellable: optional #GCancellable object, %NULL to ignore.
* @error: #GError for error reporting, or %NULL to ignore.
*
@@ -639,7 +639,7 @@ g_socket_listener_accept_socket (GSocketListener *listener,
/**
* g_socket_listener_accept:
* @listener: a #GSocketListener
- * @source_object: location where #GObject pointer will be stored, or %NULL
+ * @source_object: (out) (transfer none) (allow-none): location where #GObject pointer will be stored, or %NULL
* @cancellable: optional #GCancellable object, %NULL to ignore.
* @error: #GError for error reporting, or %NULL to ignore.
*