summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>2000-01-12 13:11:19 +0000
committerMartin Baulig <martin@src.gnome.org>2000-01-12 13:11:19 +0000
commitfe86288e76f5d95ac92987908b021f3d8a3fcf66 (patch)
treeea2493cd4b4a2ad568630d20e3edc295d98d4e84
parentfc4f288ce1d6f8866198f445ba1a6d9efb51c1a9 (diff)
downloadlibgtop-fe86288e76f5d95ac92987908b021f3d8a3fcf66.tar.gz
This has been moved into the sysdeps backend.
2000-01-12 Martin Baulig <martin@home-of-linux.org> * lib/sysdeps.c (_glibtop_init_hook_s): This has been moved into the sysdeps backend.
-rw-r--r--ChangeLog3
-rw-r--r--lib/sysdeps.c64
2 files changed, 3 insertions, 64 deletions
diff --git a/ChangeLog b/ChangeLog
index 1f0384bd..828c45be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2000-01-12 Martin Baulig <martin@home-of-linux.org>
+ * lib/sysdeps.c (_glibtop_init_hook_s): This has been moved
+ into the sysdeps backend.
+
* configure.in (LIBGTOP_LIBS): Added `-lgtop_backend_common'.
* lib/init-backends.c (glibtop_init_backends): Initialize
`glibtop_backend_common' backend.
diff --git a/lib/sysdeps.c b/lib/sysdeps.c
index a7a37bc7..686663e8 100644
--- a/lib/sysdeps.c
+++ b/lib/sysdeps.c
@@ -47,70 +47,6 @@ GLIBTOP_SUID_PROC_MAP +
GLIBTOP_SUID_NETLOAD +
GLIBTOP_SUID_PPP;
-glibtop_init_func_t _glibtop_init_hook_s [] = {
-#if !GLIBTOP_SUID_CPU
- glibtop_init_cpu_s,
-#endif
-#if !GLIBTOP_SUID_MEM
- glibtop_init_mem_s,
-#endif
-#if !GLIBTOP_SUID_SWAP
- glibtop_init_swap_s,
-#endif
-#if !GLIBTOP_SUID_UPTIME
- glibtop_init_uptime_s,
-#endif
-#if !GLIBTOP_SUID_LOADAVG
- glibtop_init_loadavg_s,
-#endif
-#if !GLIBTOP_SUID_SHM_LIMITS
- glibtop_init_shm_limits_s,
-#endif
-#if !GLIBTOP_SUID_MSG_LIMITS
- glibtop_init_msg_limits_s,
-#endif
-#if !GLIBTOP_SUID_SEM_LIMITS
- glibtop_init_sem_limits_s,
-#endif
-#if !GLIBTOP_SUID_PROCLIST
- glibtop_init_proclist_s,
-#endif
-#if !GLIBTOP_SUID_PROC_STATE
- glibtop_init_proc_state_s,
-#endif
-#if !GLIBTOP_SUID_PROC_UID
- glibtop_init_proc_uid_s,
-#endif
-#if !GLIBTOP_SUID_PROC_MEM
- glibtop_init_proc_mem_s,
-#endif
-#if !GLIBTOP_SUID_PROC_TIME
- glibtop_init_proc_time_s,
-#endif
-#if !GLIBTOP_SUID_PROC_SIGNAL
- glibtop_init_proc_signal_s,
-#endif
-#if !GLIBTOP_SUID_PROC_KERNEL
- glibtop_init_proc_kernel_s,
-#endif
-#if !GLIBTOP_SUID_PROC_SEGMENT
- glibtop_init_proc_segment_s,
-#endif
-#if !GLIBTOP_SUID_PROC_ARGS
- glibtop_init_proc_args_s,
-#endif
-#if !GLIBTOP_SUID_PROC_MAP
- glibtop_init_proc_map_s,
-#endif
-#if !GLIBTOP_SUID_NETLOAD
- glibtop_init_netload_s,
-#endif
-#if !GLIBTOP_SUID_PPP
- glibtop_init_ppp_s,
-#endif
- NULL
-};
-
/* Checks which features are implemented. */
void