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

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

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

revision 1234 by aramv, Tue Dec 1 14:38:23 2009 UTC revision 1235 by aramv, Fri Dec 4 11:35:24 2009 UTC
# Line 12  EES_RC start_plugin_manager(){ Line 12  EES_RC start_plugin_manager(){
12  /** Prepares the supplied plugin by name, initializes the struct with these values  /** Prepares the supplied plugin by name, initializes the struct with these values
13   * \post the plugin node is ready to be passed to the initialize_plugin function   * \post the plugin node is ready to be passed to the initialize_plugin function
14   */   */
15  eef_plugindl_t * prepare_plugin(int argc, char** argv){  eef_plugindl_t * create_plugin_struct(int argc, char** argv){
16          eef_plugindl_t * current_plugin = NULL;          eef_plugindl_t * current_plugin = NULL;
17    int i = 0;    int i = 0;
18    
# Line 41  eef_plugindl_t * prepare_plugin(int argc Line 41  eef_plugindl_t * prepare_plugin(int argc
41    return NULL;    return NULL;
42  }  }
43    
44  /** Calls prepare_plugin() to build a plugin struct and adds it to the plugin_list  /** Calls create_plugin_struct() to create a plugin struct and adds it to the plugin_list
45   */   */
46  EES_RC add_prepared_plugin(int argc, char* argv[]){  EES_RC add_plugin_struct(int argc, char* argv[]){
47    eef_plugindl_t *last_plugin = NULL, *current_plugin = NULL;    eef_plugindl_t *last_plugin = NULL, *current_plugin = NULL;
48    /* prepare_plugin returns NULL if plugin failed to load. */    /* create_plugin_struct returns NULL if plugin failed to load. */
49    if((current_plugin = prepare_plugin(argc, argv)) != NULL){    if((current_plugin = create_plugin_struct(argc, argv)) != NULL){
50      /* append plugin to the end of the list */      /* append plugin to the end of the list */
51      if(plugin_list == NULL){      if(plugin_list == NULL){
52        plugin_list = current_plugin;        plugin_list = current_plugin;

Legend:
Removed from v.1234  
changed lines
  Added in v.1235

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