Commit Graph

142 Commits

Author SHA1 Message Date
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
Martin Baulig
77a1a6a43d 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 01:42:32 +00:00
Martin Baulig
2144fab671 Added `extra_libs'.
2000-01-22  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/backend.h (_glibtop_backend_module): Added
	`extra_libs'.
2000-01-22 22:15:48 +00:00
Martin Baulig
931ba0fa8d Added use_isdn' and lockfile' arguments. When `use_isdn' is TRUE, we
2000-01-22  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/ppp.h (glibtop_get_ppp): Added `use_isdn' and
	`lockfile' arguments. When `use_isdn' is TRUE, we return ISDN
	statistics, otherwise `lockfile' is expected to be the modem
	lockfile and we return PPP statistics for that Modem.

	Note that for Modem statistics, you need to set both `device' and
	`lockfile' for some sysdeps ports; so if you have more than one PPP
	connection active and want to get statistics on the second one you
	need to set `device' to 1 and `lockfile' to the correct modem lockfile.

	* include/glibtop/error.h (GLIBTOP_ERROR_NEED_MODEM_LOCKFILE): New
	error constant; this is returned when you call glibtop_get_ppp ()
	without a modem lockfile and the current sysdeps port requires it.
2000-01-22 17:33:51 +00:00
Martin Baulig
992e064952 We now use `@LIBGTOP_PACKAGE@' as the translation domain so installed
2000-01-16  Martin Baulig  <martin@home-of-linux.org>

	We now use `@LIBGTOP_PACKAGE@' as the translation domain so
	installed `libgtop-1.1.mo' files won't conflict with the ones
	from LibGTop 1.0 and you can keep both versions installed.

	* po/Makefile.in.in.in: New file. This is a modified version of
	the usual `Makefile.in.in' which is created by gettextize; we
	copy this over `Makefile.in.in' in autogen.sh after gettextize'ing.

	* autogen.sh: Copy `po/Makefile.in.in.in' over `po/Makefile.in.in'
	after running `macros/autogen.sh'.

	* configure.in (LIBGTOP_PACKAGE): AC_SUBST and AC_DEFINE this.

	* include/glibtop/global.h (_): Use `LIBGTOP_PACKAGE' as our
	translation domain.

2000-01-16  Martin Baulig  <martin@home-of-linux.org>

	* LIBGTOP-VERSION (LIBGTOP_VERSION_SUFFIX): Added this so you can
	have your tarballs called `libgtop-1.x.y-snap.tar.gz' or whatever.
	This only affects the `VERSION' variable and thus how the resulting
	tarball will be called, but not `LIBGTOP_VERSION_CODE' etc.

	* Makefile.am: Make `aclocal.m4' also depend on `LIBGTOP-VERSION'
	when in maintainer-mode.
2000-01-16 00:48:08 +00:00
Martin Baulig
65b08749cf Add compatibility #defines for GLIBTOP_XCPU_TOTAL', GLIBTOP_XCPU_USER',
2000-01-13  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/compat_10.h: Add compatibility #defines for
	`GLIBTOP_XCPU_TOTAL', `GLIBTOP_XCPU_USER', `GLIBTOP_XCPU_NICE',
	`GLIBTOP_XCPU_SYS', `GLIBTOP_XCPU_IDLE' and `GLIBTOP_XCPU_FLAGS'
2000-01-13 15:20:49 +00:00
Martin Baulig
20c306fc6d Call `_glibtop_open_sysdeps'.
2000-01-12  Martin Baulig  <martin@home-of-linux.org>

	* lib/init.c (glibtop_init_s): Call `_glibtop_open_sysdeps'.

	* include/glibtop/open.h (_glibtop_open_sysdeps): Declare this
	when we are _IN_LIBGTOP.

	* configure.in (sysdeps_name): Define and AC_SUBST this.
	(sysdeps_init_file): Define and AC_SUBST this to
	`sysdeps-init-${sysdeps_name}.c'.

	* libgtop-sysdeps.m4 (GNOME_LIBGTOP_SYSDEPS): Define and AC_SUBST
	`libgtop_sysdeps_name'.
