Logo Search packages:      
Sourcecode: halevt version File versions  Download package


    parse_config.h declarations for parse_config.c
    Copyright (C) 2007  Patrice Dumas <pertusus at free dot fr>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA


#include "match.h"

00025 typedef struct halevt_exec_element
   char *string;
   halevt_property_name property;
   int hal_property;
} halevt_exec_element;

00032 typedef struct halevt_exec
   char *string;
   char *parsed_string;
   halevt_exec_element *elements;
   int exec_size;
} halevt_exec;

00040 typedef struct halevt_property_action
   char *value;
   halevt_exec *exec;
   struct halevt_property_action *next;
} halevt_property_action;

00047 typedef struct halevt_property
   char *name;
   halevt_boolean_expression *match;
   struct halevt_property_action *action;
   struct halevt_property *next;
} halevt_property;

00055 typedef struct halevt_insertion
   halevt_exec *exec;
   halevt_boolean_expression *match;
   struct halevt_insertion* next;
} halevt_insertion;

00062 typedef struct halevt_removal
   halevt_exec *exec;
   halevt_boolean_expression *match;
   struct halevt_removal* next;
} halevt_removal;

00069 typedef struct halevt_oninit
   halevt_exec *exec;
   halevt_boolean_expression *match;
   struct halevt_oninit* next;
} halevt_oninit;

00076 typedef struct halevt_condition
   char *name;
   char *value;
   halevt_exec *exec;
   halevt_boolean_expression *match;
   struct halevt_condition* next;
} halevt_condition;

int halevt_parse_config(char const *path);
void halevt_free_config();
char *halevt_hal_string (char *string);
void halevt_print_config ();
void halevt_parse_property_name (char *string, halevt_property_name *property_name);
char *halevt_print_property_name(halevt_property_name *property);

extern halevt_property *halevt_property_root;
extern halevt_insertion *halevt_insertion_root;
extern halevt_removal *halevt_removal_root;
extern halevt_condition *halevt_condition_root;
extern halevt_oninit *halevt_oninit_root;

Generated by  Doxygen 1.6.0   Back to index