| 55 | } |
| 56 | |
| 57 | bool token_tree::insert(const char* key, void* ctx) |
| 58 | { |
| 59 | if (acl_token_tree_word_match(tree_, key) != NULL) { |
| 60 | return false; |
| 61 | } |
| 62 | if (acl_token_tree_add(tree_, key, ACL_TOKEN_F_STOP, ctx) == NULL) { |
| 63 | return false; |
| 64 | } |
| 65 | |
| 66 | return true; |
| 67 | } |
| 68 | |
| 69 | void* token_tree::remove(const char* key) |
| 70 | { |