From 36dba86649e71d2a56657320ddf98a1af2055023 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Thu, 28 Feb 2019 20:04:16 +0000
Subject: [PATCH] Some changes to plugins to allow storage of data. Pressure is a plugin now

---
 src/plugins.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/plugins.c b/src/plugins.c
index 84983aa..e94241f 100644
--- a/src/plugins.c
+++ b/src/plugins.c
@@ -155,9 +155,17 @@
 		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;
 }	

--
Gitblit v1.9.3