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.
This commit is contained in:
Martin Baulig
2000-01-12 21:30:13 +00:00
committed by Martin Baulig
parent 12e32ffc24
commit 31067e703d
4 changed files with 51 additions and 5 deletions

View File

@@ -73,14 +73,21 @@ struct _glibtop_backend_entry
char *libtool_name;
char *shlib_name;
glibtop_backend_info *info;
/* This is const since you must not attempt to
* write into gmodule loaded memory. */
const glibtop_backend_info *info;
/* private pointer */
glibtop_backend_module *_priv;
};
struct _glibtop_backend
{
glibtop_backend_info *info;
const glibtop_backend_info *info;
/* private pointers */
glibtop_backend_private *_priv;
glibtop_backend_module *_priv_module;
};
long