2000-01-12 22:46:29 +00:00
Martin Baulig
7ba17b2bee New error constant.
2000-01-12  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/errors.h (GLIBTOP_ERROR_NO_BACKEND_OPENED):
	New error constant.

	* lib/lib.pl (glibtop_get_<feature>_l): Don't dump core when there
	is no backend opened, but return GLIBTOP_ERROR_NO_BACKEND_OPENED.
2000-01-12 21:38:55 +00:00
Martin Baulig
31067e703d Added `_priv_module' pointer (type glibtop_backend_module). Made the
2000-01-12  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/backend.h (glibtop_backend): Added `_priv_module'
	pointer (type glibtop_backend_module). Made the `info' field const
	since this now points to gmodule loaded memory
	(glibtop_backend_entry): Made the `info' field const since it points
	to gmodule loaded memory.

	* lib/close.c (glibtop_close_r): Close all currently opened backends.
2000-01-12 21:30:13 +00:00
Martin Baulig
e2e5c3a1cc New type. (glibtop_backend_module): New private type.
2000-01-12  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/backend.h (glibtop_backend_entry): New type.
	(glibtop_backend_module): New private type.

	* lib/backend.c (glibtop_register_backend): This now takes a
	`glibtop_backend_entry' argument, not a `glibtop_backend_info' one.
	(glibtop_backend_by_id): Return a `glibtop_backend_entry' type,
	not a `glibtop_backend_info' one.
	(glibtop_backend_by_name): Likewise.

	* lib/init-backends.c: If we have libxml, read all `.backend' files
	in $(LIBGTOP_BACKEND_DIR), XML parse them and register them via
	`glibtop_backend_register'. This builds a list of all currently
	supported backends without actually loading them into memory.

	* lib/open-backend.c (glibtop_open_backend_l): GModule load the
	backend if it's not already in memory.
2000-01-12 20:37:21 +00:00
Martin Baulig
9b8fd192d0 Unconditionally #include <sys/types.h>.
2000-01-09  Martin Baulig  <martin@bergen.home-of-linux.org>

	* include/glibtop/global.h: Unconditionally #include <sys/types.h>.
2000-01-09 14:18:55 +00:00
Martin Baulig
8745316574 *** empty log message *** 2000-01-08 21:51:33 +00:00
Martin Baulig
6fe80f02ce Removed.
2000-01-02  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/version.h: Removed.
2000-01-02 16:11:08 +00:00
Martin Baulig
58fa4a5955 New error constant.
2000-01-02  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/errors.h
	(GLIBTOP_ERROR_DEMARSHAL_ERROR): New error constant.
2000-01-02 14:48:49 +00:00
Martin Baulig
cd9c5b7967 Disable compilation of the `daemon' directory.
2000-01-02  Martin Baulig  <martin@home-of-linux.org>

	* src/Makefile.am: Disable compilation of the `daemon' directory.

	* include/glibtop/command.h: Removed.
2000-01-02 14:48:15 +00:00
Martin Baulig
57d102425f All functions in the `glibtop_call_vector' now take an additional
2000-01-02  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/call-vector.pl: All functions in the
	`glibtop_call_vector' now take an additional `glibtop_backend *'
	argument.
2000-01-02 12:53:53 +00:00
Martin Baulig
68a40b5cba Removed. Removed. Removed.
2000-01-01  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/read.h: Removed.
	* include/glibtop/read_data.h: Removed.
	* include/glibtop/write.h: Removed.
2000-01-01 21:00:08 +00:00
Martin Baulig
75ed7287d1 New directory. New directory. New directory.
2000-01-01  Martin Baulig  <martin@home-of-linux.org>

	* backends/: New directory.
	* backends/server/: New directory.
	* backends/sysdeps/: New directory.

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

	* include/glibtop/call-vector.h.in: New file. Template file
	for `call-vector.h'.
	* include/glibtop/call-vector.pl: New file. Creates 'call-vector.h'
	from `call-vector.h.in'.

	* include/glibtop/errors.h
	(GLIBTOP_ERROR_NO_SUCH_BACKEND): New error constant.
        (GLIBTOP_ERROR_NOT_IMPLEMENTED): New error constant.

	* include/glibtop/limits.h
	(GLIBTOP_BACKEND_NAME_LEN): New constant.

	* glibtop-server-private.h (glibtop_server_private):
	Added `GSList *backend_list' and removed `input', `output',
	`socket' and `pid'.

	* lib/command.c: Removed. Moved to `backends/server/'.
	* lib/read.c: Removed. Moved to `backends/server/'.
	* lib/read_data.c: Removed. Moved to `backends/server/'.
	* lib/write.c: Removed. Moved to `backends/server/'.
