]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/libjorte/JORTEDomainInitEvents.c
JORTE: update license headers and clean-up includes
[orte.git] / orte / libjorte / JORTEDomainInitEvents.c
index 3bd004f75532b33094ef76d90413500c20c354fb..ed8e5510abfa827837f2230df81552fb8aaa87bc 100644 (file)
@@ -1,6 +1,5 @@
 /* JORTEDomainInitEvents.c */
 
-
 /**
   * This code provides conversion between JAVA a C environments.
   * The C functions are calling here and results are send to JAVA
@@ -8,8 +7,8 @@
   * (by command 'javah -jni class_with_native_function')
   *
   * @author Lukas Pokorny (lukas_pokorny@centrum.cz)
-  * @author CTU FEE Prague - Department of Control Engineering (dce.felk.cvut.cz
-)
+  * @author Martin Vajnar (martin.vajnar@gmail.com)
+  * @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 <stdlib.h>
-// origin orte headers
-#include "orte.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_types_DomainEvents.h"
-#include "jorte/4all.h"
+#include "jorte/jorte.h"
 
 JNIEXPORT jlong JNICALL
 Java_org_ocera_orte_types_DomainEvents_jORTEDomainInitEvents
@@ -41,7 +35,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");