/[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 1163 by okoeroo, Fri Nov 20 16:20:49 2009 UTC revision 1164 by aramv, Fri Nov 20 16:39:07 2009 UTC
# Line 184  EES_RC initialize_plugin(eef_plugindl_t* Line 184  EES_RC initialize_plugin(eef_plugindl_t*
184    return EES_FAILURE;    return EES_FAILURE;
185  }  }
186    
187    /* TODO fix */
188  /* Runs all the plugins  /* Runs all the plugins
189   * Returns EES_SUCCESS if a plugin branch executed successfully. Returns EES_FAILURE if all plugin branches were exhausted unsuccessfully */   * Returns EES_SUCCESS if a plugin branch executed successfully. Returns EES_FAILURE if all plugin branches were exhausted unsuccessfully */
190  EES_RC run_plugins(policy_t* policy){  EES_RC run_plugins(policy_t* policy){
# Line 195  EES_RC run_plugins(policy_t* policy){ Line 196  EES_RC run_plugins(policy_t* policy){
196      temp_rule = policy->rules;      temp_rule = policy->rules;
197      while(temp_rule){      while(temp_rule){
198        if(temp_rule->plugin){        if(temp_rule->plugin){
199            printf("Running plugin: %s\n", temp_rule->plugin->name);
200          if(run_plugin(temp_rule->plugin) == EES_PL_SUCCESS){          if(run_plugin(temp_rule->plugin) == EES_PL_SUCCESS){
201            if(temp_rule->true_branch){            if(temp_rule->true_branch){
202              temp_rule = temp_rule->true_branch;              temp_rule = temp_rule->true_branch;
# Line 214  EES_RC run_plugins(policy_t* policy){ Line 216  EES_RC run_plugins(policy_t* policy){
216              break;              break;
217            }            }
218          }          }
219          } else {
220            printf("b\n");
221            /*temp_rule = temp_rule->next; */
222            /*temp_rule = temp_rule->false_branch;*/
223        }        }
       /* temp_rule = temp_rule->next; */  
224      }      }
225      policy = policy->next;      policy = policy->next;
226    }    }

Legend:
Removed from v.1163  
changed lines
  Added in v.1164

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