/[pdpsoft]/trunk/grid-mw-security/ees/include/common/pdl.h
ViewVC logotype

Diff of /trunk/grid-mw-security/ees/include/common/pdl.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 530 by aramv, Wed Jul 15 10:55:33 2009 UTC revision 566 by aramv, Mon Jul 20 09:41:59 2009 UTC
# Line 12  Line 12 
12  const char* _pdl_path;  const char* _pdl_path;
13    
14  extern int yylex(void);  extern int yylex(void);
15    extern int yyparse(void);
16  extern FILE* yyin;  extern FILE* yyin;
17  FILE* file;  FILE* file;
18  extern yylex_destroy(void);  extern int yylex_destroy(void);
19    
20  typedef struct record_s {  typedef struct record_s {
21    char* string;   //!<  Hold the symbol that lex has found.    char* string;   //!<  Hold the symbol that lex has found.
# Line 28  typedef struct record_s { Line 29  typedef struct record_s {
29   */   */
30  typedef struct rule_s {  typedef struct rule_s {
31    const char* state;         //!<  Name of the state.    const char* state;         //!<  Name of the state.
   const char* true_branch;   //!<  Name of the true_branch, or 0 if none.  
   const char* false_branch;  //!<  Name of the false_branch, or 0 if none.  
32    unsigned int lineno;       //!<  Line number where rule appeared.    unsigned int lineno;       //!<  Line number where rule appeared.
33    struct rule_s* next;       //!<  Next rule, or 0 if none.    struct rule_s* true_branch;   //!<  Name of the true_branch, or 0 if none.
34      struct rule_s* false_branch;  //!<  Name of the false_branch, or 0 if none.
35  } rule_t;  } rule_t;
36    
37  typedef struct policy_s {  typedef struct policy_s {
38    lcmaps_plugindl_t* current;    lcmaps_plugindl_t* current;
39    lcmaps_plugindl_t* next_success;    lcmaps_plugindl_t* next_success;
40    lcmaps_plugindl_t* next_failure;    lcmaps_plugindl_t* next_failure;
41      struct rule_s* head_rule;
42  } policy_t;  } policy_t;
43    
44  NG_RC pdl_init(const char*);  NG_RC pdl_init(const char*);
45  NG_RC pdl_term();  NG_RC pdl_term();
46  record_t* concat_strings(record_t*, record_t*);  record_t* concat_strings(record_t*, record_t*);
47    record_t* concat_strings_with_space(record_t*, record_t*);
48    
49  int yyerror(const char*);  int yyerror(const char*);
50  void set_path(record_t*);  void set_path(record_t*);
51  void add_policy(record_t*, rule_t*);  void add_policy(record_t*, rule_t*);
52    rule_t* add_rule(record_t*, record_t*, record_t*);
53  const char* pdl_path(void);  const char* pdl_path(void);
54  void remove_policy(record_t* policy);  void remove_policy(record_t* policy);
55  void add_variable(record_t* name, record_t* value);  void add_variable(record_t* name, record_t* value);

Legend:
Removed from v.530  
changed lines
  Added in v.566

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28