diff options
author | Martin Baulig <martin@home-of-linux.org> | 1999-12-05 13:50:35 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1999-12-05 13:50:35 +0000 |
commit | c1cae4e9ba574bc3760369753b1babf9db063326 (patch) | |
tree | a42ae866bb45bd4f3b4e7cd56e5b3bcea0c4d0d8 /glibtop.h | |
parent | f5efccc8d6ffad47a0e66e59e509aa4f4c65e7ca (diff) | |
download | libgtop-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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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. */ |