Added stub for glibtop_get_netlist.

* Makefile.am:
	* netlist.c: (glibtop_init_netlist_s), (glibtop_get_netlist_s): Added
	stub for glibtop_get_netlist.
This commit is contained in:
Benoît Dejean
2004-11-13 12:43:28 +00:00
parent 544aff2f18
commit ce229a4e19
3 changed files with 50 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2004-11-13 Benoît Dejean <tazforever@dlfp.org>
* Makefile.am:
* netlist.c: (glibtop_init_netlist_s), (glibtop_get_netlist_s): Added
stub for glibtop_get_netlist.
2003-10-21 Bastien Nocera <hadess@hadess.net>
* Makefile.am: install only one library, libgtop-2.0

View File

@@ -8,7 +8,7 @@ libgtop_sysdeps_2_0_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \
sem_limits.c proclist.c procstate.c procuid.c \
proctime.c procmem.c procsignal.c prockernel.c \
procsegment.c procargs.c procmap.c netload.c \
ppp.c
ppp.c netlist.c
libgtop_sysdeps_2_0_la_LDFLAGS = $(LT_VERSION_INFO)

43
sysdeps/stub/netlist.c Normal file
View File

@@ -0,0 +1,43 @@
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
This file is part of LibGTop 1.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.
*/
#include <glibtop.h>
#include <glibtop/netlist.h>
static const unsigned long _glibtop_sysdeps_netlist = 0;
/* Init function. */
void
glibtop_init_netlist_s (glibtop *server)
{
server->sysdeps.netlist = _glibtop_sysdeps_netlist;
}
/* Provides load averange. */
void
glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf)
{
memset (buf, 0, sizeof (glibtop_netlist));
}