| | |
| | | if(plist->plugin[i]->function->at_start!=NULL){ |
| | | plist->chain->at_start=plugin_to_chain(plist->chain->at_start, plist->plugin[i]); |
| | | } |
| | | if(plist->plugin[i]->function->vm_hard_constraint!=NULL){ |
| | | plist->chain->vm_hard_constraint=plugin_to_chain(plist->chain->vm_hard_constraint, plist->plugin[i]); |
| | | } |
| | | if(plist->plugin[i]->function->vm_energy_before_prepare!=NULL){ |
| | | plist->chain->vm_energy_before_prepare=plugin_to_chain(plist->chain->vm_energy_before_prepare, plist->plugin[i]); |
| | | } |
| | | if(plist->plugin[i]->function->vm_energy_after_execute!=NULL){ |
| | | plist->chain->vm_energy_after_execute=plugin_to_chain(plist->chain->vm_energy_after_execute, plist->plugin[i]); |
| | | } |
| | | |
| | | } |
| | | //printf("%s", plist->chain->at_start->next->plugin->filename); |
| | | plist->n=number_of_plugins; |
| | | return plist; |
| | | } |