Commit Graph

20 Commits

Author SHA1 Message Date
Benoît Dejean
04a5531a46 Removed noisy $Id$.
2007-02-20  Benoît Dejean  <benoit@placenet.org>

	* *:
	
	Removed noisy $Id$.

svn path=/trunk/; revision=2558
2007-02-19 23:10:10 +00:00
Benoît Dejean
fa9216f771 s/strerror/g_strerror/g.
* error.c: (glibtop_error_io_vr), (glibtop_warn_io_vr):
	* error_suid.c: (glibtop_error_io_vr), (glibtop_warn_io_vr):
	s/strerror/g_strerror/g.
2005-03-25 13:24:14 +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
bb01063e93 These functions are now globally defined.
* error.c: (print_server_name), (glibtop_error_r),
        (glibtop_warn_r), (glibtop_error_io_r), (glibtop_warn_io_r),
        (glibtop_error), (glibtop_warn), (glibtop_error_io),
        (glibtop_warn_io): These functions are now globally defined.
2004-06-18 07:33:23 +00:00
Benoît Dejean
70b0925a82 whitespace clean up.
* *.{c,h} : whitespace clean up.
2004-06-09 18:52:22 +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
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
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
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
cf611f9157 Set the copyright of LibGTop to the GNU General Public License.
1999-02-22  Martin Baulig  <martin@home-of-linux.org>

	Set the copyright of LibGTop to the GNU General Public License.

	* copyright.txt: Set the year to 1998-99 and pretty-format it a
	little bit. Same in all C source and header files.
1999-02-23 11:47:35 +00:00
Martin Baulig
ce4f660965 Include a copy of the GNU Library General Public License here.
1999-02-22  Martin Baulig  <martin@home-of-linux.org>

	* COPYING.LIB: Include a copy of the GNU Library General
	Public License here.

	* copyright.txt: Set the year to 1998-99 and pretty-format it a
	little bit. Same in all C source and header files.
1999-02-22 16:19:36 +00:00
Martin Baulig
a7bdfcb951 Don't include <glib.h>. Use int' not gint'.
1999-02-19  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/error.h: Don't include <glib.h>.
	* sysdeps/common/error.c: Use `int' not `gint'.
1999-02-19 21:54:22 +00:00
Martin Baulig
1da8264984 Replaced inline with static.
1999-02-18  Martin Baulig  <martin@home-of-linux.org>

	* sysdeps/common/error.h: Replaced inline with static.
1999-02-18 15:23:41 +00:00
Martin Baulig
00f0791ebd Define them as G_INLINE_FUNC in <glibtop/errno.h> if possible.
1999-02-18  Martin Baulig  <martin@home-of-linux.org>

	* sysdeps/common/error.c (glibtop_error_r, glibtop_warn_r): Define
	them as G_INLINE_FUNC in <glibtop/errno.h> if possible.
	(glibtop_error_io_r, glibtop_warn_io_r): Likewise.
	(glibtop_error_vr, glibtop_warn_vr): New functions taking a va_list.
	(glibtop_error_io_vr, glibtop_warn_io_vr): New functions taking an
	errno an a va_list.
1999-02-18 08:57:03 +00:00
Martin Baulig
44b03ba60b Define LIBGTOP_ENABLE_DEBUG if this parameter is given.
1998-11-11  Martin Baulig  <martin@home-of-linux.org>

	* configure.in (--enable-debug): Define LIBGTOP_ENABLE_DEBUG
	if this parameter is given.
	(--enable-fatal-warnings): New parameter to make all warnings
	fatal; define `LIBGTOP_FATAL_WARNINGS' if given.

	* sysdeps/common/error.c (glibtop_error_r): Use abort () instead
	of exit () if LIBGTOP_ENABLE_DEBUG.
	(glibtop_error_io_r): Likewise.
	(glibtop_warn_r): Call abort () if LIBGTOP_FATAL_WARNINGS.
	(glibtop_warn_io_r): Likewise.

	[NOTE: To get a core dump of the libgtop_server, you need to
	remove all suid/sgid bits and invoke it as a priviledged user.]
1998-11-11 16:02:01 +00:00
Martin Baulig
213647b203 *** empty log message *** 1998-11-02 19:42:26 +00:00
Martin Baulig
0b4f757b2b using functions from `xmalloc.c'.
1998-07-06  Martin Baulig  <martin@home-of-linux.org>

	* sysdeps/common/mountlist.c: using functions from `xmalloc.c'.

	* sysdeps/common/error.c: all functions now accept NULL as
	`server' argument.
1998-07-07 00:10:49 +00:00
Martin Baulig
58707dac42 New function - same as glibtop_error_r', but doesn't call exit'.
1998-06-14  Martin Baulig  <martin@home-of-linux.org>

	* sysdeps/common/error.c (glibtop_warn_r): New function -
	same as `glibtop_error_r', but doesn't call `exit'.
	(glibtop_error_io_r, glibtop_warn_io_r): New functions,
	display `strerror (errno)' together with message.
1998-06-14 16:47:09 +00:00
Martin Baulig
c84923132a Using single underscore instead of two underscores for function prefixes
1998-06-07  Martin Baulig  <martin@home-of-linux.org>

	* *.[ch]: Using single underscore instead of two underscores
	for function prefixes (regexp: ``s,__([rspl])\b,_$1,g'') to
	avoid ambiguity with mangled C++ names.
1998-06-07 13:57:45 +00:00
Martin Baulig
33cdc01c1d Initial revision 1998-05-19 18:19:50 +00:00