summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2011-06-09 10:29:21 (GMT)
committerThomas Graf <tgraf@suug.ch>2011-06-09 10:29:21 (GMT)
commit58e0e1eda9cbb09a56ffdc8ac6934dc5f5f884b2 (patch)
treeff7a7d6b4d3f9d0d7b38fc93bec80e603b883862 /include
parented69b2a79b8e0b71c230b5e75626aa620a0d5ff9 (diff)
downloadlibnl-58e0e1eda9cbb09a56ffdc8ac6934dc5f5f884b2.zip
libnl-58e0e1eda9cbb09a56ffdc8ac6934dc5f5f884b2.tar.gz
libnl-58e0e1eda9cbb09a56ffdc8ac6934dc5f5f884b2.tar.bz2
Add nl_rate2str()
Diffstat (limited to 'include')
-rw-r--r--include/netlink/utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/netlink/utils.h b/include/netlink/utils.h
index 309e02f..a1ef82e 100644
--- a/include/netlink/utils.h
+++ b/include/netlink/utils.h
@@ -38,9 +38,15 @@ extern "C" {
/** @} */
+enum {
+ NL_BYTE_RATE,
+ NL_BIT_RATE,
+};
+
/* unit pretty-printing */
extern double nl_cancel_down_bytes(unsigned long long, char **);
extern double nl_cancel_down_bits(unsigned long long, char **);
+extern int nl_rate2str(unsigned long long, int, char *, size_t);
extern double nl_cancel_down_us(uint32_t, char **);
/* generic unit translations */