Commit Graph

14 Commits

Author SHA1 Message Date
Benoît Dejean
70b0925a82 whitespace clean up.
* *.{c,h} : whitespace clean up.
2004-06-09 18:52:22 +00:00
Bastien Nocera
a795ff4847 fix g_malloc usage on non-Linux platforms (patch by Benoit Dejean
2004-03-09  Bastien Nocera  <hadess@hadess.net>

	* fix g_malloc usage on non-Linux platforms (patch by Benoit
	Dejean <bnet@ifrance.com>)
2004-03-09 23:02:06 +00:00
Bastien Nocera
ba36a20cb8 - replace all the xmalloc crap by glib memory management functions 2003-10-20 13:55:44 +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
8a78a93e0c New global variable. (_open_server, _close_server): Use the quark.
2000-11-27  Martin Baulig  <martin@home-of-linux.org>

	* backend-server.c (backend_server_quark): New global variable.
	(_open_server, _close_server): Use the quark.
	* commands.c: Likewise.
2000-11-26 23:08:04 +00:00
Martin Baulig
455118131e New file. (backend_server_private): New struct, formerly known as
2000-11-26  Martin Baulig  <martin@home-of-linux.org>

	* backend-server.h: New file.
	(backend_server_private): New struct, formerly known
	as glibtop_backend_private.

	* glibtop-backend-private.h: Removed.

	* backend-server.c: (_open_server): Use g_object_set_data()
	to set add the backend_server_private data to the glibtop_backend,
	don't override `backend->_priv'.
	(_close_server): Use g_object_get_data() to get the data.
	[FIXME: Use quarks directly.]

	* read.c: (glibtop_read_i): Replaced the glibtop_server and
	glibtop_backend arguments with backend_server_private.
	* read_data.c: (glibtop_read_data_i): Likewise.
	* write.c: (glibtop_write_i): Likewise.
2000-11-26 22:52:34 +00:00
Martin Baulig
dd17bc8f92 Comment out all debugging code. 2000-01-14 11:49:10 +00:00
Martin Baulig
c164df664d Correctly pass string data from client to server. 2000-01-09 22:12:49 +00:00
Martin Baulig
995b506920 Returning arrays and such from server to client now works. 2000-01-09 20:13:51 +00:00
Martin Baulig
386f66d7e2 *** empty log message *** 2000-01-02 17:15:15 +00:00
Martin Baulig
fa5d2af7ea *** empty log message *** 2000-01-02 16:20:15 +00:00
Martin Baulig
e0d9f28674 New file. Creates command.h' from command.h.in'. New file. Template file
2000-01-02  Martin Baulig  <martin@home-of-linux.org>

	* command.pl: New file. Creates `command.h' from `command.h.in'.
	* command.h.in: New file. Template file for `command.h'.

	* io.c, version.c: New files. Copied here from `src/daemon'.
2000-01-02 16:13:08 +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
a567f1a8d1 Initial version of the "glibtop-backend-server" backend.
2000-01-01  Martin Baulig  <martin@home-of-linux.org>

	Initial version of the "glibtop-backend-server" backend.

	* command.c, read.c, read_data.c, write.c: New files. Moved here
	from the `lib' directory.

	* backend-server.c: New file.
	* glibtop-backend-private.h: New file.

	* marshal.pl: New file. Automatically creates `marshal.c'.
2000-01-01 20:54:10 +00:00