runtime/plc_common_main.c
changeset 57 3b53f9a509d9
parent 54 ff82e7088ec5
child 137 187a4e2412e5
--- a/runtime/plc_common_main.c	Tue Sep 25 10:30:51 2007 +0200
+++ b/runtime/plc_common_main.c	Mon Oct 01 21:44:40 2007 +0200
@@ -25,6 +25,7 @@
 IEC_TIME __CURRENT_TIME;
 
 static int tick = 0;
+static int init_level=0;
 
 /*
  * Prototypes of funcions exported by plugins 
@@ -47,10 +48,12 @@
  * Initialize variables according to PLC's defalut values,
  * and then init plugins with that values  
  **/
-void __init()
+int __init(int argc,char **argv)
 {
+    int res;
     config_init__();
     %(init_calls)s
+    return 0;
 }
 /*
  * Calls plugin cleanup proc.