/[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 851 - (show annotations) (download) (as text)
Mon Sep 28 20:22:51 2009 UTC (12 years, 3 months ago) by aramv
File MIME type: text/x-chdr
File size: 590 byte(s)
Moved some example code to a plugin
1 #include "eef.h"
2 #include "aos.h"
3 #include "ees_config.h"
4 #include <string.h>
5 #include <stdio.h>
6 #include <stdarg.h>
7 #ifndef S_SPLINT_S
8 #include <unistd.h>
9 #endif
10 #include <errno.h>
11
12
13 int main (int argc, char* argv[]){
14 char *config_file = "/home/aczid/example_1.pdl";
15
16 printf("Modules dir: %s\n", MODULE_DIR);
17
18 if(EEF_Init(config_file) == EES_FAILURE){
19 eef_log(LOG_ERR, "Failed to load plugins from config file (%s), terminating...", config_file);
20 } else {
21 printf("Loaded config file: %s\n", config_file);
22
23 setObligation("test", "foobar");
24 }
25 EEF_Term();
26 return 0;
27 }

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