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'.
This commit is contained in:
Martin Baulig
2000-11-26 23:29:15 +00:00
committed by Martin Baulig
parent 8a78a93e0c
commit 478be2d170
15 changed files with 74 additions and 57 deletions

View File

@@ -28,7 +28,7 @@
#include "command.h"
void *
glibtop_call_i (glibtop_server *server, glibtop_backend *backend,
glibtop_call_i (glibtop_server *server, backend_server_private *priv,
unsigned command, size_t send_size, const void *send_buf,
size_t data_size, const void *data_buf,
size_t recv_size, void *recv_ptr,
@@ -36,7 +36,6 @@ glibtop_call_i (glibtop_server *server, glibtop_backend *backend,
{
glibtop_command cmnd;
glibtop_response resp;
backend_server_private *priv;
#if 0
int retval;
#endif
@@ -44,9 +43,6 @@ glibtop_call_i (glibtop_server *server, glibtop_backend *backend,
memset (&cmnd, 0, sizeof (glibtop_command));
memset (&resp, 0, sizeof (glibtop_response));
priv = g_object_get_qdata (G_OBJECT (backend), backend_server_quark);
g_assert (priv != NULL);
cmnd.command = command;
/* If send_size is less than _GLIBTOP_PARAM_SIZE (normally 16 Bytes), we