[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ossec-cvs] ossec-hids: dirtree_op.h (NEW) shared.h (HEAD) [dcid]



Module name:	ossec-hids
Changes by:	dcid	07/08/09 21:56:23

Modified files:
	shared.h
Added files:
	dirtree_op.h

Log message:
Description: Adding a directory tree lib, fixing CONTRIB entry and a few more license tweaks..
Reviewed by: dcid
Bug:

--- NEW FILE: dirtree_op.h ---
/* @(#) $Id: dirtree_op.h,v 1.1 2007/08/10 00:56:22 dcid Exp $ */

/* Copyright (C) 2003-2007 Daniel B. Cid <dcid@xxxxxxxxx>
 * All rights reserved.
 *
 * This program is a free software; you can redistribute it
 * and/or modify it under the terms of the GNU General Public
 * License (version 3) as published by the FSF - Free Software
 * Foundation.
 *
 * License details at the LICENSE file included with OSSEC or
 * online at: http://www.ossec.net/en/licensing.html
 */
 
/* Common API for dealing with directory trees */
          

#ifndef _OS_DIRTREE
#define _OS_DIRTREE

typedef struct _OSTreeNode
{
    struct _OSTreeNode *next;
    void *child;
    
    char *value;
    void *data;
}OSTreeNode;


typedef struct _OSDirTree
{
    OSTreeNode *first_node;
    OSTreeNode *last_node;
}OSDirTree;


OSDirTree *OSDirTree_Create();
void OSDirTree_AddToTree(OSDirTree *tree, char *str, void *data, char sep);
void *OSDirTree_SearchTree(OSDirTree *tree, char *str, char sep);
         


#endif

/* EOF */

Index: shared.h
===================================================================
RCS file: /usr/cvsroot/ossec-hids/src/headers/shared.h,v
diff -u -r1.34 -r1.35
--- shared.h	18 Jun 2007 23:44:04 -0000	1.34
+++ shared.h	10 Aug 2007 00:56:22 -0000	1.35
@@ -178,6 +178,7 @@
 #include "regex_op.h"
 #include "sig_op.h"
 #include "list_op.h"
+#include "dirtree_op.h"
 #include "store_op.h"
 #include "rc.h"
 #include "ar.h"


OSSEC home | Main Index | Thread Index


OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.