diff options
author | Thomas Graf <tgraf@suug.ch> | 2011-06-09 10:29:21 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2011-06-09 10:29:21 (GMT) |
commit | 58e0e1eda9cbb09a56ffdc8ac6934dc5f5f884b2 (patch) | |
tree | ff7a7d6b4d3f9d0d7b38fc93bec80e603b883862 /include | |
parent | ed69b2a79b8e0b71c230b5e75626aa620a0d5ff9 (diff) | |
download | libnl-58e0e1eda9cbb09a56ffdc8ac6934dc5f5f884b2.zip libnl-58e0e1eda9cbb09a56ffdc8ac6934dc5f5f884b2.tar.gz libnl-58e0e1eda9cbb09a56ffdc8ac6934dc5f5f884b2.tar.bz2 |
Add nl_rate2str()
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink/utils.h | 6 |
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 */ |