summaryrefslogtreecommitdiff
path: root/gir/glib-2.0.c
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@t-online.de>2012-05-02 21:26:42 +0200
committerRico Tzschichholz <ricotz@t-online.de>2012-05-02 21:26:42 +0200
commit29cc66db433b83c5dd13c1fae8ddc0464ab5d031 (patch)
treea08e4015a8d4402a6d9b5cf6e94f342dd28efd88 /gir/glib-2.0.c
parent4db11376208b4662705d8b7a82ac12ba6fc1f745 (diff)
downloadgobject-introspection-29cc66db433b83c5dd13c1fae8ddc0464ab5d031.tar.gz
Update glib annotations to 2.33.1
Diffstat (limited to 'gir/glib-2.0.c')
-rw-r--r--gir/glib-2.0.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/gir/glib-2.0.c b/gir/glib-2.0.c
index c6612abf..7a1754a4 100644
--- a/gir/glib-2.0.c
+++ b/gir/glib-2.0.c
@@ -11113,6 +11113,29 @@
/**
+ * g_clear_pointer: (skip)
+ * @pp: a pointer to a variable, struct member etc. holding a pointer
+ * @destroy: a function to which a gpointer can be passed, to destroy *@pp
+ *
+ * Clears a reference to a variable.
+ *
+ * @pp must not be %NULL.
+ *
+ * If the reference is %NULL then this function does nothing.
+ * Otherwise, the variable is destroyed using @destroy and the
+ * pointer is set to %NULL.
+ *
+ * This function is threadsafe and modifies the pointer atomically,
+ * using memory barriers where needed.
+ *
+ * A macro is also included that allows this function to be used without
+ * pointer casts.
+ *
+ * Since: 2.34
+ */
+
+
+/**
* g_compute_checksum_for_data:
* @checksum_type: a #GChecksumType
* @data: binary blob to compute the digest of