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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1390 - (show annotations) (download) (as text)
Mon Jan 18 15:41:17 2010 UTC (12 years, 8 months ago) by aramv
File MIME type: text/x-chdr
File size: 945 byte(s)
AOS seems to be valgrind clean
1 #include "config.h"
2 #include "eef.h"
3 #include "aos.h"
4
5 #define NUMBER_OF_ALLOWED_POLICIES 0
6
7 int main (int argc, char* argv[]){
8 char* config_file;
9 char* names_of_allowed_policies[NUMBER_OF_ALLOWED_POLICIES] = {"world_domination", "trying_to_read_lcmaps_parser_code"};
10 if(argc > 1){
11 config_file = argv[1];
12 } else {
13 config_file = "examples/example_1.pdl";
14 }
15
16 printf("Parsing config file %s\n", config_file);
17
18 if(EEF_Init(config_file, NULL, NUMBER_OF_ALLOWED_POLICIES, names_of_allowed_policies) == EES_FAILURE){
19 eef_log(LOG_ERR, "Failed to parse config file (%s), exiting...", config_file);
20 } else {
21
22 /*eef_log(LOG_INFO, "Modules path: %s\n", get_modules_path());*/
23 /*setObligation("test", "foobar");*/
24 if(EEF_Run() == EES_FAILURE){
25 eef_log(LOG_ERR, "Failed to load and initialize all plugins in config file (%s), exiting...", config_file);
26 }
27 }
28 aos_dump_argslist();
29 EEF_Term();
30 return 0;
31 }

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