Benoît Dejean
53c43e6e90
Removed some dead files. Don't install private headers.
...
* backends/server/server.h:
* configure.in:
* glibtop.h:
* include/glibtop/Makefile.am:
* include/glibtop/gnuserv.h:
* include/glibtop/open.h:
* include/glibtop/read.h:
* include/glibtop/read_data.h:
* include/glibtop/types.h:
* include/glibtop/write.h:
* lib/close.c:
* lib/init.c:
* lib/lib.pl:
* lib/open.c:
* lib/parameter.c:
* lib/read.c:
* lib/read_data.c:
* lib/write.c:
* src/daemon/daemon.h:
* src/daemon/io.c:
* src/daemon/main.c: (handle_parent_connection):
* src/daemon/slave.c: (handle_slave_connection),
(handle_slave_command):
* sysdeps/common/gnuslib.c:
* sysdeps/solaris/glibtop_private.h: Removed some dead files.
Don't install private headers.
2005-02-15 12:48:34 +00:00
Benoît Dejean
0fdfd65a2a
Don't export private symbols.
...
* include/glibtop/error.h: Don't export private symbols.
2005-02-15 10:14:59 +00:00
Benoît Dejean
1ac8744251
G_GNUC_NORETURN love.
...
* include/glibtop/error.h: G_GNUC_NORETURN love.
* include/glibtop/errors.h:
* lib/errors.c: Bye bye dead code.
2005-02-15 09:55:01 +00:00
Benoît Dejean
270ec235c1
UTF-8-ified.
...
* include/glibtop/procopenfiles.h:
* sysdeps/linux/procopenfiles.c:
* sysdeps/stub/procopenfiles.c: UTF-8-ified.
2005-01-24 14:27:19 +00:00
Benoît Dejean
9b263e0fbb
added localsock { name } to glibtop_open_files_entry. Should not break
...
* examples/openfiles.c: (show_open_files):
* include/glibtop/procopenfiles.h: added localsock { name } to
glibtop_open_files_entry. Should not break ABI.
2005-01-21 23:28:47 +00:00
Benoît Dejean
7ca4171652
New feature by nick@reloco.com.ar (Nicolás Lichtmaier).
...
* configure.in:
* examples/.cvsignore:
* examples/Makefile.am:
* examples/openfiles.c: (show_open_files), (main):
* features.def:
* include/glibtop/Makefile.am:
* include/glibtop/command.h:
* include/glibtop/procopenfiles.h:
* include/glibtop/sysdeps.h:
* include/glibtop/union.h:
* structures.def:
* sysdeps/linux/Makefile.am:
* sysdeps/linux/procopenfiles.c: (glibtop_init_proc_open_files_s),
(get_socket_endpoint), (glibtop_get_proc_open_files_s):
* sysdeps/stub/Makefile.am:
* sysdeps/stub/procopenfiles.c: (glibtop_init_proc_open_files_s),
(glibtop_get_proc_open_files_s):
New feature by nick@reloco.com.ar (Nicolás Lichtmaier).
glibtop_get_open_files(pid) -> list of files by process.
TODO: Add documentation.
2005-01-10 08:43:04 +00:00
Benoît Dejean
0a425e4e41
Added I/O and IRQ wait time to glibtop_cpu. Closes #160443 .
...
* examples/pprint.c: (pprint_get_cpu):
* features.def:
* include/glibtop/cpu.h:
* sysdeps/linux/cpu.c: (glibtop_init_cpu_s), (glibtop_get_cpu_s):
Added I/O and IRQ wait time to glibtop_cpu. Closes #160443 .
* configure.in: Post-release bump 2.9.4
2005-01-03 09:17:45 +00:00
Benoît Dejean
ce9ce223ca
Turned all macros to functions. Marked everything as G_GNUC_PRINTF and
...
* include/glibtop/error.h:
* lib/parameter.c: (glibtop_set_parameter_l):
* lib/read_data.c: (glibtop_read_data_l):
* sysdeps/common/error.c: (print_server_name), (glibtop_error_vr),
(glibtop_error_io_vr), (glibtop_warn_vr), (glibtop_warn_io_vr),
(glibtop_error_r), (glibtop_warn_r), (glibtop_error_io_r),
(glibtop_warn_io_r), (glibtop_error), (glibtop_warn),
(glibtop_error_io), (glibtop_warn_io): Turned all macros to functions.
Marked everything as G_GNUC_PRINTF and fixed format bugs.
* sysdeps/common/fsusage.c: Marked some functions as G_GNUC_INTERNAL
2004-12-23 21:50:41 +00:00
Benoît Dejean
c09e2fdead
Removed libgtop_names :)
...
* acconfig.h:
* configure.in:
* debian/libgtop-dev.files.in:
* doc/Makefile.am:
* examples/Makefile.am:
* examples/third.c:
* include/glibtop/cpu.h:
* include/glibtop/fsusage.h:
* include/glibtop/loadavg.h:
* include/glibtop/mem.h:
* include/glibtop/mountlist.h:
* include/glibtop/msg_limits.h:
* include/glibtop/netlist.h:
* include/glibtop/netload.h:
* include/glibtop/ppp.h:
* include/glibtop/procargs.h:
* include/glibtop/prockernel.h:
* include/glibtop/proclist.h:
* include/glibtop/procmap.h:
* include/glibtop/procmem.h:
* include/glibtop/procsegment.h:
* include/glibtop/procsignal.h:
* include/glibtop/procstate.h:
* include/glibtop/proctime.h:
* include/glibtop/procuid.h:
* include/glibtop/sem_limits.h:
* include/glibtop/shm_limits.h:
* include/glibtop/swap.h:
* include/glibtop/sysdeps.h:
* include/glibtop/uptime.h:
* po/POTFILES.in:
* sysdeps/Makefile.am:
* sysdeps/names/.cvsignore:
* sysdeps/names/Makefile.am:
* sysdeps/names/cpu.c:
* sysdeps/names/fsusage.c:
* sysdeps/names/loadavg.c:
* sysdeps/names/mem.c:
* sysdeps/names/mountlist.c:
* sysdeps/names/msg_limits.c:
* sysdeps/names/netlist.c:
* sysdeps/names/netload.c:
* sysdeps/names/ppp.c:
* sysdeps/names/procargs.c:
* sysdeps/names/prockernel.c:
* sysdeps/names/proclist.c:
* sysdeps/names/procmap.c:
* sysdeps/names/procmem.c:
* sysdeps/names/procsegment.c:
* sysdeps/names/procsignal.c:
* sysdeps/names/procstate.c:
* sysdeps/names/proctime.c:
* sysdeps/names/procuid.c:
* sysdeps/names/sem_limits.c:
* sysdeps/names/shm_limits.c:
* sysdeps/names/swap.c:
* sysdeps/names/sysdeps.c:
* sysdeps/names/uptime.c: Removed libgtop_names :)
2004-12-06 14:44:11 +00:00
Benoît Dejean
544aff2f18
Removed SUID wrappers because glibtop_proc_argv_l is a client-side
...
* include/glibtop/procargs.h:
* sysdeps/common/procargs.c: (glibtop_get_proc_argv_l): Removed SUID
wrappers because glibtop_proc_argv_l is a client-side function that wraps
glibtop_get_proc_args.
2004-11-13 11:42:48 +00:00
Benoît Dejean
7e5ccec8bf
Bumped to 2.9.0
...
* configure.in: Bumped to 2.9.0
* configure.in:
* examples/.cvsignore:
* examples/Makefile.am:
* examples/netlist.c: (main):
* features.def:
* include/glibtop/Makefile.am:
* include/glibtop/command.h:
* include/glibtop/netlist.h:
* include/glibtop/sysdeps.h:
* include/glibtop/union.h:
* include/glibtop/version.h:
* src/daemon/version.c:
* sysdeps/linux/Makefile.am:
* sysdeps/linux/netlist.c: (glibtop_init_netlist_s),
(glibtop_get_netlist_s):
* sysdeps/names/Makefile.am:
* sysdeps/names/netlist.c:
* sysdeps/solaris/Makefile.am:
* sysdeps/solaris/netlist.c: (glibtop_init_netlist_s),
(glibtop_get_netlist_s): Added new function glibtop_get_netlist().
Implemented for linux and solaris. Doc needed.
2004-11-13 00:53:20 +00:00
Benoît Dejean
770e39d2d2
Zeroed all args.
...
* backends/server/command.c: (glibtop_call_i): Zeroed all args.
* configure.in: Bumped soname (thanks to seb128 and Dodji even if i've
fully understand everything.
* include/glibtop/array.h:
* include/glibtop/compat_10.h:
* include/glibtop/glib-arrays.h:
* include/glibtop/interfaces.h:
* include/glibtop/proccwd.h:
* lib/glib-arrays.c:
* sysdeps/names/interfaces.c:
* sysdeps/names/proccwd.c: Got rid of never-used / never-implemented files.
2004-08-28 11:12:02 +00:00
Benoît Dejean
ff4fe5e846
Glibify a bit more. Closes #147618 .
...
* doc/reference.texi:
* include/glibtop/command.h:
* include/glibtop/glib-arrays.h:
* include/glibtop/proclist.h:
* lib/glib-arrays.c: (glibtop_get_proclist_as_array_l):
* lib/lib.pl:
* scripts/c_types.pl:
* src/daemon/main.c: (handle_parent_connection):
* src/daemon/slave.c: (handle_slave_connection):
* support/mkstemp.c:
* sysdeps/aix/proclist.c: (glibtop_get_proclist_s):
* sysdeps/freebsd/cpu.c: (glibtop_get_cpu_p):
* sysdeps/freebsd/prockernel.c: (glibtop_get_proc_kernel_p):
* sysdeps/freebsd/proclist.c: (glibtop_get_proclist_p):
* sysdeps/freebsd/procmem.c: (glibtop_get_proc_mem_p):
* sysdeps/kernel/proclist.c: (glibtop_get_proclist_s):
* sysdeps/linux/proclist.c: (glibtop_get_proclist_s):
* sysdeps/osf1/proclist.c: (glibtop_get_proclist_p):
* sysdeps/solaris/proclist.c: (glibtop_get_proclist_s):
* sysdeps/stub/proclist.c: (glibtop_get_proclist_s):
* sysdeps/stub_suid/proclist.c: (glibtop_get_proclist_p):
* sysdeps/sun4/proclist.c: (glibtop_get_proclist_p): Glibify a bit more.
Closes #147618 .
2004-07-18 20:33:56 +00:00
Benoît Dejean
644b0ebcf5
Added read, write. This members provides total read and write in bytes
...
* include/glibtop/fsusage.h: Added read, write. This members provides
total read and write in bytes since boot_time.
* include/glibtop/netload.h: Added hwaddress : provides harware address,
eg MAC address. mtu, address and subnet are now guint32.
2004-07-17 12:09:01 +00:00
Benoît Dejean
b1c611c7fc
Added GLIBTOP_PROCESS_DEAD constant.
...
* include/glibtop/procstate.h: Added GLIBTOP_PROCESS_DEAD constant.
2004-07-15 20:54:57 +00:00
Benoît Dejean
a8593d5b84
Added new glibtop_get_proc_argv*() functions. These are more easier to use
...
* include/glibtop/procargs.h: Added new glibtop_get_proc_argv*() functions.
These are more easier to use than glibtop_get_proc_args*(). They return
a NULL-terminated array of string (like main's char* argv[]).
2004-07-07 20:22:58 +00:00
Benoît Dejean
babe152ba2
Removed netinfo.[ch] that were never used.
...
* include/glibtop/netinfo.h:
* structures.def:
* sysdeps/names/netinfo.c: Removed netinfo.[ch] that were never used.
2004-07-07 19:13:03 +00:00
Benoît Dejean
99723e15ba
Also tries C99 __VA_ARGS__ before using functions.
...
* include/glibtop/error.h: Also tries C99 __VA_ARGS__ before using
functions.
2004-06-18 20:28:48 +00:00
Benoît Dejean
6b3d52ff0e
Moved 8 static error functions to sysdeps/common/error.c. This is the end
...
* include/glibtop/error.h: Moved 8 static error functions to
sysdeps/common/error.c. This is the end of an big useless code
bloat : expect ~8KB of object size reduction.
* include/glibtop/procuid.h: s/int/gint32/g
* lib/errors.c: (glibtop_error_quark):
* lib/read.c: (do_read), (glibtop_read_l):
* lib/read_data.c: (glibtop_read_data_l): Minor cleanups.
2004-06-18 07:38:37 +00:00
Benoît Dejean
34e322e7c2
Added IPv6 feature : provides address, prefix and scope. This breaks the
...
* sysdeps/names/netload.c:
* include/glibtop/netload.h: Added IPv6 feature : provides address,
prefix and scope. This breaks the ABI. Not documented yet : check
this file.
2004-06-18 06:52:09 +00:00
Benoît Dejean
7fe2ca8cd7
*** empty log message ***
2004-06-13 08:19:59 +00:00
Benoît Dejean
a415d909a2
Changed get_sysinfo prototype so that it returns a const pointer. Added
...
* include/glibtop/sysinfo.h: Changed get_sysinfo prototype so that it
returns a const pointer. Added missing macro.
2004-06-12 22:39:14 +00:00
Benoît Dejean
d5b8a71e5b
block_size is now defined as a guint32 instead of a fuzzy gint.
...
* include/glibtop/fsusage.h: block_size is now defined as a guint32
instead of a fuzzy gint.
* lib/sysdeps.c: (glibtop_get_sysdeps_r): Small cleanup.
2004-06-12 15:39:31 +00:00
Benoît Dejean
70b0925a82
whitespace clean up.
...
* *.{c,h} : whitespace clean up.
2004-06-09 18:52:22 +00:00
Bastien Nocera
07ec479243
fix typo in the #defines for FSUSAGE_BLOCK_SIZE (patch by Benot Dejean
...
2004-04-07 Bastien Nocera <hadess@hadess.net >
* include/glibtop/fsusage.h: fix typo in the #defines for
FSUSAGE_BLOCK_SIZE (patch by Benot Dejean <TazForEver@free.fr >)
2004-04-07 Bastien Nocera <hadess@hadess.net >
* prockernel.c: (glibtop_get_proc_kernel_p): patch for NetBSD/AMD64
support (Julio M. Merino Vidal <jmmv@menta.net >)
2004-04-07 10:05:51 +00:00
Bastien Nocera
2b221cbb1f
set GLIBTOP_MAX_FSUSAGE properly, use gint in the headers instead of int
...
2004-03-15 Bastien Nocera <hadess@hadess.net >
* include/glibtop/fsusage.h: set GLIBTOP_MAX_FSUSAGE properly,
use gint in the headers instead of int (Closes : #125049 )
2004-03-15 Bastien Nocera <hadess@hadess.net >
* fsusage.c:
* fsusage.h: remove use of uintmax_t
2004-03-16 10:10:41 +00:00
Bastien Nocera
1d73fbed99
fix distchecking
...
2004-03-11 Bastien Nocera <hadess@hadess.net >
* include/Makefile.am: fix distchecking
2004-03-11 12:13:54 +00:00
Ole Laursen
897db07104
Added block_size field. ( Closes : #125049 )
...
2003-12-27 Ole Laursen <olau@hardworking.dk >
* include/glibtop/fsusage.h: Added block_size field. (Closes : #125049 )
2004-03-09 23:28:48 +00:00
Bastien Nocera
05f3377934
patch by Benoit Dejean <bnet@ifrance.com> to break the API, I mean, to
...
2004-03-05 Bastien Nocera <hadess@hadess.net >
* include/glibtop/procmap.h: patch by Benoit Dejean <bnet@ifrance.com >
to break the API, I mean, to make it easier to generate Python bindings
(Closes : #129701 )
2004-03-05 19:50:41 +00:00
Bastien Nocera
2ae3495a87
remove dependency on libgnome, check for linux/isdn.h for distros using
...
2004-03-04 Bastien Nocera <hadess@hadess.net >
* configure.in:
* include/libgtop-i18n.h:
* lib/lib.pl:
* lib/read.c:
* lib/read_data.c:
* lib/write.c:
* sysdeps/names/cpu.c:
* sysdeps/names/fsusage.c:
* sysdeps/names/loadavg.c:
* sysdeps/names/mem.c:
* sysdeps/names/mountlist.c:
* sysdeps/names/msg_limits.c:
* sysdeps/names/netload.c:
* sysdeps/names/ppp.c:
* sysdeps/names/procargs.c:
* sysdeps/names/prockernel.c:
* sysdeps/names/proclist.c:
* sysdeps/names/procmap.c:
* sysdeps/names/procmem.c:
* sysdeps/names/procsegment.c:
* sysdeps/names/procsignal.c:
* sysdeps/names/procstate.c:
* sysdeps/names/proctime.c:
* sysdeps/names/procuid.c:
* sysdeps/names/sem_limits.c:
* sysdeps/names/shm_limits.c:
* sysdeps/names/swap.c:
* sysdeps/names/sysdeps.c:
* sysdeps/names/uptime.c: remove dependency on libgnome,
check for linux/isdn.h for distros using the 2.6 kernel headers
2004-03-04 15:29:16 +00:00
Bastien Nocera
07d991f383
Apply patch by the_h1ghlander@yahoo.com and Cory Omand
...
2003-10-20 Bastien Nocera <hadess@hadess.net >
* include/glibtop/cpu.h:
* include/glibtop/procstate.h:
* include/glibtop/procuid.h:
* include/glibtop/uptime.h:
* lib/sysdeps.c:
* sysdeps/names/cpu.c:
* sysdeps/names/procstate.c:
* sysdeps/names/procuid.c:
* sysdeps/names/uptime.c: Apply patch by the_h1ghlander@yahoo.com and
Cory Omand <cory.omand@Sun.com > for Solaris support
2003-10-20 21:27:31 +00:00
Bastien Nocera
b2283f7c79
- s/u_int64_t/guint64/
2003-10-20 20:12:28 +00:00
Bastien Nocera
b67e4c7f7d
- fixed compilation
2003-10-20 15:20:16 +00:00
Bastien Nocera
ba36a20cb8
- replace all the xmalloc crap by glib memory management functions
2003-10-20 13:55:44 +00:00
Carlos Perelló Marín
4c8ae9e25c
Reverted libgtop changes. It's a common module and I should not modify it.
...
2003-10-19 Carlos Perelló Marín <carlos@gnome.org >
* support/*: Reverted libgtop changes. It's a common module
and I should not modify it.
* Added/removed files. Now the move should be done.
2003-10-19 16:55:56 +00:00
Carlos Perelló Marín
bae16b467f
libgtop-GNOME-2-0-branch moved to HEAD.
...
2003-10-19 Carlos Perelló Marín <carlos@gnome.org >
* libgtop-GNOME-2-0-branch moved to HEAD.
2003-10-19 16:10:39 +00:00
Owen Taylor
1042379d6d
Argument to free can't be const!
...
Mon Nov 26 20:11:31 2001 Owen Taylor <otaylor@redhat.com >
* lib/xmalloc.c include/glibtop/xmalloc.h: (glibtop_free_r):
Argument to free can't be const!
* include/glibtop/glibtop-client/backend.h
lib/glibtop-backend.c lib/glibtop-client.c: Include
glib-object.h, not gobject/gobject.h.
2001-11-27 01:15:03 +00:00
Bastien Nocera
c04ee88f00
- fixes for glib-1.3.9
2001-10-13 13:33:02 +00:00
Martin Baulig
dfb9d6f967
Added `glibtop_closure *' argument.
...
2001-04-20 Martin Baulig <baulig@suse.de >
* include/glibtop/glibtop-server.h (glibtop_init_func_t):
Added `glibtop_closure *' argument.
* include/glibtop/glibtop-backend-info.h
(glibtop_backend_close_func_t): Third argument is now
`glibtop_closure *'.
* include/glibtop/call-vector.pl: Reflect latest API changes.
2001-04-20 20:52:20 +00:00
Martin Baulig
530cc00ae7
Use G_BEGIN_DECLS and G_END_DECLS instead of LIBGTOP_BEGIN/END_DECLS.
...
2001-04-20 Martin Baulig <baulig@suse.de >
* include/glibtop/*.h: Use G_BEGIN_DECLS and G_END_DECLS
instead of LIBGTOP_BEGIN/END_DECLS.
2001-04-20 20:50:01 +00:00
Martin Baulig
a3557112a7
Typedef this as an opaque struct.
...
2001-04-20 Martin Baulig <baulig@suse.de >
* include/glibtop/glibtop-server.h (glibtop_closure):
Typedef this as an opaque struct.
2001-04-20 19:48:57 +00:00
Martin Baulig
3f34aafc6e
New file.
...
2001-04-20 Martin Baulig <baulig@suse.de >
* include/glibtop/closure.h: New file.
2001-04-20 18:15:55 +00:00
Martin Baulig
d6630b9f7a
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'.
2001-04-20 18:09:15 +00:00
Martin Baulig
c5fcc9aad6
Removed this typedef. (glibtop_server): Made the _priv' field a
void *'.
...
2001-04-20 Martin Baulig <baulig@suse.de >
* include/glibtop/glibtop-server.h
(glibtop_server_private): Removed this typedef.
(glibtop_server): Made the `_priv' field a `void *'.
2001-04-20 17:38:28 +00:00
Martin Baulig
f4fc67f85c
Added `void *closure' argument to all sysdeps functions.
...
2001-04-20 Martin Baulig <baulig@suse.de >
* include/glibtop/*.h (glibtop_get_*_s, glibtop_get_*_pl):
Added `void *closure' argument to all sysdeps functions.
* include/glibtop/open.h (glibtop_open_s, glibtop_open_p):
Removed the `const char *program_name' argument and added
`void *closure'.
2001-04-20 17:12:11 +00:00
Martin Baulig
bcc4ec968e
Install errors.h.
2001-04-20 16:24:46 +00:00
Martin Baulig
478be2d170
Added `void *closure' argument.
...
2000-11-27 Martin Baulig <martin@home-of-linux.org >
* include/glibtop/glibtop-backend-info.h
(glibtop_backend_close_func_t): Added `void *closure' argument.
* include/glibtop/call-vector.h: Changed the second argument
of all function in the call vector from `glibtop_backend *' to
`void *closure'.
2000-11-26 23:29:15 +00:00
Martin Baulig
622eb0ea5b
Renamed to glibtop_backend_get(). (glibtop_backend_get_server): New
...
2000-11-26 Martin Baulig <martin@home-of-linux.org >
* include/glibtop/glibtop-backend.h (glibtop_backend_open):
Renamed to glibtop_backend_get().
(glibtop_backend_get_server): New function.
2000-11-26 22:58:47 +00:00
Martin Baulig
4befe086c4
New function.
...
2000-11-26 Martin Baulig <martin@home-of-linux.org >
* include/glibtop/glibtop-backend.h
(glibtop_backend_get_call_vector): New function.
* lib/glibtop-client-private.h: New file.
* lib/glibtop-client.h (struct _glibtop_client_private): Moved
to glibtop-client-private.h.
2000-11-26 19:04:15 +00:00
Martin Baulig
98930be564
Changed return value to void.
...
2000-11-26 Martin Baulig <martin@home-of-linux.org >
* include/glibtop/glibtop-client.h (glibtop_client_open_backend):
Changed return value to void.
* lib/glibtop-client.c: Implement glibtop_client_add_backend() and
glibtop_client_remove_backend().
2000-11-26 18:54:57 +00:00