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.
This commit is contained in:
committed by
Martin Baulig
parent
98930be564
commit
4befe086c4
@@ -1,5 +1,12 @@
|
|||||||
2000-11-26 Martin Baulig <martin@home-of-linux.org>
|
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.
|
||||||
|
|
||||||
* include/glibtop/glibtop-client.h (glibtop_client_open_backend):
|
* include/glibtop/glibtop-client.h (glibtop_client_open_backend):
|
||||||
Changed return value to void.
|
Changed return value to void.
|
||||||
|
|
||||||
|
@@ -46,6 +46,8 @@ typedef struct _glibtop_backend glibtop_backend;
|
|||||||
typedef struct _glibtop_backend_class glibtop_backend_class;
|
typedef struct _glibtop_backend_class glibtop_backend_class;
|
||||||
typedef struct _glibtop_backend_private glibtop_backend_private;
|
typedef struct _glibtop_backend_private glibtop_backend_private;
|
||||||
|
|
||||||
|
#include <glibtop/glibtop-backend-info.h>
|
||||||
|
|
||||||
struct _glibtop_backend
|
struct _glibtop_backend
|
||||||
{
|
{
|
||||||
GObject object;
|
GObject object;
|
||||||
@@ -66,6 +68,9 @@ glibtop_backend *
|
|||||||
glibtop_backend_open (const char *backend_name, u_int64_t features,
|
glibtop_backend_open (const char *backend_name, u_int64_t features,
|
||||||
const char **backend_args, GError **error);
|
const char **backend_args, GError **error);
|
||||||
|
|
||||||
|
glibtop_call_vector *
|
||||||
|
glibtop_backend_get_call_vector (glibtop_backend *backend);
|
||||||
|
|
||||||
END_LIBGTOP_DECLS
|
END_LIBGTOP_DECLS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -10,7 +10,8 @@ noinst_LTLIBRARIES = libgtop_server.la
|
|||||||
|
|
||||||
libgtop_la_SOURCES = errors.c glibtop-backend-info.c \
|
libgtop_la_SOURCES = errors.c glibtop-backend-info.c \
|
||||||
glibtop-client.c glibtop-server.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
|
libgtop_server_la_SOURCES = error.c xmalloc.c
|
||||||
|
|
||||||
|
@@ -230,3 +230,13 @@ glibtop_backend_open (const char *backend_name, u_int64_t features,
|
|||||||
|
|
||||||
return backend;
|
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;
|
||||||
|
}
|
||||||
|
34
lib/glibtop-client-private.h
Normal file
34
lib/glibtop-client-private.h
Normal file
@@ -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
|
@@ -34,13 +34,7 @@ static void glibtop_client_finalize (GObject *object);
|
|||||||
|
|
||||||
static gpointer parent_class = NULL;
|
static gpointer parent_class = NULL;
|
||||||
|
|
||||||
|
#include <glibtop-client-private.h>
|
||||||
/* Internal data */
|
|
||||||
|
|
||||||
struct _glibtop_client_private
|
|
||||||
{
|
|
||||||
GSList *backend_list;
|
|
||||||
};
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
GLIBTOP_CLIENT_SIGNAL_ERROR,
|
GLIBTOP_CLIENT_SIGNAL_ERROR,
|
||||||
|
Reference in New Issue
Block a user