Changed void *closure' to glibtop_closure *closure'.

2001-04-20  Martin Baulig  <baulig@suse.de>

	* include/glibtop/*.h (glibtop_get_*_s, glibtop_get_*_pl):
	Changed `void *closure' to `glibtop_closure *closure'.

	* include/glibtop/*.h
	(glibtop_init_*_s): Added `glibtop_closure *closure' argument.
	(glibtop_init_*_p): Changed `glibtop *server' to
	`glibtop_server *server' and added `glibtop_closure *closure'.
This commit is contained in:
Martin Baulig
2001-04-20 18:09:15 +00:00
committed by Martin Baulig
parent 3b7c109916
commit d6630b9f7a
29 changed files with 108 additions and 98 deletions

View File

@@ -1,3 +1,13 @@
2001-04-20 Martin Baulig <baulig@suse.de>
* include/glibtop/*.h (glibtop_get_*_s, glibtop_get_*_pl):
Changed `void *closure' to `glibtop_closure *closure'.
* include/glibtop/*.h
(glibtop_init_*_s): Added `glibtop_closure *closure' argument.
(glibtop_init_*_p): Changed `glibtop *server' to
`glibtop_server *server' and added `glibtop_closure *closure'.
2001-04-20 Martin Baulig <baulig@suse.de> 2001-04-20 Martin Baulig <baulig@suse.de>
* include/glibtop/glibtop-server.h * include/glibtop/glibtop-server.h

View File

@@ -75,11 +75,11 @@ struct _glibtop_cpu
int glibtop_get_cpu_l (glibtop_client *client, glibtop_cpu *buf); int glibtop_get_cpu_l (glibtop_client *client, glibtop_cpu *buf);
#if GLIBTOP_SUID_CPU #if GLIBTOP_SUID_CPU
int glibtop_init_cpu_p (glibtop *server); int glibtop_init_cpu_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_cpu_p (glibtop *server, void *closure, glibtop_cpu *buf); int glibtop_get_cpu_p (glibtop_server *server, glibtop_closure *closure, glibtop_cpu *buf);
#else #else
int glibtop_init_cpu_s (glibtop_server *server); int glibtop_init_cpu_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_cpu_s (glibtop_server *server, void *closure, glibtop_cpu *buf); int glibtop_get_cpu_s (glibtop_server *server, glibtop_closure *closure, glibtop_cpu *buf);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -52,7 +52,7 @@ struct _glibtop_fsusage
}; };
int glibtop_get_fsusage_l (glibtop_client *client, glibtop_fsusage *buf, const char *mount_dir); int glibtop_get_fsusage_l (glibtop_client *client, glibtop_fsusage *buf, const char *mount_dir);
int glibtop_get_fsusage_s (glibtop_server *server, void *closure, glibtop_fsusage *buf, const char *mount_dir); int glibtop_get_fsusage_s (glibtop_server *server, glibtop_closure *closure, glibtop_fsusage *buf, const char *mount_dir);
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -69,7 +69,7 @@ glibtop_backend_get (const char *backend_name, u_int64_t features,
const char **backend_args, GError **error); const char **backend_args, GError **error);
void void
glibtop_backend_set_closure_data (glibtop_backend *backend, void *closure); glibtop_backend_set_closure_data (glibtop_backend *backend, glibtop_closure *closure);
void * void *
glibtop_backend_get_closure_data (glibtop_backend *backend); glibtop_backend_get_closure_data (glibtop_backend *backend);

View File

@@ -58,7 +58,7 @@ glibtop_inodedb_lookup_s (glibtop_server *server,
u_int64_t device, u_int64_t inode); u_int64_t device, u_int64_t inode);
void void
glibtop_inodedb_close_s (glibtop_server *server, void *closure, glibtop_inodedb *inodedb); glibtop_inodedb_close_s (glibtop_server *server, glibtop_closure *closure, glibtop_inodedb *inodedb);
END_LIBGTOP_DECLS END_LIBGTOP_DECLS

View File

@@ -180,11 +180,11 @@ struct _glibtop_interface
glibtop_interface *glibtop_get_interface_names_l (glibtop_client *client, glibtop_array *array, u_int64_t interface, u_int64_t number, u_int64_t instance, u_int64_t strategy); glibtop_interface *glibtop_get_interface_names_l (glibtop_client *client, glibtop_array *array, u_int64_t interface, u_int64_t number, u_int64_t instance, u_int64_t strategy);
#if GLIBTOP_SUID_INTERFACE_NAMES #if GLIBTOP_SUID_INTERFACE_NAMES
int glibtop_init_interface_names_p (glibtop *server); int glibtop_init_interface_names_p (glibtop_server *server, glibtop_closure *closure);
glibtop_interface *glibtop_get_interface_names_p (glibtop *server, void *closure, glibtop_array *array, u_int64_t interface, u_int64_t number, u_int64_t instance, u_int64_t strategy); glibtop_interface *glibtop_get_interface_names_p (glibtop_server *server, glibtop_closure *closure, glibtop_array *array, u_int64_t interface, u_int64_t number, u_int64_t instance, u_int64_t strategy);
#else #else
int glibtop_init_interface_names_s (glibtop_server *server); int glibtop_init_interface_names_s (glibtop_server *server, glibtop_closure *closure);
glibtop_interface *glibtop_get_interface_names_s (glibtop_server *server, void *closure, glibtop_array *array, u_int64_t interface, u_int64_t number, u_int64_t instance, u_int64_t strategy); glibtop_interface *glibtop_get_interface_names_s (glibtop_server *server, glibtop_closure *closure, glibtop_array *array, u_int64_t interface, u_int64_t number, u_int64_t instance, u_int64_t strategy);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -58,11 +58,11 @@ struct _glibtop_loadavg
int glibtop_get_loadavg_l (glibtop_client *client, glibtop_loadavg *buf); int glibtop_get_loadavg_l (glibtop_client *client, glibtop_loadavg *buf);
#if GLIBTOP_SUID_LOADAVG #if GLIBTOP_SUID_LOADAVG
int glibtop_init_loadavg_p (glibtop *server); int glibtop_init_loadavg_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_loadavg_p (glibtop *server, void *closure, glibtop_loadavg *buf); int glibtop_get_loadavg_p (glibtop_server *server, glibtop_closure *closure, glibtop_loadavg *buf);
#else #else
int glibtop_init_loadavg_s (glibtop_server *server); int glibtop_init_loadavg_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_loadavg_s (glibtop_server *server, void *closure, glibtop_loadavg *buf); int glibtop_get_loadavg_s (glibtop_server *server, glibtop_closure *closure, glibtop_loadavg *buf);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -66,11 +66,11 @@ struct _glibtop_mem
int glibtop_get_mem_l (glibtop_client *client, glibtop_mem *buf); int glibtop_get_mem_l (glibtop_client *client, glibtop_mem *buf);
#if GLIBTOP_SUID_MEM #if GLIBTOP_SUID_MEM
int glibtop_init_mem_p (glibtop *server); int glibtop_init_mem_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_mem_p (glibtop *server, void *closure, glibtop_mem *buf); int glibtop_get_mem_p (glibtop_server *server, glibtop_closure *closure, glibtop_mem *buf);
#else #else
int glibtop_init_mem_s (glibtop_server *server); int glibtop_init_mem_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_mem_s (glibtop_server *server, void *closure, glibtop_mem *buf); int glibtop_get_mem_s (glibtop_server *server, glibtop_closure *closure, glibtop_mem *buf);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -50,7 +50,7 @@ glibtop_mountentry *
glibtop_get_mountlist_l (glibtop_client *client, glibtop_array *array, int all_fs); glibtop_get_mountlist_l (glibtop_client *client, glibtop_array *array, int all_fs);
glibtop_mountentry * glibtop_mountentry *
glibtop_get_mountlist_s (glibtop_server *server, void *closure, glibtop_array *array, int all_fs); glibtop_get_mountlist_s (glibtop_server *server, glibtop_closure *closure, glibtop_array *array, int all_fs);
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -64,11 +64,11 @@ struct _glibtop_msg_limits
int glibtop_get_msg_limits_l (glibtop_client *client, glibtop_msg_limits *buf); int glibtop_get_msg_limits_l (glibtop_client *client, glibtop_msg_limits *buf);
#if GLIBTOP_SUID_MSG_LIMITS #if GLIBTOP_SUID_MSG_LIMITS
int glibtop_init_msg_limits_p (glibtop *server); int glibtop_init_msg_limits_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_msg_limits_p (glibtop *server, void *closure, glibtop_msg_limits *buf); int glibtop_get_msg_limits_p (glibtop_server *server, glibtop_closure *closure, glibtop_msg_limits *buf);
#else #else
int glibtop_init_msg_limits_s (glibtop_server *server); int glibtop_init_msg_limits_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_msg_limits_s (glibtop_server *server, void *closure, glibtop_msg_limits *buf); int glibtop_get_msg_limits_s (glibtop_server *server, glibtop_closure *closure, glibtop_msg_limits *buf);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -60,11 +60,11 @@ struct _glibtop_netinfo
glibtop_ifaddr *glibtop_get_netinfo_l (glibtop_client *client, glibtop_array *array, glibtop_netinfo *buf, const char *interface, u_int64_t transport); glibtop_ifaddr *glibtop_get_netinfo_l (glibtop_client *client, glibtop_array *array, glibtop_netinfo *buf, const char *interface, u_int64_t transport);
#if GLIBTOP_SUID_NETINFO #if GLIBTOP_SUID_NETINFO
int glibtop_init_netinfo_p (glibtop *server); int glibtop_init_netinfo_p (glibtop_server *server, glibtop_closure *closure);
glibtop_ifaddr *glibtop_get_netinfo_p (glibtop *server, void *closure, glibtop_array *array, glibtop_netinfo *buf, const char *interface, u_int64_t transport); glibtop_ifaddr *glibtop_get_netinfo_p (glibtop_server *server, glibtop_closure *closure, glibtop_array *array, glibtop_netinfo *buf, const char *interface, u_int64_t transport);
#else #else
int glibtop_init_netinfo_s (glibtop_server *server); int glibtop_init_netinfo_s (glibtop_server *server, glibtop_closure *closure);
glibtop_ifaddr *glibtop_get_netinfo_s (glibtop_server *server, void *closure, glibtop_array *array, glibtop_netinfo *buf, const char *interface, u_int64_t transport); glibtop_ifaddr *glibtop_get_netinfo_s (glibtop_server *server, glibtop_closure *closure, glibtop_array *array, glibtop_netinfo *buf, const char *interface, u_int64_t transport);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -72,11 +72,11 @@ struct _glibtop_netload
int glibtop_get_netload_l (glibtop_client *client, glibtop_netload *buf, const char *interface, unsigned transport, unsigned protocol); int glibtop_get_netload_l (glibtop_client *client, glibtop_netload *buf, const char *interface, unsigned transport, unsigned protocol);
#if GLIBTOP_SUID_NETLOAD #if GLIBTOP_SUID_NETLOAD
int glibtop_init_netload_p (glibtop *server); int glibtop_init_netload_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_netload_p (glibtop *server, void *closure, glibtop_netload *buf, const char *interface, unsigned transport, unsigned protocol); int glibtop_get_netload_p (glibtop_server *server, glibtop_closure *closure, glibtop_netload *buf, const char *interface, unsigned transport, unsigned protocol);
#else #else
int glibtop_init_netload_s (glibtop_server *server); int glibtop_init_netload_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_netload_s (glibtop_server *server, void *closure, glibtop_netload *buf, const char *interface, unsigned transport, unsigned protocol); int glibtop_get_netload_s (glibtop_server *server, glibtop_closure *closure, glibtop_netload *buf, const char *interface, unsigned transport, unsigned protocol);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -60,11 +60,11 @@ glibtop_init_p (glibtop *server, const unsigned long features,
const unsigned flags); const unsigned flags);
void void
glibtop_open_p (glibtop_server *server, void *closure, glibtop_open_p (glibtop_server *server, glibtop_closure *closure,
const unsigned long features, const unsigned flags); const unsigned long features, const unsigned flags);
void void
glibtop_open_s (glibtop_server *server, void *closure, glibtop_open_s (glibtop_server *server, glibtop_closure *closure,
const unsigned long features, const unsigned flags); const unsigned long features, const unsigned flags);
#ifdef _IN_LIBGTOP #ifdef _IN_LIBGTOP

View File

@@ -62,11 +62,11 @@ struct _glibtop_ppp
int glibtop_get_ppp_l (glibtop_client *client, glibtop_ppp *buf, unsigned short device, unsigned short use_isdn); int glibtop_get_ppp_l (glibtop_client *client, glibtop_ppp *buf, unsigned short device, unsigned short use_isdn);
#if GLIBTOP_SUID_PPP #if GLIBTOP_SUID_PPP
int glibtop_init_ppp_p (glibtop *server); int glibtop_init_ppp_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_ppp_p (glibtop *server, void *closure, glibtop_ppp *buf, unsigned short device, unsigned short use_isdn); int glibtop_get_ppp_p (glibtop_server *server, glibtop_closure *closure, glibtop_ppp *buf, unsigned short device, unsigned short use_isdn);
#else #else
int glibtop_init_ppp_s (glibtop_server *server); int glibtop_init_ppp_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_ppp_s (glibtop_server *server, void *closure, glibtop_ppp *buf, unsigned short device, unsigned short use_isdn); int glibtop_get_ppp_s (glibtop_server *server, glibtop_closure *closure, glibtop_ppp *buf, unsigned short device, unsigned short use_isdn);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -44,15 +44,15 @@ char **
glibtop_get_proc_args_l (glibtop_client *client, glibtop_array *array, pid_t pid); glibtop_get_proc_args_l (glibtop_client *client, glibtop_array *array, pid_t pid);
#if GLIBTOP_SUID_PROC_ARGS #if GLIBTOP_SUID_PROC_ARGS
int glibtop_init_proc_args_p (glibtop *server); int glibtop_init_proc_args_p (glibtop_server *server, glibtop_closure *closure);
char ** char **
glibtop_get_proc_args_p (glibtop *server, void *closure, glibtop_array *array, pid_t pid); glibtop_get_proc_args_p (glibtop_server *server, glibtop_closure *closure, glibtop_array *array, pid_t pid);
#else #else
int glibtop_init_proc_args_s (glibtop_server *server); int glibtop_init_proc_args_s (glibtop_server *server, glibtop_closure *closure);
char ** char **
glibtop_get_proc_args_s (glibtop_server *server, void *closure, glibtop_array *array, pid_t pid); glibtop_get_proc_args_s (glibtop_server *server, glibtop_closure *closure, glibtop_array *array, pid_t pid);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -60,11 +60,11 @@ struct _glibtop_proc_cwd
char *glibtop_get_proc_cwd_l (glibtop_client *client, glibtop_proc_cwd *buf, pid_t pid); char *glibtop_get_proc_cwd_l (glibtop_client *client, glibtop_proc_cwd *buf, pid_t pid);
#if GLIBTOP_SUID_PROC_CWD #if GLIBTOP_SUID_PROC_CWD
int glibtop_init_proc_cwd_p (glibtop *server); int glibtop_init_proc_cwd_p (glibtop_server *server, glibtop_closure *closure);
char *glibtop_get_proc_cwd_p (glibtop *server, void *closure, glibtop_proc_cwd *buf, pid_t pid); char *glibtop_get_proc_cwd_p (glibtop_server *server, glibtop_closure *closure, glibtop_proc_cwd *buf, pid_t pid);
#else #else
int glibtop_init_proc_cwd_s (glibtop_server *server); int glibtop_init_proc_cwd_s (glibtop_server *server, glibtop_closure *closure);
char *glibtop_get_proc_cwd_s (glibtop_server *server, void *closure, glibtop_proc_cwd *buf, pid_t pid); char *glibtop_get_proc_cwd_s (glibtop_server *server, glibtop_closure *closure, glibtop_proc_cwd *buf, pid_t pid);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -86,11 +86,11 @@ struct _glibtop_proc_kernel
int glibtop_get_proc_kernel_l (glibtop_client *client, glibtop_proc_kernel *buf, pid_t pid); int glibtop_get_proc_kernel_l (glibtop_client *client, glibtop_proc_kernel *buf, pid_t pid);
#if GLIBTOP_SUID_PROC_KERNEL #if GLIBTOP_SUID_PROC_KERNEL
int glibtop_init_proc_kernel_p (glibtop *server); int glibtop_init_proc_kernel_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_proc_kernel_p (glibtop *server, void *closure, glibtop_proc_kernel *buf, pid_t pid); int glibtop_get_proc_kernel_p (glibtop_server *server, glibtop_closure *closure, glibtop_proc_kernel *buf, pid_t pid);
#else #else
int glibtop_init_proc_kernel_s (glibtop_server *server); int glibtop_init_proc_kernel_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_proc_kernel_s (glibtop_server *server, void *closure, glibtop_proc_kernel *buf, pid_t pid); int glibtop_get_proc_kernel_s (glibtop_server *server, glibtop_closure *closure, glibtop_proc_kernel *buf, pid_t pid);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -63,16 +63,16 @@ glibtop_get_proclist_l (glibtop_client *client, glibtop_array *array,
int64_t which, int64_t arg); int64_t which, int64_t arg);
#if GLIBTOP_SUID_PROCLIST #if GLIBTOP_SUID_PROCLIST
int glibtop_init_proclist_p (glibtop *server); int glibtop_init_proclist_p (glibtop_server *server, glibtop_closure *closure);
unsigned * unsigned *
glibtop_get_proclist_p (glibtop *server, void *closure, glibtop_array *array, glibtop_get_proclist_p (glibtop_server *server, glibtop_closure *closure, glibtop_array *array,
int64_t which, int64_t arg); int64_t which, int64_t arg);
#else #else
int glibtop_init_proclist_s (glibtop_server *server); int glibtop_init_proclist_s (glibtop_server *server, glibtop_closure *closure);
unsigned * unsigned *
glibtop_get_proclist_s (glibtop_server *server, void *closure, glibtop_array *array, glibtop_get_proclist_s (glibtop_server *server, glibtop_closure *closure, glibtop_array *array,
int64_t which, int64_t arg); int64_t which, int64_t arg);
#endif #endif

View File

@@ -70,15 +70,15 @@ glibtop_map_entry *
glibtop_get_proc_map_l (glibtop_client *client, glibtop_array *array, pid_t pid); glibtop_get_proc_map_l (glibtop_client *client, glibtop_array *array, pid_t pid);
#if GLIBTOP_SUID_PROC_MAP #if GLIBTOP_SUID_PROC_MAP
int glibtop_init_proc_map_p (glibtop *server); int glibtop_init_proc_map_p (glibtop_server *server, glibtop_closure *closure);
glibtop_map_entry * glibtop_map_entry *
glibtop_get_proc_map_p (glibtop *server, void *closure, glibtop_array *array, pid_t pid); glibtop_get_proc_map_p (glibtop_server *server, glibtop_closure *closure, glibtop_array *array, pid_t pid);
#else #else
int glibtop_init_proc_map_s (glibtop_server *server); int glibtop_init_proc_map_s (glibtop_server *server, glibtop_closure *closure);
glibtop_map_entry * glibtop_map_entry *
glibtop_get_proc_map_s (glibtop_server *server, void *closure, glibtop_array *array, pid_t pid); glibtop_get_proc_map_s (glibtop_server *server, glibtop_closure *closure, glibtop_array *array, pid_t pid);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -66,11 +66,11 @@ struct _glibtop_proc_mem
int glibtop_get_proc_mem_l (glibtop_client *client, glibtop_proc_mem *buf, pid_t pid); int glibtop_get_proc_mem_l (glibtop_client *client, glibtop_proc_mem *buf, pid_t pid);
#if GLIBTOP_SUID_PROC_MEM #if GLIBTOP_SUID_PROC_MEM
int glibtop_init_proc_mem_p (glibtop *server); int glibtop_init_proc_mem_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_proc_mem_p (glibtop *server, void *closure, glibtop_proc_mem *buf, pid_t pid); int glibtop_get_proc_mem_p (glibtop_server *server, glibtop_closure *closure, glibtop_proc_mem *buf, pid_t pid);
#else #else
int glibtop_init_proc_mem_s (glibtop_server *server); int glibtop_init_proc_mem_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_proc_mem_s (glibtop_server *server, void *closure, glibtop_proc_mem *buf, pid_t pid); int glibtop_get_proc_mem_s (glibtop_server *server, glibtop_closure *closure, glibtop_proc_mem *buf, pid_t pid);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -86,11 +86,11 @@ struct _glibtop_proc_segment
int glibtop_get_proc_segment_l (glibtop_client *client, glibtop_proc_segment *buf, pid_t pid); int glibtop_get_proc_segment_l (glibtop_client *client, glibtop_proc_segment *buf, pid_t pid);
#if GLIBTOP_SUID_PROC_SEGMENT #if GLIBTOP_SUID_PROC_SEGMENT
int glibtop_init_proc_segment_p (glibtop *server); int glibtop_init_proc_segment_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_proc_segment_p (glibtop *server, void *closure, glibtop_proc_segment *buf, pid_t pid); int glibtop_get_proc_segment_p (glibtop_server *server, glibtop_closure *closure, glibtop_proc_segment *buf, pid_t pid);
#else #else
int glibtop_init_proc_segment_s (glibtop_server *server); int glibtop_init_proc_segment_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_proc_segment_s (glibtop_server *server, void *closure, glibtop_proc_segment *buf, pid_t pid); int glibtop_get_proc_segment_s (glibtop_server *server, glibtop_closure *closure, glibtop_proc_segment *buf, pid_t pid);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -60,11 +60,11 @@ struct _glibtop_proc_signal
int glibtop_get_proc_signal_l (glibtop_client *client, glibtop_proc_signal *buf, pid_t pid); int glibtop_get_proc_signal_l (glibtop_client *client, glibtop_proc_signal *buf, pid_t pid);
#if GLIBTOP_SUID_PROC_SIGNAL #if GLIBTOP_SUID_PROC_SIGNAL
int glibtop_init_proc_signal_p (glibtop *server); int glibtop_init_proc_signal_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_proc_signal_p (glibtop *server, void *closure, glibtop_proc_signal *buf, pid_t pid); int glibtop_get_proc_signal_p (glibtop_server *server, glibtop_closure *closure, glibtop_proc_signal *buf, pid_t pid);
#else #else
int glibtop_init_proc_signal_s (glibtop_server *server); int glibtop_init_proc_signal_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_proc_signal_s (glibtop_server *server, void *closure, glibtop_proc_signal *buf, pid_t pid); int glibtop_get_proc_signal_s (glibtop_server *server, glibtop_closure *closure, glibtop_proc_signal *buf, pid_t pid);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -86,11 +86,11 @@ struct _glibtop_proc_state
int glibtop_get_proc_state_l (glibtop_client *client, glibtop_proc_state *buf, pid_t pid); int glibtop_get_proc_state_l (glibtop_client *client, glibtop_proc_state *buf, pid_t pid);
#if GLIBTOP_SUID_PROC_STATE #if GLIBTOP_SUID_PROC_STATE
int glibtop_init_proc_state_p (glibtop *server); int glibtop_init_proc_state_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_proc_state_p (glibtop *server, void *closure, glibtop_proc_state *buf, pid_t pid); int glibtop_get_proc_state_p (glibtop_server *server, glibtop_closure *closure, glibtop_proc_state *buf, pid_t pid);
#else #else
int glibtop_init_proc_state_s (glibtop_server *server); int glibtop_init_proc_state_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_proc_state_s (glibtop_server *server, void *closure, glibtop_proc_state *buf, pid_t pid); int glibtop_get_proc_state_s (glibtop_server *server, glibtop_closure *closure, glibtop_proc_state *buf, pid_t pid);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -83,11 +83,11 @@ struct _glibtop_proc_time
int glibtop_get_proc_time_l (glibtop_client *client, glibtop_proc_time *buf, pid_t pid); int glibtop_get_proc_time_l (glibtop_client *client, glibtop_proc_time *buf, pid_t pid);
#if GLIBTOP_SUID_PROC_TIME #if GLIBTOP_SUID_PROC_TIME
int glibtop_init_proc_time_p (glibtop *server); int glibtop_init_proc_time_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_proc_time_p (glibtop *server, void *closure, glibtop_proc_time *buf, pid_t pid); int glibtop_get_proc_time_p (glibtop_server *server, glibtop_closure *closure, glibtop_proc_time *buf, pid_t pid);
#else #else
int glibtop_init_proc_time_s (glibtop_server *server); int glibtop_init_proc_time_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_proc_time_s (glibtop_server *server, void *closure, glibtop_proc_time *buf, pid_t pid); int glibtop_get_proc_time_s (glibtop_server *server, glibtop_closure *closure, glibtop_proc_time *buf, pid_t pid);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -88,11 +88,11 @@ struct _glibtop_proc_uid
int glibtop_get_proc_uid_l (glibtop_client *client, glibtop_proc_uid *buf, pid_t pid); int glibtop_get_proc_uid_l (glibtop_client *client, glibtop_proc_uid *buf, pid_t pid);
#if GLIBTOP_SUID_PROC_UID #if GLIBTOP_SUID_PROC_UID
int glibtop_init_proc_uid_p (glibtop *server); int glibtop_init_proc_uid_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_proc_uid_p (glibtop *server, void *closure, glibtop_proc_uid *buf, pid_t pid); int glibtop_get_proc_uid_p (glibtop_server *server, glibtop_closure *closure, glibtop_proc_uid *buf, pid_t pid);
#else #else
int glibtop_init_proc_uid_s (glibtop_server *server); int glibtop_init_proc_uid_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_proc_uid_s (glibtop_server *server, void *closure, glibtop_proc_uid *buf, pid_t pid); int glibtop_get_proc_uid_s (glibtop_server *server, glibtop_closure *closure, glibtop_proc_uid *buf, pid_t pid);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -70,11 +70,11 @@ struct _glibtop_sem_limits
int glibtop_get_sem_limits_l (glibtop_client *client, glibtop_sem_limits *buf); int glibtop_get_sem_limits_l (glibtop_client *client, glibtop_sem_limits *buf);
#if GLIBTOP_SUID_SEM_LIMITS #if GLIBTOP_SUID_SEM_LIMITS
int glibtop_init_sem_limits_p (glibtop *server); int glibtop_init_sem_limits_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_sem_limits_p (glibtop *server, void *closure, glibtop_sem_limits *buf); int glibtop_get_sem_limits_p (glibtop_server *server, glibtop_closure *closure, glibtop_sem_limits *buf);
#else #else
int glibtop_init_sem_limits_s (glibtop_server *server); int glibtop_init_sem_limits_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_sem_limits_s (glibtop_server *server, void *closure, glibtop_sem_limits *buf); int glibtop_get_sem_limits_s (glibtop_server *server, glibtop_closure *closure, glibtop_sem_limits *buf);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -60,11 +60,11 @@ struct _glibtop_shm_limits
int glibtop_get_shm_limits_l (glibtop_client *client, glibtop_shm_limits *buf); int glibtop_get_shm_limits_l (glibtop_client *client, glibtop_shm_limits *buf);
#if GLIBTOP_SUID_SHM_LIMITS #if GLIBTOP_SUID_SHM_LIMITS
int glibtop_init_shm_limits_p (glibtop *server); int glibtop_init_shm_limits_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_shm_limits_p (glibtop *, glibtop_shm_limits *buf); int glibtop_get_shm_limits_p (glibtop_server *, glibtop_shm_limits *buf);
#else #else
int glibtop_init_shm_limits_s (glibtop_server *server); int glibtop_init_shm_limits_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_shm_limits_s (glibtop_server *server, void *closure, glibtop_shm_limits *buf); int glibtop_get_shm_limits_s (glibtop_server *server, glibtop_closure *closure, glibtop_shm_limits *buf);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -60,11 +60,11 @@ struct _glibtop_swap
int glibtop_get_swap_l (glibtop_client *client, glibtop_swap *buf); int glibtop_get_swap_l (glibtop_client *client, glibtop_swap *buf);
#if GLIBTOP_SUID_SWAP #if GLIBTOP_SUID_SWAP
int glibtop_init_swap_p (glibtop *server); int glibtop_init_swap_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_swap_p (glibtop *server, void *closure, glibtop_swap *buf); int glibtop_get_swap_p (glibtop_server *server, glibtop_closure *closure, glibtop_swap *buf);
#else #else
int glibtop_init_swap_s (glibtop_server *server); int glibtop_init_swap_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_swap_s (glibtop_server *server, void *closure, glibtop_swap *buf); int glibtop_get_swap_s (glibtop_server *server, glibtop_closure *closure, glibtop_swap *buf);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES

View File

@@ -56,11 +56,11 @@ struct _glibtop_uptime
int glibtop_get_uptime_l (glibtop_client *client, glibtop_uptime *buf); int glibtop_get_uptime_l (glibtop_client *client, glibtop_uptime *buf);
#if GLIBTOP_SUID_UPTIME #if GLIBTOP_SUID_UPTIME
int glibtop_init_uptime_p (glibtop *server); int glibtop_init_uptime_p (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_uptime_p (glibtop *server, void *closure, glibtop_uptime *buf); int glibtop_get_uptime_p (glibtop_server *server, glibtop_closure *closure, glibtop_uptime *buf);
#else #else
int glibtop_init_uptime_s (glibtop_server *server); int glibtop_init_uptime_s (glibtop_server *server, glibtop_closure *closure);
int glibtop_get_uptime_s (glibtop_server *server, void *closure, glibtop_uptime *buf); int glibtop_get_uptime_s (glibtop_server *server, glibtop_closure *closure, glibtop_uptime *buf);
#endif #endif
#ifdef GLIBTOP_NAMES #ifdef GLIBTOP_NAMES