2000-01-01 20:56:53 +00:00
Martin Baulig
f1a6e1ead8 The indentation in LibGTop was done with the following command:
find . -name \*.[ch] | xargs -i emacs -batch {} \
		-l /gnome/compile/libgtop/misc/format.el -f save-buffer

December 26, 1999
Martin
1999-12-26 14:05:32 +00:00
Martin Baulig
595553ae0b Removed all remote communication support from LibGTop.
1999-12-23  Martin Baulig  <martin@home-of-linux.org>

	Removed all remote communication support from LibGTop.

	* include/glibtop/gnuserv.h: Removed.

	* sysdeps/common/gnuslib.c: Removed.

	* src/daemon/Makefile.am: Don't build the `libgtop_daemon'
	binary any longer.

	* src/daemon/server_config.pl: Removed.
	* src/daemon/server_config.h.in: Removed.
	* src/daemon/server_config.h: Removed.
1999-12-23 13:08:51 +00:00
Martin Baulig
d0441219cb New global function to return `server->glibtop_errno'.
1999-12-22  Martin Baulig  <martin@home-of-linux.org>

	* lib/errors.c (glibtop_get_errno_l): New global function
	to return `server->glibtop_errno'.
	(glibtop_clear_errno_l): New global function to return
	`server->glibtop_errno' and set it back to 0.
1999-12-22 13:09:42 +00:00
Martin Baulig
1ad3a69d8f New error constant. (GLIBTOP_ERROR_INCOMPATIBLE_KERNEL): New error
1999-12-22  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/errors.h
	(GLIBTOP_ERROR_NO_KERNEL_SUPPORT): New error constant.
	(GLIBTOP_ERROR_INCOMPATIBLE_KERNEL): New error constant.
1999-12-22 12:51:59 +00:00
Martin Baulig
d86a386ad8 New global function.
1999-12-22  Martin Baulig  <martin@home-of-linux.org>

	* lib/errors.c (glibtop_get_errno_l): New global function.

	* lib/lib.pl: For functions with a `retval' return type, set
	`server->glibtop_errno' to the error code on error or to zero
	on success.
1999-12-22 11:50:47 +00:00
Martin Baulig
47a0ef64d8 Added `errno' field.
1999-12-22  Martin Baulig  <martin@home-of-linux.org>

	* glibtop.h (glibtop): Added `errno' field.

	* include/glibtop/errors.h
	(GLIBTOP_ERROR_SERVER_COMM_FAILURE): New error constant.
	(GLIBTOP_ERROR_NO_SUCH_PROCESS): New error constant.
1999-12-22 11:19:16 +00:00
Martin Baulig
5f649a7613 New file.
1999-12-19  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/glib-arrays.h: New file.

	* lib/glib-arrays.c: New file.
	(glibtop_get_proclist_as_array_l): New function.
	(glibtop_get_proc_args_as_array_l): New function.
	(glibtop_get_proc_map_as_array_l): New function.
	(glibtop_get_mountlist_as_array_l): New function.
1999-12-19 15:49:47 +00:00
Martin Baulig
339e1f4557 Removed. (glibtop_get_proc_args_*): This now takes a `glibtop_array'
1999-12-12  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/procargs.h (glibtop_proc_args): Removed.
	(glibtop_get_proc_args_*): This now takes a `glibtop_array' parameter
	instead of a `glibtop_proc_args one and returns a `char **'.
1999-12-19 14:37:49 +00:00
Martin Baulig
da42214e86 Removed. (glibtop_get_proc_args_*): This now takes a `glibtop_array'
1999-12-12  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/procargs.h (glibtop_proc_args): Removed.
	(glibtop_get_proc_args_*): This now takes a `glibtop_array' parameter
	instead of a `glibtop_proc_args one and returns a `char **'.
1999-12-19 14:10:23 +00:00
Martin Baulig
d2d8d38db4 New file. We define `GLIBTOP_ERROR_*' error constants here.
1999-12-19  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/errors.h: New file. We define `GLIBTOP_ERROR_*'
	error constants here.

	* lib/errors.c: New file.
	(glibtop_error_strings): Array of error messages.
	(glibtop_get_error_string_l): Get error message.

	* include/glibtop/parameter.h: Added `GLIBTOP_PARAM_REMOTE_USER' and
	`GLIBTOP_PARAM_PATH_RSH'.

	* lib/parameter.c (glibtop_get_parameter_l): Changed return value
	from `size_t' to `ssize_t' and let it return an error constant.
	(glibtop_get_parameter_size_l): New function.
	(glibtop_set_parameter_l): Changed return value from `void' to `int'
	and let it return an error constant on error.

	* structures.def (glibtop_sysdeps): Added.
