Benoît Dejean
70b0925a82
whitespace clean up.
...
* *.{c,h} : whitespace clean up.
2004-06-09 18:52:22 +00:00
Bastien Nocera
2ae3495a87
remove dependency on libgnome, check for linux/isdn.h for distros using
...
2004-03-04 Bastien Nocera <hadess@hadess.net >
* configure.in:
* include/libgtop-i18n.h:
* lib/lib.pl:
* lib/read.c:
* lib/read_data.c:
* lib/write.c:
* sysdeps/names/cpu.c:
* sysdeps/names/fsusage.c:
* sysdeps/names/loadavg.c:
* sysdeps/names/mem.c:
* sysdeps/names/mountlist.c:
* sysdeps/names/msg_limits.c:
* sysdeps/names/netload.c:
* sysdeps/names/ppp.c:
* sysdeps/names/procargs.c:
* sysdeps/names/prockernel.c:
* sysdeps/names/proclist.c:
* sysdeps/names/procmap.c:
* sysdeps/names/procmem.c:
* sysdeps/names/procsegment.c:
* sysdeps/names/procsignal.c:
* sysdeps/names/procstate.c:
* sysdeps/names/proctime.c:
* sysdeps/names/procuid.c:
* sysdeps/names/sem_limits.c:
* sysdeps/names/shm_limits.c:
* sysdeps/names/swap.c:
* sysdeps/names/sysdeps.c:
* sysdeps/names/uptime.c: remove dependency on libgnome,
check for linux/isdn.h for distros using the 2.6 kernel headers
2004-03-04 15:29:16 +00:00
Bastien Nocera
b67e4c7f7d
- fixed compilation
2003-10-20 15:20:16 +00:00
Carlos Perelló Marín
bae16b467f
libgtop-GNOME-2-0-branch moved to HEAD.
...
2003-10-19 Carlos Perelló Marín <carlos@gnome.org >
* libgtop-GNOME-2-0-branch moved to HEAD.
2003-10-19 16:10:39 +00:00
Martin Baulig
4a01752467
Split netload into netload and netinfo.
...
1999-11-28 Martin Baulig <martin@home-of-linux.org >
Split netload into netload and netinfo.
* include/glibtop/netinfo.h: New file.
* include/glibtop/netload.h (glibtop_netload): Moved `if_flags',
`mtu', `subnet' and `address' into the new `glibtop_netinfo'.
* include/glibtop/sysdeps.h (GLIBTOP_SYSDEPS_NETINFO): Added.
(glibtop_sysdeps): Added `netinfo.
* include/glibtop/union.h (glibtop_union): Added `netinfo.
* include/glibtop/command.h (GLIBTOP_CMND_NETINFO): Added.
1999-11-28 18:17:21 +00:00
Martin Baulig
e2cb4ed031
Changed indentation (-bad -br -ce -i4):
...
tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4
1999-03-30 14:29:38 +00:00
Martin Baulig
cf611f9157
Set the copyright of LibGTop to the GNU General Public License.
...
1999-02-22 Martin Baulig <martin@home-of-linux.org >
Set the copyright of LibGTop to the GNU General Public License.
* copyright.txt: Set the year to 1998-99 and pretty-format it a
little bit. Same in all C source and header files.
1999-02-23 11:47:35 +00:00
Martin Baulig
ce4f660965
Include a copy of the GNU Library General Public License here.
...
1999-02-22 Martin Baulig <martin@home-of-linux.org >
* COPYING.LIB: Include a copy of the GNU Library General
Public License here.
* copyright.txt: Set the year to 1998-99 and pretty-format it a
little bit. Same in all C source and header files.
1999-02-22 16:19:36 +00:00
Martin Baulig
b70d0570c7
More network load stuff.
1998-10-26 12:21:28 +00:00
Martin Baulig
13d9120f93
Some systems may not distinguish between input and output bytes/pkts/errs
...
so we add `_total' fields:
typedef struct _glibtop_netload glibtop_netload;
struct _glibtop_netload
{
u_int64_t flags,
mtu, /* GLIBTOP_NETLOAD_MTU */
address, /* GLIBTOP_NETLOAD_ADDRESS */
packets_in, /* GLIBTOP_NETLOAD_PACKETS_IN */
packets_out, /* GLIBTOP_NETLOAD_PACKETS_OUT */
packets_total, /* GLIBTOP_NETLOAD_PACKETS_TOTAL*/
bytes_in, /* GLIBTOP_NETLOAD_BYTES_IN */
bytes_out, /* GLIBTOP_NETLOAD_BYTES_OUT */
bytes_total, /* GLIBTOP_NETLOAD_BYTES_TOTAL */
errors_in, /* GLIBTOP_NETLOAD_ERRORS_IN */
errors_out, /* GLIBTOP_NETLOAD_ERRORS_OUT */
errors_total, /* GLIBTOP_NETLOAD_ERRORS_TOTAL */
collisions; /* GLIBTOP_NETLOAD_COLLISIONS */
};
1998-10-26 10:44:16 +00:00
Martin Baulig
1289b92d06
Added new features to get network load:
...
typedef struct _glibtop_netload glibtop_netload;
struct _glibtop_netload
{
u_int64_t flags,
mtu, /* GLIBTOP_NETLOAD_MTU */
address, /* GLIBTOP_NETLOAD_ADDRESS */
packets_in, /* GLIBTOP_NETLOAD_PACKETS_IN */
packets_out, /* GLIBTOP_NETLOAD_PACKETS_OUT */
bytes_in, /* GLIBTOP_NETLOAD_BYTES_IN */
bytes_out, /* GLIBTOP_NETLOAD_BYTES_OUT */
errors_in, /* GLIBTOP_NETLOAD_ERRORS_IN */
errors_out, /* GLIBTOP_NETLOAD_ERRORS_OUT */
collisions; /* GLIBTOP_NETLOAD_COLLISIONS */
};
Returns network load of the given interface, it is specified as string
like `isppp' or `ippp0':
extern void glibtop_get_netload_l __P((glibtop *, glibtop_netload *, const char *));
1998-10-26 10:39:14 +00:00