/[pdpsoft]/trunk/grid-mw-security/ees/plugin_examples/plugin_b/src/plugin_b.c
ViewVC logotype

Contents of /trunk/grid-mw-security/ees/plugin_examples/plugin_b/src/plugin_b.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 483 - (show annotations) (download) (as text)
Thu Jun 25 15:27:35 2009 UTC (13 years ago) by aramv
File MIME type: text/x-chdr
File size: 510 byte(s)
Added some testing code for plugin-AOS communication
1 #include "plugin.h"
2 #include "aos.h"
3 #include "ng_log.h"
4 #include <stdio.h>
5
6 int plugin_initialize(int argc, char* argv[]){
7 ng_log(LOG_ERR, "Initializing plugin b!\n");
8 /*ng_log(LOG_DEBUG, "My pemstring: %s\n", (char*) AOS_get_value_by_label("my_pemstring"));*/
9 return 0;
10 }
11
12 int plugin_run(){
13 /*ng_log(LOG_ERR, "My PEM string: %s\n", (char*) AOS_get_value_by_label("my_pemstring"));*/
14 ng_log(LOG_ERR, "Getting 'foo'\n");
15 ng_log(LOG_ERR, "foo: %s\n", (char*) AOS_get_value_by_label("foo"));
16 return 0;
17 }
18

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