X-Git-Url: https://rtime.felk.cvut.cz/gitweb/orte.git/blobdiff_plain/51bf20f848625b4b9ec02dc016537945efc21a02..fe1818536e2bf9261b7c4349ac02877bcbb3c124:/orte/libjorte/JORTEDomainInitEvents.c diff --git a/orte/libjorte/JORTEDomainInitEvents.c b/orte/libjorte/JORTEDomainInitEvents.c index ed8e551..3bd004f 100644 --- a/orte/libjorte/JORTEDomainInitEvents.c +++ b/orte/libjorte/JORTEDomainInitEvents.c @@ -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 @@ -26,7 +27,12 @@ * */ -#include "jorte/jorte.h" +#include +// 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");