Added initialization functions `glibtop_init_<feature>_s'.
1998-08-24 Martin Baulig <martin@home-of-linux.org> * *.c: Added initialization functions `glibtop_init_<feature>_s'. * ChangeLog: New file.
This commit is contained in:
committed by
Martin Baulig
parent
9d0aa0fdc1
commit
f7da79ed88
6
sysdeps/stub/ChangeLog
Normal file
6
sysdeps/stub/ChangeLog
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
1998-08-24 Martin Baulig <martin@home-of-linux.org>
|
||||||
|
|
||||||
|
* *.c: Added initialization functions `glibtop_init_<feature>_s'.
|
||||||
|
|
||||||
|
* ChangeLog: New file.
|
||||||
|
|
@@ -19,9 +19,19 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/cpu.h>
|
#include <glibtop/cpu.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_cpu = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_cpu_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.cpu = _glibtop_sysdeps_cpu;
|
||||||
|
}
|
||||||
|
|
||||||
/* Provides information about cpu usage. */
|
/* Provides information about cpu usage. */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -40,6 +40,7 @@ __BEGIN_DECLS
|
|||||||
#define GLIBTOP_SUID_PROC_SIGNAL 0
|
#define GLIBTOP_SUID_PROC_SIGNAL 0
|
||||||
#define GLIBTOP_SUID_PROC_KERNEL 0
|
#define GLIBTOP_SUID_PROC_KERNEL 0
|
||||||
#define GLIBTOP_SUID_PROC_SEGMENT 0
|
#define GLIBTOP_SUID_PROC_SEGMENT 0
|
||||||
|
#define GLIBTOP_SUID_PROC_MAP 0
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
@@ -19,9 +19,19 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/loadavg.h>
|
#include <glibtop/loadavg.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_loadavg = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_loadavg_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.loadavg = _glibtop_sysdeps_loadavg;
|
||||||
|
}
|
||||||
|
|
||||||
/* Provides load averange. */
|
/* Provides load averange. */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -19,9 +19,19 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/mem.h>
|
#include <glibtop/mem.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_mem = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_mem_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.mem = _glibtop_sysdeps_mem;
|
||||||
|
}
|
||||||
|
|
||||||
/* Provides information about memory usage. */
|
/* Provides information about memory usage. */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -19,8 +19,19 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#include <glibtop.h>
|
||||||
#include <glibtop/msg_limits.h>
|
#include <glibtop/msg_limits.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_msg_limits = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_msg_limits_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.msg_limits = _glibtop_sysdeps_msg_limits;
|
||||||
|
}
|
||||||
|
|
||||||
/* Provides information about sysv ipc limits. */
|
/* Provides information about sysv ipc limits. */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -19,9 +19,19 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/prockernel.h>
|
#include <glibtop/prockernel.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_proc_kernel = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_proc_kernel_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.proc_kernel = _glibtop_sysdeps_proc_kernel;
|
||||||
|
}
|
||||||
|
|
||||||
/* Provides detailed information about a process. */
|
/* Provides detailed information about a process. */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -19,11 +19,21 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/proclist.h>
|
#include <glibtop/proclist.h>
|
||||||
|
|
||||||
#define GLIBTOP_PROCLIST_FLAGS 3
|
#define GLIBTOP_PROCLIST_FLAGS 3
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_proclist = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_proclist_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.proclist = _glibtop_sysdeps_proclist;
|
||||||
|
}
|
||||||
|
|
||||||
/* Fetch list of currently running processes.
|
/* Fetch list of currently running processes.
|
||||||
*
|
*
|
||||||
* IMPORTANT NOTE:
|
* IMPORTANT NOTE:
|
||||||
|
@@ -19,9 +19,19 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/procmem.h>
|
#include <glibtop/procmem.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_proc_mem = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_proc_mem_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.proc_mem = _glibtop_sysdeps_proc_mem;
|
||||||
|
}
|
||||||
|
|
||||||
/* Provides detailed information about a process. */
|
/* Provides detailed information about a process. */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -19,9 +19,19 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/procsegment.h>
|
#include <glibtop/procsegment.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_proc_segment = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_proc_segment_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.proc_segment = _glibtop_sysdeps_proc_segment;
|
||||||
|
}
|
||||||
|
|
||||||
/* Provides detailed information about a process. */
|
/* Provides detailed information about a process. */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -19,9 +19,19 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/procsignal.h>
|
#include <glibtop/procsignal.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_proc_signal = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_proc_signal_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.proc_signal = _glibtop_sysdeps_proc_signal;
|
||||||
|
}
|
||||||
|
|
||||||
/* Provides detailed information about a process. */
|
/* Provides detailed information about a process. */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -19,9 +19,19 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/procstate.h>
|
#include <glibtop/procstate.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_proc_state = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_proc_state_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.proc_state = _glibtop_sysdeps_proc_state;
|
||||||
|
}
|
||||||
|
|
||||||
/* Provides detailed information about a process. */
|
/* Provides detailed information about a process. */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -19,9 +19,19 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/proctime.h>
|
#include <glibtop/proctime.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_proc_time = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_proc_time_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.proc_time = _glibtop_sysdeps_proc_time;
|
||||||
|
}
|
||||||
|
|
||||||
/* Provides detailed information about a process. */
|
/* Provides detailed information about a process. */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -19,9 +19,19 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/procuid.h>
|
#include <glibtop/procuid.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_proc_uid = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_proc_uid_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.proc_uid = _glibtop_sysdeps_proc_uid;
|
||||||
|
}
|
||||||
|
|
||||||
/* Provides detailed information about a process. */
|
/* Provides detailed information about a process. */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -19,8 +19,19 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#include <glibtop.h>
|
||||||
#include <glibtop/sem_limits.h>
|
#include <glibtop/sem_limits.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_sem_limits = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_sem_limits_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.sem_limits = _glibtop_sysdeps_sem_limits;
|
||||||
|
}
|
||||||
|
|
||||||
/* Provides information about sysv sem limits. */
|
/* Provides information about sysv sem limits. */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -19,8 +19,19 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#include <glibtop.h>
|
||||||
#include <glibtop/shm_limits.h>
|
#include <glibtop/shm_limits.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_shm_limits = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_shm_limits_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.shm_limits = _glibtop_sysdeps_shm_limits;
|
||||||
|
}
|
||||||
|
|
||||||
/* Provides information about sysv ipc limits. */
|
/* Provides information about sysv ipc limits. */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -19,9 +19,19 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/swap.h>
|
#include <glibtop/swap.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_swap = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_swap_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.swap = _glibtop_sysdeps_swap;
|
||||||
|
}
|
||||||
|
|
||||||
/* Provides information about swap usage. */
|
/* Provides information about swap usage. */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@@ -19,9 +19,19 @@
|
|||||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <glibtop.h>
|
||||||
#include <glibtop/uptime.h>
|
#include <glibtop/uptime.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_uptime = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_init_uptime_s (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.uptime = _glibtop_sysdeps_uptime;
|
||||||
|
}
|
||||||
|
|
||||||
/* Provides uptime and idle time. */
|
/* Provides uptime and idle time. */
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user