From 069eb707f008ac1c4d6c0e691680497579e12bd2 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Sun, 5 Dec 1999 13:52:32 +0000 Subject: [PATCH] New #define. (GLIBTOP_UNLIMITED): #define this to be `(~(u_int64_t)0)'. 1999-12-05 Martin Baulig * include/glibtop/limits.h (GLIBTOP_INTERFACE_LEN): New #define. (GLIBTOP_UNLIMITED): #define this to be `(~(u_int64_t)0)'. --- ChangeLog | 3 +++ include/glibtop/limits.h | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6f1df29b..6dd51ee3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-12-05 Martin Baulig + * include/glibtop/limits.h (GLIBTOP_INTERFACE_LEN): New #define. + (GLIBTOP_UNLIMITED): #define this to be `(~(u_int64_t)0)'. + * glibtop.h (glibtop): Added `refcount' field. * lib/init.c (glibtop_server_ref, glibtop_server_unref): New functions to deal with refcounts. diff --git a/include/glibtop/limits.h b/include/glibtop/limits.h index 7ff05d0f..01f1e176 100644 --- a/include/glibtop/limits.h +++ b/include/glibtop/limits.h @@ -39,6 +39,12 @@ BEGIN_LIBGTOP_DECLS /* Maximum length of a mountpoint/device name in glibtop_mountlist. */ #define GLIBTOP_MOUNTENTRY_LEN 79 +/* Maximum length of a network interface name. */ +#define GLIBTOP_INTERFACE_LEN 32 + +/* This is ((u_int64_t)-1) */ +#define GLIBTOP_UNLIMITED (~(u_int64_t)0) + END_LIBGTOP_DECLS #endif