1 /* @(#) $Id: ./src/headers/dirtree_op.h, 2011/09/08 dcid Exp $
4 /* Copyright (C) 2009 Trend Micro Inc.
7 * This program is a free software; you can redistribute it
8 * and/or modify it under the terms of the GNU General Public
9 * License (version 2) as published by the FSF - Free Software
12 * License details at the LICENSE file included with OSSEC or
13 * online at: http://www.ossec.net/en/licensing.html
16 /* Common API for dealing with directory trees */
22 typedef struct _OSTreeNode
24 struct _OSTreeNode *next;
32 typedef struct _OSDirTree
34 OSTreeNode *first_node;
35 OSTreeNode *last_node;
39 OSDirTree *OSDirTree_Create();
40 void OSDirTree_AddToTree(OSDirTree *tree, char *str, void *data, char sep);
41 void *OSDirTree_SearchTree(OSDirTree *tree, char *str, char sep);