/[pdpsoft]/trunk/grid-mw-security/ees/src/app/main.c
ViewVC logotype

Diff of /trunk/grid-mw-security/ees/src/app/main.c

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

revision 1157 by aramv, Tue Nov 17 13:48:07 2009 UTC revision 1158 by aramv, Fri Nov 20 14:04:55 2009 UTC
# Line 2  Line 2 
2  #include "eef.h"  #include "eef.h"
3  #include "aos.h"  #include "aos.h"
4    
5    #define NUMBER_OF_ALLOWED_POLICIES 2
6    
7  int main (int argc, char* argv[]){  int main (int argc, char* argv[]){
8    char *config_file;    char* config_file;
9      char* names_of_allowed_policies[NUMBER_OF_ALLOWED_POLICIES] = {"world_domination", "trying_to_read_lcmaps_parser_code"};
10    
11    if(argc > 1){    if(argc > 1){
12      config_file = argv[1];      config_file = argv[1];
13    } else {    } else {
14      config_file = "examples/example_1.pdl";      config_file = "examples/example_1.pdl";
15    }    }
16    
17          if(EEF_Init(config_file, NULL, 0, NULL) == EES_FAILURE){  
18    
19            if(EEF_Init(config_file, NULL, NUMBER_OF_ALLOWED_POLICIES, names_of_allowed_policies) == EES_FAILURE){
20      eef_log(LOG_ERR, "Failed to parse config file (%s), exiting...", config_file);      eef_log(LOG_ERR, "Failed to parse config file (%s), exiting...", config_file);
21    } else {    } else {
22      /*eef_log(LOG_INFO, "Modules path: %s\n", get_modules_path());*/      /*eef_log(LOG_INFO, "Modules path: %s\n", get_modules_path());*/

Legend:
Removed from v.1157  
changed lines
  Added in v.1158

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