diff options
Diffstat (limited to 'libcnary/include/node.h')
| -rw-r--r-- | libcnary/include/node.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libcnary/include/node.h b/libcnary/include/node.h index 123241a..5b3ae37 100644 --- a/libcnary/include/node.h +++ b/libcnary/include/node.h | |||
| @@ -29,6 +29,18 @@ | |||
| 29 | 29 | ||
| 30 | #define NODE_TYPE 1; | 30 | #define NODE_TYPE 1; |
| 31 | 31 | ||
| 32 | #ifndef NODE_MAX_DEPTH | ||
| 33 | #define NODE_MAX_DEPTH 512 | ||
| 34 | #endif | ||
| 35 | |||
| 36 | #define NODE_ERR_SUCCESS 0 | ||
| 37 | #define NODE_ERR_INVALID_ARG -1 | ||
| 38 | #define NODE_ERR_NO_MEM -2 | ||
| 39 | #define NODE_ERR_PARENT -3 | ||
| 40 | #define NODE_ERR_CIRCULAR_REF -4 | ||
| 41 | #define NODE_ERR_MAX_DEPTH -5 | ||
| 42 | #define NODE_ERR_NOT_FOUND -6 | ||
| 43 | |||
| 32 | // This class implements the abstract iterator class | 44 | // This class implements the abstract iterator class |
| 33 | typedef struct node* node_t; | 45 | typedef struct node* node_t; |
| 34 | struct node { | 46 | struct node { |
