|
Packit |
762fc5 |
/* aide, Advanced Intrusion Detection Environment
|
|
Packit |
762fc5 |
*
|
|
Packit |
762fc5 |
* Copyright (C) 1999-2002,2010 Rami Lehti,Pablo Virolainen, Hannes von
|
|
Packit |
762fc5 |
* Haugwitz
|
|
Packit |
762fc5 |
* $Header$
|
|
Packit |
762fc5 |
*
|
|
Packit |
762fc5 |
* This program is free software; you can redistribute it and/or
|
|
Packit |
762fc5 |
* modify it under the terms of the GNU General Public License as
|
|
Packit |
762fc5 |
* published by the Free Software Foundation; either version 2 of the
|
|
Packit |
762fc5 |
* License, or (at your option) any later version.
|
|
Packit |
762fc5 |
*
|
|
Packit |
762fc5 |
* This program is distributed in the hope that it will be useful, but
|
|
Packit |
762fc5 |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
762fc5 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
762fc5 |
* General Public License for more details.
|
|
Packit |
762fc5 |
*
|
|
Packit |
762fc5 |
* You should have received a copy of the GNU General Public License
|
|
Packit |
762fc5 |
* along with this program; if not, write to the Free Software
|
|
Packit |
762fc5 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
Packit |
762fc5 |
*/
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
#ifndef _SELTREE_H_INCLUDED
|
|
Packit |
762fc5 |
#define _SELTREE_H_INCLUDED
|
|
Packit |
762fc5 |
struct seltree;
|
|
Packit |
762fc5 |
#include "db_config.h"
|
|
Packit |
762fc5 |
#include "list.h"
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
/* seltree structure
|
|
Packit |
762fc5 |
* lists have regex_t* in them
|
|
Packit |
762fc5 |
* checked is whether or not the node has been checked yet and status
|
|
Packit |
762fc5 |
* when added
|
|
Packit |
762fc5 |
* path is the path of the node
|
|
Packit |
762fc5 |
* parent is the parent, NULL if root
|
|
Packit |
762fc5 |
* childs is list of seltree*:s
|
|
Packit |
762fc5 |
* new_data is this nodes new attributes (read from disk or db in --compare)
|
|
Packit |
762fc5 |
* old_data is this nodes old attributes (read from db)
|
|
Packit |
762fc5 |
* attr attributes to add for this node and possibly for its children
|
|
Packit |
762fc5 |
* changed_attrs changed attributes between new_data and old_data
|
|
Packit |
762fc5 |
*/
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
typedef struct seltree {
|
|
Packit |
762fc5 |
list* sel_rx_lst;
|
|
Packit |
762fc5 |
list* neg_rx_lst;
|
|
Packit |
762fc5 |
list* equ_rx_lst;
|
|
Packit |
762fc5 |
list* childs;
|
|
Packit |
762fc5 |
struct seltree* parent;
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
char* path;
|
|
Packit |
762fc5 |
int checked;
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
long conf_lineno;
|
|
Packit |
762fc5 |
char* rx;
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
DB_ATTR_TYPE attr;
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
struct db_line* new_data;
|
|
Packit |
762fc5 |
struct db_line* old_data;
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
DB_ATTR_TYPE changed_attrs;
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
} seltree;
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
#endif /* _SELTREE_H_INCLUDED*/
|