[libgtop] Add gtk-doc annotations for the glibtop_init functions. Their return value should not be freed. This



commit 598764c171e446fb106624787de2db717c009f9f
Author: Benoît Dejean <bdejean gmail com>
Date:   Wed Mar 11 14:44:29 2015 +0100

    Add gtk-doc annotations for the glibtop_init functions.
    Their return value should not be freed.
    This fixes usage from gnome-instrospection (invalid free).

 glibtop.h |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/glibtop.h b/glibtop.h
index 0d3e7dd..4ab947a 100644
--- a/glibtop.h
+++ b/glibtop.h
@@ -126,14 +126,37 @@ extern glibtop *glibtop_global_server;
 
 extern const unsigned long glibtop_server_features;
 
+/**
+ * glibtop_init:
+ *
+ * Returns: (transfer none):
+ */
 glibtop *
 glibtop_init (void);
 
+
+/**
+ * glibtop_init_r:
+ * @server_ptr: (out):
+ * @features:
+ * @flags:
+ *
+ * Returns: (transfer none):
+ */
 glibtop *
 glibtop_init_r (glibtop **server_ptr,
                unsigned long features,
                unsigned flags);
 
+
+/**
+ * glibtop_init_s:
+ * @server_ptr: (out):
+ * @features:
+ * @flags:
+ *
+ * Returns: (transfer none):
+ */
 glibtop *
 glibtop_init_s (glibtop **server_ptr,
                unsigned long features,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]