285 Commits

Author SHA1 Message Date
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
Martin Baulig
16b81f0d91 Removed. Split into glibtop-backend.h and glibtop-backend-info.h.
2000-11-26  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/backend.h: Removed. Split into glibtop-backend.h
	and glibtop-backend-info.h.

	* include/glibtop/glibtop-backend.h: New file. Switched
	glibtop_backend to a GObject.

	* include/glibtop/glibtop-backend-info.h: New file.

	* lib/backend.c, lib/init-backends.c, lib/open-backend.c: Removed.

	* lib/glibtop-backend.c: New file.
	* lib/glibtop-backend-info.c: New file.
2000-11-26 18:44:28 +00:00
Martin Baulig
dfd678599f Moved the typedef to backend.h.
2000-11-26  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/call-vector.h (glibtop_call_vector): Moved
	the typedef to backend.h.

	* include/glibtop/backend.h (glibtop_open_backend_l): Renamed
	to glibtop_open_backend(), removed the `glibtop_client *'
	argument and made the `GError *' argument non-optional.

	* include/glibtop/glibtop-client.h
	(glibtop_client_add_backend, glibtop_client_remove_backend): New
	functions to add/remove a glibtop_backend to a glibtop_client.
	(glibtop_client_open_backend): New convenient function; calls
	glibtop_open_backend() and glibtop_client_add_backend().
2000-11-26 18:07:11 +00:00
Martin Baulig
6e4f80b8e2 Added -Werror.
2000-11-22  Martin Baulig  <martin@home-of-linux.org>

	* configure.in (INCLUDES): Added -Werror.

	* include/glibtop/open.h (_glibtop_open_sysdeps): The first
	argument is now a `glibtop_client *', removed the `flags' argument
	and added `const char **backend_args' and `GError **opt_error'.
2000-11-22 21:26:15 +00:00
Martin Baulig
f704c4becf Allow the `error' argument to be NULL; propagate the error to the
2000-11-22  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/backends.h (glibtop_open_backend_l): Allow
	the `error' argument to be NULL; propagate the error to the
	glibtop_client in this case.
2000-11-22 21:15:28 +00:00
Martin Baulig
c06a084fcf Added "error" and "warning" signals.
2000-11-22  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/glibtop-client.h (glibtop_client_class):
	Added "error" and "warning" signals.
2000-11-22 20:59:16 +00:00
Martin Baulig
752d5b47d2 Started with the big rewrite for GNOME 2.0:
2000-11-20  Martin Baulig  <baulig@suse.de>

	Started with the big rewrite for GNOME 2.0:

	- split the `glibtop' structure into `glibtop_server' and
	`glibtop_client' and make `glibtop_client' a GObject.
	- cleanly separate the library and the backends.

	This stuff currently does not compile.

	* glibtop.h (glibtop_server_private, glibtop_server_info):
	Removed typedefs.
	(struct _glibtop, struct _glibtop_server_info): Removed.
	(glibtop_global_server, glibtop_server_features): Removed.
	(glibtop_server_ref, glibtop_server_unref): Removed.

	* glibtop.h (glibtop_init_s): First argument is now a
	`glibtop_server *'.

	* include/glibtop/*.h: Removed all #defines with the
	glibtop_global_server.
	(glibtop_get_*_l): First argument is now a `glibtop_client *'.
	(glibtop_get_*_s, glibtop_init_*_s): First argument is now a
	`glibtop_server *'.

	* lib/glibtop-client.c: New file.

	* sysdeps/common/xmalloc.c: Moved to lib/.
	* sysdeps/common/error.c: Moved to lib/.

	* lib/xmalloc.c: Moved here from sysdeps/common/.
	* lib/error.c: Moved here from sysdeps/common/.

	* include/glibtop/backend.h
	(glibtop_backend_open_func_t, glibtop_backend_close_func_t):
	First argument is now a `glibtop_server *'.
	(glibtop_backend_info): Added `glibtop_server *server'.
	(glibtop_open_backend_l): Returns `glibtop_backend *', first
	argument is `glibtop_client *' and added `GError **'.

	* include/glibtop/close.h (glibtop_close_s, glibtop_close_p):
	First argument is now a `glibtop_server *'.

	* include/glibtop/error.h (*):
	First argument is now a `glibtop_server *'.

	* include/glibtop/errors.h: Switched this to use GError.
