api documentation for ec_parse
[protos/libecoli.git] / include / ecoli_node_int.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
3  */
4
5 /**
6  * @defgroup nodes Nodes
7  * @{
8  */
9
10 #ifndef ECOLI_NODE_INT_
11 #define ECOLI_NODE_INT_
12
13 #include <stdint.h>
14
15 #include <ecoli_node.h>
16
17 /* ec_node("int", ...) can be used too
18  * default is no limit, base 10 */
19
20 struct ec_node *ec_node_int(const char *id, int64_t min,
21                         int64_t max, unsigned int base);
22
23 int ec_node_int_getval(const struct ec_node *node, const char *str,
24                         int64_t *result);
25
26
27
28 struct ec_node *ec_node_uint(const char *id, uint64_t min,
29                         uint64_t max, unsigned int base);
30
31 int ec_node_uint_getval(const struct ec_node *node, const char *str,
32                         uint64_t *result);
33
34 #endif
35
36 /** @} */