From ce229a4e199e3bf1858ce16254f1b18ed3dc678a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= Date: Sat, 13 Nov 2004 12:43:28 +0000 Subject: [PATCH] Added stub for glibtop_get_netlist. * Makefile.am: * netlist.c: (glibtop_init_netlist_s), (glibtop_get_netlist_s): Added stub for glibtop_get_netlist. --- sysdeps/stub/ChangeLog | 6 ++++++ sysdeps/stub/Makefile.am | 2 +- sysdeps/stub/netlist.c | 43 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 sysdeps/stub/netlist.c diff --git a/sysdeps/stub/ChangeLog b/sysdeps/stub/ChangeLog index 3a3a755d..2b8c52a4 100644 --- a/sysdeps/stub/ChangeLog +++ b/sysdeps/stub/ChangeLog @@ -1,3 +1,9 @@ +2004-11-13 BenoƮt Dejean + + * Makefile.am: + * netlist.c: (glibtop_init_netlist_s), (glibtop_get_netlist_s): Added + stub for glibtop_get_netlist. + 2003-10-21 Bastien Nocera * Makefile.am: install only one library, libgtop-2.0 diff --git a/sysdeps/stub/Makefile.am b/sysdeps/stub/Makefile.am index 69ec9c1c..8f053e45 100644 --- a/sysdeps/stub/Makefile.am +++ b/sysdeps/stub/Makefile.am @@ -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) diff --git a/sysdeps/stub/netlist.c b/sysdeps/stub/netlist.c new file mode 100644 index 00000000..aad043c7 --- /dev/null +++ b/sysdeps/stub/netlist.c @@ -0,0 +1,43 @@ +/* $Id$ */ + +/* Copyright (C) 1998-99 Martin Baulig + This file is part of LibGTop 1.0. + + Contributed by Martin Baulig , 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 +#include + +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)); +}