2000-11-20 22:37:15 +00:00
Martin Baulig
a40a438ec8 *** empty log message *** 2000-04-24 13:20:13 +00:00
Martin Baulig
718cd38098 Added `Process current working directory' feature (proc_cwd).
2000-04-24  Martin Baulig  <baulig@suse.de>

	Added `Process current working directory' feature (proc_cwd).

	* include/glibtop/proc_cwd.h: New file.
	* features.def: Added `proc_cwd'.

	* include/glibtop/sysdeps.h (glibtop_sysdeps): Added `proc_cwd'.
	* include/glibtop/union.h (glibtop_union): Added `proc_cwd'.

	* sysdeps/stub/proc_cwd.c: New file.
	* sysdeps/names/proc_cwd.c: New file.
2000-04-24 13:08:48 +00:00
Martin Baulig
5dbfe42493 Moved to sysdeps/common/error.c. (glibtop_error_io_r, glibtop_warn_io_r):
2000-02-24  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/error.h (glibtop_error_r, glibtop_warn_r): Moved
	to sysdeps/common/error.c.
	(glibtop_error_io_r, glibtop_warn_io_r): Likewise.
	(glibtop_error, glibtop_warn): Moved the non-GNU-C version of them
	to sysdeps/common/error.c.
	(glibtop_error_io, glibtop_warn_io): Likewise.

	* sysdeps/common/error.c (glibtop_error_r, glibtop_warn_r): Moved
	here from include/glibtop/error.h.
	(glibtop_error_io_r, glibtop_warn_io_r): Likewise.
	(glibtop_error, glibtop_warn): Moved the non-GNU-C version of them
	here from include/glibtop/error.h.
	(glibtop_error_io, glibtop_warn_io): Likewise.
2000-02-24 18:54:13 +00:00
Martin Baulig
da16460aad *** empty log message *** 2000-02-24 12:41:55 +00:00
Martin Baulig
444ede9949 It's called <sys/bitypes.h>, not <sys/bittypes.h> ... 2000-02-24 12:16:30 +00:00
Martin Baulig
350e4e799d Fix some True64 issues which were reported from Aron Griffis.
2000-02-23  Martin Baulig  <martin@home-of-linux.org>

	Fix some True64 issues which were reported from Aron Griffis.

	* libgtop-sysdeps.m4 (GNOME_LIBGTOP_TYPES_PRIVATE): Check for
	<sys/bittype.h> and use AC_LIBGTOP_CHECK_TYPE, not AC_CHECK_TYPE.

	* include/glibtop/global.h: #include <sys/bittypes.h>.

	* ltmain.sh: Added this from libtool 1.3.4 (only used on Solaris).
2000-02-22 23:30:56 +00:00
Martin Baulig
8bcbf2f86c New constant.
2000-02-21  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/interfaces.h (GLIBTOP_STRATEGY_FLAGS_MASK):
	New constant.
2000-02-20 23:32:15 +00:00
Martin Baulig
55ff827b50 Removed method', server_command', server_host', server_user' and
2000-02-06  Martin Baulig  <martin@home-of-linux.org>

	* glibtop.h (glibtop): Removed `method', `server_command',
	`server_host', `server_user' and `server_rsh'.
	Added `glibtop_parameter _param' field and moved `error_method'
	there.

	* include/glibtop/parameter.h (glibtop_parameter): New structure.
	(GLIBTOP_PARAM_METHOD, GLIBTOP_PARAM_COMMAND): Removed.
	(GLIBTOP_PARAM_HOST, GLIBTOP_PARAM_PORT): Removed.
	(GLIBTOP_PARAM_REMOTE_USER, GLIBTOP_PARAM_PATH_RSH): Removed.
	(GLIBTOP_PARAM_NCPU, GLIBTOP_PARAM_OS_VERSION_CODE): Added.
2000-02-06 14:43:55 +00:00
Martin Baulig
2eab7cfc48 Removed the `lockfile' argument; we now use a configure check to determine
2000-02-06  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/ppp.h (glibtop_get_ppp): Removed the `lockfile'
	argument; we now use a configure check to determine the modem
	lockfile.

	* include/glibtop/error.h (GLIBTOP_ERROR_NEED_MODEM_LOCKFILE):
	Removed this now obsolete error constant again.

	* configure.in (--with-modem-lockfile): New configure parameter
	to manually specify the modem lockfile.
	(LIBGTOP_MODEM_LOCKFILE): Define this to be a printf-format string
	for the modem lockfile; takes the interface number as argument.
2000-02-06 13:21:14 +00:00
Martin Baulig
129e4bc0ac New enum for the IPv6 address scope.
2000-02-05  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/interfaces.h (glibtop_ipv6_scope): New
	enum for the IPv6 address scope.
2000-02-04 23:10:58 +00:00
Martin Baulig
faec393b8d New enum for the IPv6 address scope.
2000-02-05  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/interfaces.h (glibtop_ipv6_scope): New
	enum for the IPv6 address scope.
2000-02-04 23:06:33 +00:00
Martin Baulig
00a9f98ee0 *** empty log message *** 2000-01-28 22:25:45 +00:00
Martin Baulig
5f02295a63 address' and subnet' are now arrays of GLIBTOP_IFADDR_LEN u_int8_t
2000-01-24  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/netinfo.h (glibtop_netinfo): `address' and
	`subnet' are now arrays of GLIBTOP_IFADDR_LEN u_int8_t values.
	(glibtop_get_netinfo): `transport' is now `u_int64_t' and not
	`unsigned' to make it work with `GLIBTOP_TRANSPORT_ALL'.

	* include/glibtop/limits.h (GLIBTOP_IFADDR_LEN): New constant.
	This is the length of a network interface address in bytes.
2000-01-24 23:27:50 +00:00