Add gtk-doc annotations for the glibtop_init functions.

Their return value should not be freed.
This fixes usage from gnome-instrospection (invalid free).
This commit is contained in:
Benoît Dejean
2015-07-10 20:36:12 +02:00
parent aa7f9df00e
commit 598764c171
+23
View File
@@ -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,