Commit Graph

143 Commits

Author SHA1 Message Date
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
222b93c33f We always have libxml installed. 2001-04-20 22:35:57 +00:00
Martin Baulig
08956770d2 Removed all sysdeps checks.
2001-04-21  Martin Baulig  <baulig@suse.de>

	* configure.in: Removed all sysdeps checks.

	* lib/sysdeps-init*.c: Removed.

	* lib/inodedb.c: Moved here from sysdeps/common/inodedb.c.

	* glibtop-config.h: Removed.
2001-04-20 22:29:59 +00:00
Martin Baulig
5bfb085021 Added xmalloc.c and error.c.
2001-04-20  Martin Baulig  <baulig@suse.de>

	* lib/Makefile.am (libgtop_la_SOURCES): Added xmalloc.c and
	error.c.
2001-04-20 20:53:00 +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
3b7c109916 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 *'.

	* glibtop-server-private.h: Moved to lib/.

	* lib/glibtop-server-private.h
	(glibtop_server_private): Moved this typedef here.
2001-04-20 17:48:55 +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
aac46b6daf *** empty log message *** 2001-04-20 15:48:09 +00:00
Martin Baulig
407514e4d7 Things are such much easier with the new g_signal_newc(). 2001-04-20 15:47:25 +00:00
Martin Baulig
34e8918003 *** empty log message *** 2000-11-26 23:33:27 +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
cee38c53bc New file.
2000-11-22  Martin Baulig  <martin@home-of-linux.org>

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

	* lib/test-backends.c: New file.
	* lib/Makefile.am: Build test-backends test program.

	* lib/init-backends.c: Port this to libxml 2.

	* configure.in: Make this really work.
	* acinclude.m4: Removed the xml stuff.
	* Makefile.am (SUBDIRS): Put lib in front of sysdeps and backends.
2000-11-22 20:58:15 +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
c15ff3f342 New type. (glibtop): Added glibtop_server_info *info', moved ncpu',
2000-11-20  Martin Baulig  <baulig@suse.de>

	* glibtop.h (glibtop_server_info): New type.
	(glibtop): Added `glibtop_server_info *info', moved
	`ncpu', `features', `sysdeps', `required' and `wanted'
	info glibtop_server_info.
2000-11-20 16:52:30 +00:00
Martin Baulig
62af029665 *** empty log message *** 2000-02-22 23:57:48 +00:00
Martin Baulig
6c6d8e006e Removed external declaration. New static variable. This maps backend names
2000-02-22  Martin Baulig  <martin@home-of-linux.org>

	* lib/init-backends.c (glibtop_backend_*): Removed external declaration.
	* lib/open-backends.c (backend_init_table): New static variable. This maps
	backend names to their `glibtop_backend_info' structure.
	(glibtop_open_backend_l): Make this working for the non-gmodule case.
	* lib/close.c (close_backend): Likewise.
2000-02-22 22:16:30 +00:00
Martin Baulig
a4db88252e Removed external declaration.
2000-02-22  Martin Baulig  <martin@home-of-linux.org>

	* lib/init-backends.c (glibtop_backend_*): Removed external
	declaration.
2000-02-22 21:58:09 +00:00
Martin Baulig
a73800ae2d Added labels. Provide actual implementation.
2000-02-13  Martin Baulig  <martin@home-of-linux.org>

	* lib/sysdeps-init-linux.c (glibtop_sys_siglist): Added labels.
	* lib/sysdeps-init-freebsd.c (glibtop_sys_siglist): Provide
	actual implementation.
2000-02-13 15:21:41 +00:00
Martin Baulig
0f3babc8e9 Moved here from the sysdeps directories.
2000-02-06  Martin Baulig  <martin@home-of-linux.org>

	* lib/sysdeps-init-*.c (glibtop_sys_siglist): Moved here from
	the sysdeps directories.

	* sysdeps/*/siglist.c: Removed.
2000-02-06 18:20:20 +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
8a85be8f00 Load the "glibtop-backend-kernel" before "glibtop-backend-command" and
2000-01-23  Martin Baulig  <martin@home-of-linux.org>

	* lib/sysdeps-init-kernel.c: Load the "glibtop-backend-kernel" before
	"glibtop-backend-command" and "glibtop-backend-sysdeps".

	* libgtop-sysdeps.m4: "kernel" is now a backend and no longer a
	sysdeps port; we compile the normal "linux" sysdeps dir when we
	have it.

	* backends/Makefile.am: Only compile `server' and `sysdeps'
	directories if appropriate.
