3 /* Copyright (C) 2009 Trend Micro Inc.
6 * This program is a free software; you can redistribute it
7 * and/or modify it under the terms of the GNU General Public
8 * License (version 2) as published by the FSF - Free Software
11 * License details at the LICENSE file included with OSSEC or
12 * online at: http://www.ossec.net/en/licensing.html
15 /* Common API for dealing with directory trees */
21 typedef struct _OSTreeNode
23 struct _OSTreeNode *next;
31 typedef struct _OSDirTree
33 OSTreeNode *first_node;
34 OSTreeNode *last_node;
38 OSDirTree *OSDirTree_Create();
39 void OSDirTree_AddToTree(OSDirTree *tree, char *str, void *data, char sep);
40 void *OSDirTree_SearchTree(OSDirTree *tree, char *str, char sep);