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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 486 - (show annotations) (download) (as text)
Fri Jun 26 08:54:30 2009 UTC (12 years, 11 months ago) by aramv
File MIME type: text/x-chdr
File size: 478 byte(s)
Added check to prevent overwriting of data
1 #include <stdio.h>
2 #include "plugin.h"
3
4 int plugin_initialize(int argc, char* argv[]){
5 ng_log(LOG_ERR, "Initializing plugin a!\n");
6 return 0;
7 }
8
9 int plugin_run(){
10 /*ng_log(LOG_ERR, "Setting 'foo'\n");*/
11 /*AOS_set_string("foo", "bar");*/
12 ng_log(LOG_ERR, "Getting 'pemstring'\n");
13 ng_log(LOG_ERR, "my_pemstring: %s\n", AOS_get_value_by_label("my_pemstring"));
14 ng_log(LOG_ERR, "Setting 'pemstring' leeg\n");
15 AOS_set_string("my_pemstring", "Leeggehaald\n");
16 return 0;
17 }
18

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