summaryrefslogtreecommitdiff
path: root/glibtop.h
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1999-12-05 13:50:35 +0000
committerMartin Baulig <martin@src.gnome.org>1999-12-05 13:50:35 +0000
commitc1cae4e9ba574bc3760369753b1babf9db063326 (patch)
treea42ae866bb45bd4f3b4e7cd56e5b3bcea0c4d0d8 /glibtop.h
parentf5efccc8d6ffad47a0e66e59e509aa4f4c65e7ca (diff)
downloadlibgtop-c1cae4e9ba574bc3760369753b1babf9db063326.tar.gz
Added `refcount' field. New functions to deal with refcounts.
1999-12-05 Martin Baulig <martin@home-of-linux.org> * glibtop.h (glibtop): Added `refcount' field. * lib/init.c (glibtop_server_ref, glibtop_server_unref): New functions to deal with refcounts.
Diffstat (limited to 'glibtop.h')
-rw-r--r--glibtop.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/glibtop.h b/glibtop.h
index 0d861d36..2a251108 100644
--- a/glibtop.h
+++ b/glibtop.h
@@ -44,6 +44,7 @@ typedef struct _glibtop glibtop;
struct _glibtop
{
+ int refcount; /* Reference count */
unsigned flags;
unsigned method; /* Server Method */
unsigned error_method; /* Error Method */
@@ -86,6 +87,12 @@ glibtop_init_s (glibtop **server_ptr,
unsigned long features,
unsigned flags);
+void
+glibtop_server_ref (glibtop *server);
+
+void
+glibtop_server_unref (glibtop *server);
+
#ifdef GLIBTOP_GUILE
/* You need to link with -lgtop_guile to get this stuff here. */