summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@gmail.com>2015-03-15 00:06:28 +0100
committerBenoît Dejean <bdejean@gmail.com>2015-07-10 20:36:12 +0200
commit71c7d65b1d4875a07422c59eb603a9f7f7b930f6 (patch)
tree16e31b7b5e511b15dfd76077393a692c3ce923d0 /include
parent94aa63f79652383738ff55c5f0617f5f9ace213f (diff)
downloadlibgtop-71c7d65b1d4875a07422c59eb603a9f7f7b930f6.tar.gz
Add gtk-doc/gi for glibtop_netlist.
Diffstat (limited to 'include')
-rw-r--r--include/glibtop/netlist.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/glibtop/netlist.h b/include/glibtop/netlist.h
index 6abb5b9c..fcd7e7ab 100644
--- a/include/glibtop/netlist.h
+++ b/include/glibtop/netlist.h
@@ -31,12 +31,23 @@ G_BEGIN_DECLS
typedef struct _glibtop_netlist glibtop_netlist;
+/**
+ * glibtop_netlist:
+ * @number: Number of entries in the returned list.
+ */
struct _glibtop_netlist
{
guint64 flags;
guint32 number;
};
+/**
+ * glibtop_get_netlist:
+ * @buf: a #glibtop_netlist
+ *
+ * Returns: (array zero-terminated=1) (transfer none): an array of network
+ * interface names.
+ */
char** glibtop_get_netlist(glibtop_netlist *buf);
#if GLIBTOP_SUID_NETLIST
@@ -45,12 +56,36 @@ char** glibtop_get_netlist(glibtop_netlist *buf);
#define glibtop_get_netlist_r glibtop_get_netlist_s
#endif
+/**
+ * glibtop_get_netlist_l:
+ * @server: a #glibtop server
+ * @buf: a #glibtop_netlist
+ *
+ * Returns: (array zero-terminated=1) (transfer none): an array of network
+ * interface names.
+ */
char** glibtop_get_netlist_l (glibtop *server, glibtop_netlist *buf);
#if GLIBTOP_SUID_NETLIST
+/**
+ * glibtop_get_netlist_p:
+ * @server: a #glibtop server
+ * @buf: a #glibtop_netlist
+ *
+ * Returns: (array zero-terminated=1) (transfer none): an array of network
+ * interface names.
+ */
void _glibtop_init_netlist_p (glibtop *server);
char** glibtop_get_netlist_p (glibtop *server, glibtop_netlist *buf);
#else
+/**
+ * glibtop_get_netlist_s:
+ * @server: a #glibtop server
+ * @buf: a #glibtop_netlist
+ *
+ * Returns: (array zero-terminated=1) (transfer none): an array of network
+ * interface names.
+ */
void _glibtop_init_netlist_s (glibtop *server);
char** glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf);
#endif