1999-12-19 00:30:18 +00:00
Martin Baulig
881c2a2086 All functions which return an array now take a `glibtop_array *array'
1999-12-12  Martin Baulig  <martin@home-of-linux.org>

	All functions which return an array now take a `glibtop_array *array'
	parameter instead of a `glibtop_<feature> *buf' one.

	For compatibility, we typedef the corresponding `glibtop_<feature>'s
	to `glibtop_array' in <glibtop/compat_10.h>.

	This has the advantage that scripting languages like Guile with an
	array implementation which stores the length of an array in the
	array don't need the `glibtop_array' parameter at all any longer.

	We'll also add convenient functions which return GPtrArray's here.

	* include/glibtop/proclist.h (glibtop_proclist): Removed.
	(glibtop_get_proclist_*): This now takes a `glibtop_array' parameter
	instead of a `glibtop_proclist' one.

	* include/glibtop/procmap.h (glibtop_proc_map): Removed.
	(glibtop_get_proc_map_*): This now takes a `glibtop_array' parameter
	instead of a `glibtop_proc_map' one.

	* include/glibtop/mountlist.h (glibtop_mountlist): Removed.
	(glibtop_get_mountlist_*): This now takes a `glibtop_array' parameter
	instead of a `glibtop_mountlist' one.

	* include/glibtop/interfaces.h (glibtop_interface_names): Removed.
	(glibtop_get_interface_names_*): This now takes a `glibtop_array'
	parameter instead of a `glibtop_interface_name' one.

	* include/glibtop/compat_10.h: New file. Contains some typedefs and
	#defines to keep compatibility until the big restructurement is
	completely done.
1999-12-12 14:20:17 +00:00
Martin Baulig
a33f4df47e New file.
1999-12-12  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/array.h: New file.
1999-12-12 12:48:30 +00:00
Martin Baulig
18af9297ea This is a larger source-incompatible commit, but it'll make it easier to
1999-12-11  Martin Baulig  <martin@home-of-linux.org>

	This is a larger source-incompatible commit, but it'll make it
	easier to write automatically generated code (for instance for
	scripting languages).

	Renamed all constants for the flags field to match the field names
	from the features.def and structures.def where this was not already
	the case.

	* include/glibtop/cpu.h: s/GLIBTOP_XCPU_/GLIBTOP_CPU_XCPU_/g.
	* include/glibtop/shm_limits.h: s/GLIBTOP_IPC_/GLIBTOP_SHM_LIMITS_/g.
	* include/glibtop/sem_limits.h: s/GLIBTOP_IPC_/GLIBTOP_SEM_LIMITS_/g.
	* include/glibtop/msg_limits.h: s/GLIBTOP_IPC_/GLIBTOP_MSG_LIMITS_/g.
1999-12-11 14:33:18 +00:00
Martin Baulig
2bb9bc624d Return array of `glibtop_interface' structures. (glibtop_interface): New
1999-12-05  Martin Baulig  <martin@home-of-linux.org>

	* includes/glibtop/interfaces.h (glibtop_get_interface_names):
	Return array of `glibtop_interface' structures.
	(glibtop_interface): New structure.
1999-12-05 13:54:37 +00:00
Martin Baulig
069eb707f0 New #define. (GLIBTOP_UNLIMITED): #define this to be `(~(u_int64_t)0)'.
1999-12-05  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/limits.h (GLIBTOP_INTERFACE_LEN): New #define.
	(GLIBTOP_UNLIMITED): #define this to be `(~(u_int64_t)0)'.
