diff options
author | Patrick McHardy <kaber@trash.net> | 2015-04-11 15:59:44 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2015-04-12 19:59:27 +0100 |
commit | 0974fa84f162aecf16b4c252dcb438f7149856ab (patch) | |
tree | aea0d6ec01b07259e2b1de11cd78131d2a6860cf /include/datatype.h | |
parent | 262b97bd112cbaed098c7941bd452c7b16a89646 (diff) |
datatype: seperate time parsing/printing from time_type
Seperate relative time parsing and printing from the time_type to make
it usable for set and set element time related parameters.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/datatype.h')
-rw-r--r-- | include/datatype.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/datatype.h b/include/datatype.h index 3c3f42f3..2a6a4fca 100644 --- a/include/datatype.h +++ b/include/datatype.h @@ -231,4 +231,8 @@ concat_subtype_lookup(uint32_t type, unsigned int n) return datatype_lookup(concat_subtype_id(type, n)); } +extern void time_print(uint64_t seconds); +extern struct error_record *time_parse(const struct location *loc, + const char *c, uint64_t *res); + #endif /* NFTABLES_DATATYPE_H */ |