summaryrefslogtreecommitdiff
path: root/gio/gsocketaddress.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2013-12-06 12:23:09 +0000
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-11-07 10:48:32 +0100
commit25a7c817d3cbef8b6508b44bca6d0b01ca77916b (patch)
tree22f5321329f61c74ab335cf9149b6fe484aad6dc /gio/gsocketaddress.c
parent90808a02796449615947e49ae57f5f4fa2e404ea (diff)
glib: Add missing (nullable) and (optional) annotations
Add various (nullable) and (optional) annotations which were missing from a variety of functions. Also port a couple of existing (allow-none) annotations in the same files to use (nullable) and (optional) as appropriate instead. Secondly, add various (not nullable) annotations as needed by the new default in gobject-introspection of marking gpointers as (nullable). See https://bugzilla.gnome.org/show_bug.cgi?id=729660. This includes adding some stub documentation comments for the assertion macro error functions, which weren’t previously documented. The new comments are purely to allow for annotations, and hence are marked as (skip) to prevent the symbols appearing in the GIR file. https://bugzilla.gnome.org/show_bug.cgi?id=719966
Diffstat (limited to 'gio/gsocketaddress.c')
-rw-r--r--gio/gsocketaddress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gsocketaddress.c b/gio/gsocketaddress.c
index cefd9e0fc..6f5c4958b 100644
--- a/gio/gsocketaddress.c
+++ b/gio/gsocketaddress.c
@@ -192,7 +192,7 @@ g_socket_address_to_native (GSocketAddress *address,
/**
* g_socket_address_new_from_native:
- * @native: a pointer to a struct sockaddr
+ * @native: (not nullable): a pointer to a struct sockaddr
* @len: the size of the memory location pointed to by @native
*
* Creates a #GSocketAddress subclass corresponding to the native