1999-12-05 13:52:32 +00:00
Martin Baulig
f850409d45 Added transport' and protocol' argument to specify transport method and
1999-11-28  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/netload.h (glibtop_get_netload): Added
	`transport' and `protocol' argument to specify transport method
	and protocol.

	* include/glibtop/netinfo.h (glibtop_get_netinfo): Added
	`transport' argument to specify the transport method.
1999-11-28 19:03:05 +00:00
Martin Baulig
d58748ac66 Added `transport' field for the transport method.
1999-11-28  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/netinfo.h (glibtop_netinfo): Added `transport'
	field for the transport method.
1999-11-28 18:41:45 +00:00
Martin Baulig
4a01752467 Split netload into netload and netinfo.
1999-11-28  Martin Baulig  <martin@home-of-linux.org>

	Split netload into netload and netinfo.

	* include/glibtop/netinfo.h: New file.

	* include/glibtop/netload.h (glibtop_netload): Moved `if_flags',
	`mtu', `subnet' and `address' into the new `glibtop_netinfo'.

	* include/glibtop/sysdeps.h (GLIBTOP_SYSDEPS_NETINFO): Added.
	(glibtop_sysdeps): Added `netinfo.
	* include/glibtop/union.h (glibtop_union): Added `netinfo.
	* include/glibtop/command.h (GLIBTOP_CMND_NETINFO): Added.
1999-11-28 18:17:21 +00:00
Martin Baulig
53f9d03e30 Added `instance' argument.
1999-11-28  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/interfaces.h (glibtop_get_interface_names):
	Added `instance' argument.
1999-11-28 17:53:34 +00:00
Martin Baulig
566e05bb33 *** empty log message *** 1999-11-21 19:05:11 +00:00
Martin Baulig
ac83dcc3b3 Added GLIBTOP_INTERFACE_ISDN. 1999-11-21 18:38:48 +00:00
Martin Baulig
b746f488b0 Added new feature to get a list of network interface names.
1999-11-21  Martin Baulig  <martin@home-of-linux.org>

	Added new feature to get a list of network interface names.

	* features.def: Added `interface_names' feature.

	* include/glibtop/interfaces.h: New file.

	* include/glibtop/sysdeps.h (GLIBTOP_SYSDEPS_INTERFACE_NAMES): Added.
	(glibtop_sysdeps): Added `interface_names'.
	* include/glibtop/union.h (glibtop_union): Added `interface_names'.
	* include/glibtop/command.h (GLIBTOP_CMND_INTERFACE_NAMES): Added.
1999-11-21 18:35:40 +00:00
Martin Baulig
3f8ad111b2 Use int' as return type, not void'.
1999-11-21  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/sysdeps.h (glibtop_init_func_t): Use `int'
	as return type, not `void'.

	* include/glibtop/proclist.h (GLIBTOP_KERN_PROC_PPID): On a
	suggestion from Sebastian Fischmeister added a way to return
	all children of a given process.
1999-11-21 17:07:42 +00:00
Martin Baulig
507f171b63 Use `retval' for the default retval.
1999-10-24  Martin Baulig  <martin@home-of-linux.org>

	* features.def: Use `retval' for the default retval.

	* include/glibtop/command.h (glibtop_command_h): Added
	`int *retval_ptr' parameter to return the retval from the
	sysdeps functions.
1999-10-24 20:04:37 +00:00
Martin Baulig
a5dd7e9063 This is a very big an possibly breaking commit.
It changes the return values of all sysdeps functions which were
previosly returning void to int.

This is the first step to implement better error handling in LibGTop.

Martin

1999-10-24  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/*.h (glibtop_get_*, glibtop_init*): Changed
	the return value of all `glibtop_get_<feature>_* ()' and all
 	`glibtop_init_<feature>_* ()' functions from void to int.

	* features.def: Reflect changes of the return values.
	* sysdeps/*/*.c: Reflect changes of the return values.
1999-10-24 19:09:32 +00:00
Martin Baulig
a5c839da3a Use G_GNUC_UNUSED.
1999-07-29  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/error.h: Use G_GNUC_UNUSED.
1999-07-29 21:20:35 +00:00