summaryrefslogtreecommitdiff
path: root/include/glibtop/ppp.h
diff options
context:
space:
mode:
authorCarlos Perelló Marín <carlos@gnome.org>2003-10-19 16:10:39 +0000
committerCarlos Perelló Marín <carlos@src.gnome.org>2003-10-19 16:10:39 +0000
commitbae16b467f90df94d80feae41dceb7e816f16c61 (patch)
tree1c98f8b6769b7ca7a97a3de111e52f748a79ebe8 /include/glibtop/ppp.h
parent5e28a552185df50f96b7ffce9c26755cff8c47d0 (diff)
downloadlibgtop-bae16b467f90df94d80feae41dceb7e816f16c61.tar.gz
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.
Diffstat (limited to 'include/glibtop/ppp.h')
-rw-r--r--include/glibtop/ppp.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/include/glibtop/ppp.h b/include/glibtop/ppp.h
index e046ee54..1a4ec64a 100644
--- a/include/glibtop/ppp.h
+++ b/include/glibtop/ppp.h
@@ -1,5 +1,3 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
-
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -29,7 +27,7 @@
#include <glibtop.h>
#include <glibtop/global.h>
-G_BEGIN_DECLS
+BEGIN_LIBGTOP_DECLS
#define GLIBTOP_PPP_STATE 0
#define GLIBTOP_PPP_BYTES_IN 1
@@ -40,33 +38,35 @@ G_BEGIN_DECLS
typedef struct _glibtop_ppp glibtop_ppp;
enum {
- GLIBTOP_PPP_STATE_UNKNOWN = 0,
- GLIBTOP_PPP_STATE_HANGUP,
- GLIBTOP_PPP_STATE_ONLINE
+ GLIBTOP_PPP_STATE_UNKNOWN = 0,
+ GLIBTOP_PPP_STATE_HANGUP,
+ GLIBTOP_PPP_STATE_ONLINE
};
struct _glibtop_ppp
{
- u_int64_t flags,
- state, /* GLIBTOP_PPP_STATE */
- bytes_in, /* GLIBTOP_PPP_BYTES_IN */
- bytes_out; /* GLIBTOP_PPP_BYTES_OUT */
+ u_int64_t flags,
+ state, /* GLIBTOP_PPP_STATE */
+ bytes_in, /* GLIBTOP_PPP_BYTES_IN */
+ bytes_out; /* GLIBTOP_PPP_BYTES_OUT */
};
+#define glibtop_get_ppp(ppp,device) glibtop_get_ppp_l(glibtop_global_server, ppp, device)
+
#if GLIBTOP_SUID_PPP
#define glibtop_get_ppp_r glibtop_get_ppp_p
#else
#define glibtop_get_ppp_r glibtop_get_ppp_s
#endif
-int glibtop_get_ppp_l (glibtop_client *client, glibtop_ppp *buf, unsigned short device, unsigned short use_isdn);
+void glibtop_get_ppp_l (glibtop *server, glibtop_ppp *buf, unsigned short device);
#if GLIBTOP_SUID_PPP
-int glibtop_init_ppp_p (glibtop_server *server, glibtop_closure *closure);
-int glibtop_get_ppp_p (glibtop_server *server, glibtop_closure *closure, glibtop_ppp *buf, unsigned short device, unsigned short use_isdn);
+void glibtop_init_ppp_p (glibtop *server);
+void glibtop_get_ppp_p (glibtop *server, glibtop_ppp *buf, unsigned short device);
#else
-int glibtop_init_ppp_s (glibtop_server *server, glibtop_closure *closure);
-int glibtop_get_ppp_s (glibtop_server *server, glibtop_closure *closure, glibtop_ppp *buf, unsigned short device, unsigned short use_isdn);
+void glibtop_init_ppp_s (glibtop *server);
+void glibtop_get_ppp_s (glibtop *server, glibtop_ppp *buf, unsigned short device);
#endif
#ifdef GLIBTOP_NAMES
@@ -80,6 +80,6 @@ extern const char *glibtop_descriptions_ppp [];
#endif
-G_END_DECLS
+END_LIBGTOP_DECLS
#endif