2000-01-22 23:58:55 +00:00
Martin Baulig
e8c90833e8 Removed `-lgtop_sysdeps'. This is gmodule loaded from the backend open
2000-01-22  Martin Baulig  <martin@home-of-linux.org>

	* configure.in (LIBGTOP_LIBS): Removed `-lgtop_sysdeps'. This
	is gmodule loaded from the backend open function.

	* lib/init.c (glibtop_init_s): Don't call glibtop_open_s () here.

	* init-backend.c: Added support for a "ExtraLibs" section in the
	backend description file.
2000-01-22 22:14:59 +00:00
Martin Baulig
3fa1063b74 New file. Added sysdeps initialization code from DEC OSF/1.
2000-01-18  Martin Baulig  <martin@home-of-linux.org>

	* lib/sysdeps-init-osf1.c: New file. Added sysdeps initialization
	code from DEC OSF/1.
2000-01-18 16:55:11 +00:00
Martin Baulig
f11195b104 Copy the @sysdeps_init_file@ to `sysdeps-init.c', don't link it symbolically. 2000-01-13 21:26:52 +00:00
Martin Baulig
d423559605 *** empty log message *** 2000-01-13 00:35:31 +00:00
Martin Baulig
5af2aab0bf *** empty log message *** 2000-01-13 00:05:35 +00:00
Martin Baulig
dd8c31ebda Call glibtop_init_backend () and _glibtop_open_sysdeps () here.
2000-01-13  Martin Baulig  <martin@home-of-linux.org>

	* lib/open.c (glibtop_open_l): Call glibtop_init_backend () and
	_glibtop_open_sysdeps () here.
2000-01-13 00:00:04 +00:00
Martin Baulig
4d402ecc14 Provide implementation. 2000-01-12 23:57:19 +00:00
Martin Baulig
b660c7a0f7 New file. New file. New file. New file. New file. New file.
2000-01-12  Martin Baulig  <martin@home-of-linux.org>

	* lib/sysdeps-init-freebsd.c: New file.
	* lib/sysdeps-init-kernel.c: New file.
	* lib/sysdeps-init-linux.c: New file.
	* lib/sysdeps-init-solaris.c: New file.
	* lib/sysdeps-init-stub-suid.c: New file.
	* lib/sysdeps-init-stub.c: New file.
2000-01-12 23:33:51 +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
2a86a5de49 *** empty log message *** 2000-01-12 22:25:06 +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
50f0929ae8 Comment out `_glibtop_init_hook_s'.
2000-01-12  Martin Baulig  <martin@home-of-linux.org>

	* lib/init.c (glibtop_init_s): Comment out `_glibtop_init_hook_s'.
2000-01-12 17:39:58 +00:00
Martin Baulig
fe86288e76 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.
2000-01-12 13:11:19 +00:00
Martin Baulig
d74c329404 Added -lgtop_backend_common'. Initialize glibtop_backend_common'
2000-01-12  Martin Baulig  <martin@home-of-linux.org>

	* configure.in (LIBGTOP_LIBS): Added `-lgtop_backend_common'.
	* lib/init-backends.c (glibtop_init_backends): Initialize
	`glibtop_backend_common' backend.
2000-01-12 12:57:04 +00:00
Martin Baulig
c2e40852b6 Removed debugging code. 2000-01-09 15:02:51 +00:00
Martin Baulig
a1c574c502 Disable i18n here. 2000-01-09 14:24:16 +00:00
Martin Baulig
8745316574 *** empty log message *** 2000-01-08 21:51:33 +00:00