basic radix tree for route patterns
This commit is contained in:
parent
7326933065
commit
4fb498c9b3
2 changed files with 5 additions and 3 deletions
|
@ -43,6 +43,8 @@ rnode * rnode_insert_routel(rnode *tree, char *route, int route_len);
|
||||||
|
|
||||||
void rnode_dump(rnode * n, int level);
|
void rnode_dump(rnode * n, int level);
|
||||||
|
|
||||||
|
rnode * rnode_lookup(rnode * tree, char * path, int path_len);
|
||||||
|
|
||||||
redge * redge_create(char * pattern, int pattern_len, rnode * child);
|
redge * redge_create(char * pattern, int pattern_len, rnode * child);
|
||||||
|
|
||||||
void redge_free(redge * edge);
|
void redge_free(redge * edge);
|
||||||
|
|
Loading…
Reference in a new issue