summaryrefslogtreecommitdiff
path: root/src/connman.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-01-05 06:59:20 -0800
committerMarcel Holtmann <marcel@holtmann.org>2010-01-05 06:59:20 -0800
commitf33303b557c1c12313c42372fdd173c4e69ddef0 (patch)
tree1191ef752ba20b221a57043100e8bf6bbfbd9286 /src/connman.h
parentf2af98906f063a65f2933e6133a293c344a1f011 (diff)
downloadconnman-f33303b557c1c12313c42372fdd173c4e69ddef0.tar.gz
connman-f33303b557c1c12313c42372fdd173c4e69ddef0.tar.bz2
connman-f33303b557c1c12313c42372fdd173c4e69ddef0.zip
Add support for exporting basic interface statistics
Diffstat (limited to 'src/connman.h')
-rw-r--r--src/connman.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/connman.h b/src/connman.h
index 109ed8e5..0537bf09 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -69,6 +69,8 @@ int __connman_counter_register(const char *owner, const char *path,
unsigned int interval);
int __connman_counter_unregister(const char *owner, const char *path);
+void __connman_counter_notify(unsigned int rx_bytes, unsigned int tx_bytes);
+
int __connman_counter_init(void);
void __connman_counter_cleanup(void);
@@ -110,10 +112,13 @@ int __connman_security_check_privilege(DBusMessage *message,
int __connman_ipconfig_init(void);
void __connman_ipconfig_cleanup(void);
+struct rtnl_link_stats;
+
void __connman_ipconfig_newlink(int index, unsigned short type,
unsigned int flags, const char *address,
- unsigned short mtu);
-void __connman_ipconfig_dellink(int index);
+ unsigned short mtu,
+ struct rtnl_link_stats *stats);
+void __connman_ipconfig_dellink(int index, struct rtnl_link_stats *stats);
void __connman_ipconfig_newaddr(int index, const char *label,
unsigned char prefixlen, const char *address);
void __connman_ipconfig_deladdr(int index, const char *label,
@@ -427,4 +432,5 @@ int __connman_rtnl_init(void);
void __connman_rtnl_start(void);
void __connman_rtnl_cleanup(void);
+int __connman_rtnl_request_update(void);
int __connman_rtnl_send(const void *buf, size_t len);