diff options
author | Benoit Dejean <bdejean@gmail.com> | 2015-06-21 18:17:57 +0200 |
---|---|---|
committer | Benoit Dejean <bdejean@gmail.com> | 2015-07-15 18:34:49 +0200 |
commit | fba67da65ddabdbedd6bf666cd50cbe01257dbe6 (patch) | |
tree | cdb3c688214834b6358fa94f5b187ad19f456990 /include | |
parent | 119049b8c07c05b2c6e12f36a934b5229cc7f179 (diff) | |
download | libgtop-fba67da65ddabdbedd6bf666cd50cbe01257dbe6.tar.gz |
Reorder GI annotations and remove duplicate for _l().
Diffstat (limited to 'include')
-rw-r--r-- | include/glibtop/procopenfiles.h | 41 |
1 files changed, 17 insertions, 24 deletions
diff --git a/include/glibtop/procopenfiles.h b/include/glibtop/procopenfiles.h index a3ae7fe5..ef89e741 100644 --- a/include/glibtop/procopenfiles.h +++ b/include/glibtop/procopenfiles.h @@ -102,6 +102,16 @@ struct _glibtop_proc_open_files * Returns: (transfer none): */ +glibtop_open_files_entry * +glibtop_get_proc_open_files(glibtop_proc_open_files *buf, pid_t pid); + +#if GLIBTOP_SUID_PROC_FILE +#define glibtop_get_proc_open_files_r glibtop_get_proc_open_files_p +#else +#define glibtop_get_proc_open_files_r glibtop_get_proc_open_files_s +#endif + + /** * glibtop_get_proc_open_files_l: * @server: @@ -111,17 +121,15 @@ struct _glibtop_proc_open_files * Returns: (transfer none): */ -/** - * glibtop_get_proc_open_files_p: - * @server: - * @buf: (out): - * @pid: - * - * Returns: (transfer none): - */ +glibtop_open_files_entry * +glibtop_get_proc_open_files_l (glibtop *server, glibtop_proc_open_files *buf, pid_t pid); + +#if GLIBTOP_SUID_PROC_FILE +void _glibtop_init_proc_open_files_p (glibtop *server); + /** - * glibtop_get_proc_open_files_s: + * glibtop_get_proc_open_files_p: * @server: * @buf: (out): * @pid: @@ -130,21 +138,6 @@ struct _glibtop_proc_open_files */ glibtop_open_files_entry * -glibtop_get_proc_open_files(glibtop_proc_open_files *buf, pid_t pid); - -#if GLIBTOP_SUID_PROC_FILE -#define glibtop_get_proc_open_files_r glibtop_get_proc_open_files_p -#else -#define glibtop_get_proc_open_files_r glibtop_get_proc_open_files_s -#endif - -glibtop_open_files_entry * -glibtop_get_proc_open_files_l (glibtop *server, glibtop_proc_open_files *buf, pid_t pid); - -#if GLIBTOP_SUID_PROC_FILE -void _glibtop_init_proc_open_files_p (glibtop *server); - -glibtop_open_files_entry * glibtop_get_proc_open_files_p (glibtop *server, glibtop_proc_open_files *buf, pid_t pid); #else void _glibtop_init_proc_open_files_s (glibtop *server); |