diff options
author | Martin Baulig <martin@home-of-linux.org> | 2000-11-26 19:04:15 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 2000-11-26 19:04:15 +0000 |
commit | 4befe086c43b705bb068364be25649ec502cf9d2 (patch) | |
tree | 9a130b0776f211953bf3882e5e88ba96d3eef3dd /lib | |
parent | 98930be56495106ebf50fd96c01ccc6e0a114276 (diff) | |
download | libgtop-4befe086c43b705bb068364be25649ec502cf9d2.tar.gz |
New function.
2000-11-26 Martin Baulig <martin@home-of-linux.org>
* include/glibtop/glibtop-backend.h
(glibtop_backend_get_call_vector): New function.
* lib/glibtop-client-private.h: New file.
* lib/glibtop-client.h (struct _glibtop_client_private): Moved
to glibtop-client-private.h.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile.am | 3 | ||||
-rw-r--r-- | lib/glibtop-backend.c | 10 | ||||
-rw-r--r-- | lib/glibtop-client-private.h | 34 | ||||
-rw-r--r-- | lib/glibtop-client.c | 8 |
4 files changed, 47 insertions, 8 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index 32c99c2c..5bcc0b40 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -10,7 +10,8 @@ noinst_LTLIBRARIES = libgtop_server.la libgtop_la_SOURCES = errors.c glibtop-backend-info.c \ glibtop-client.c glibtop-server.c \ - glibtop-backend.c sysdeps-init.c + glibtop-backend.c sysdeps-init.c \ + glibtop-client-private.h libgtop_server_la_SOURCES = error.c xmalloc.c diff --git a/lib/glibtop-backend.c b/lib/glibtop-backend.c index d4564bd4..cbea5a4f 100644 --- a/lib/glibtop-backend.c +++ b/lib/glibtop-backend.c @@ -230,3 +230,13 @@ glibtop_backend_open (const char *backend_name, u_int64_t features, return backend; } + +glibtop_call_vector * +glibtop_backend_get_call_vector (glibtop_backend *backend) +{ + g_return_val_if_fail (GLIBTOP_IS_BACKEND (backend), NULL); + + g_assert (backend->_priv->info != NULL); + + return backend->_priv->info->call_vector; +} diff --git a/lib/glibtop-client-private.h b/lib/glibtop-client-private.h new file mode 100644 index 00000000..244cabdf --- /dev/null +++ b/lib/glibtop-client-private.h @@ -0,0 +1,34 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */ + +/* $Id$ */ + +/* Copyright (C) 1998-99 Martin Baulig + This file is part of LibGTop 2.0. + + Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998. + + LibGTop is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, + or (at your option) any later version. + + LibGTop is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with LibGTop; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ + +#ifndef __GLIBTOP_CLIENT_PRIVATE_H__ +#define __GLIBTOP_CLIENT_PRIVATE_H__ + +struct _glibtop_client_private +{ + GSList *backend_list; +}; + +#endif diff --git a/lib/glibtop-client.c b/lib/glibtop-client.c index 5aadb44d..47406374 100644 --- a/lib/glibtop-client.c +++ b/lib/glibtop-client.c @@ -34,13 +34,7 @@ static void glibtop_client_finalize (GObject *object); static gpointer parent_class = NULL; - -/* Internal data */ - -struct _glibtop_client_private -{ - GSList *backend_list; -}; +#include <glibtop-client-private.h> enum { GLIBTOP_CLIENT_SIGNAL_ERROR, |