]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/libjorte/JORTEDomainInitEvents.c
Revert "JORTE: update license headers and clean-up includes"
[orte.git] / orte / libjorte / JORTEDomainInitEvents.c
index ed8e5510abfa827837f2230df81552fb8aaa87bc..3bd004f75532b33094ef76d90413500c20c354fb 100644 (file)
@@ -1,5 +1,6 @@
 /* JORTEDomainInitEvents.c */
 
+
 /**
   * This code provides conversion between JAVA a C environments.
   * The C functions are calling here and results are send to JAVA
@@ -7,8 +8,8 @@
   * (by command 'javah -jni class_with_native_function')
   *
   * @author Lukas Pokorny (lukas_pokorny@centrum.cz)
-  * @author Martin Vajnar (martin.vajnar@gmail.com)
-  * @author CTU FEE Prague - Department of Control Engineering (dce.felk.cvut.cz)
+  * @author CTU FEE Prague - Department of Control Engineering (dce.felk.cvut.cz
+)
   * @author Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   * @version 0.1
   *
   */
 
-#include "jorte/jorte.h"
+#include <stdlib.h>
+// origin orte headers
+#include "orte.h"
+// pregenerated header
+#include "jorte/org_ocera_orte_types_DomainEvents.h"
+#include "jorte/4all.h"
 
 JNIEXPORT jlong JNICALL
 Java_org_ocera_orte_types_DomainEvents_jORTEDomainInitEvents
@@ -35,7 +41,7 @@ Java_org_ocera_orte_types_DomainEvents_jORTEDomainInitEvents
   ORTEDomainAppEvents *evs;
 
   // memory allocation
-  evs = (ORTEDomainAppEvents *) MALLOC(sizeof(ORTEDomainAppEvents));
+  evs = (ORTEDomainAppEvents *) malloc(sizeof(ORTEDomainAppEvents));
   if(evs == 0)
   {
     printf(":!c: evs = NULL [not enough memory] \n");