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 *));
18 lines
595 B
Makefile
18 lines
595 B
Makefile
LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
|
|
|
|
CFLAGS = -Wall -W @CFLAGS@
|
|
|
|
lib_LTLIBRARIES = libgtop_sysdeps.la
|
|
|
|
libgtop_sysdeps_la_SOURCES = open.c close.c cpu.c mem.c swap.c \
|
|
uptime.c loadavg.c shm_limits.c msg_limits.c \
|
|
sem_limits.c proclist.c procstate.c procuid.c \
|
|
proctime.c procmem.c procsignal.c prockernel.c \
|
|
procsegment.c procargs.c procmap.c siglist.c \
|
|
sysinfo.c netload.c ppp.c
|
|
libgtop_sysdeps_la_LIBADD = @GLIB_LIBS@
|
|
|
|
libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO)
|
|
|
|
include_HEADERS = glibtop_server.h glibtop_machine.h
|