]> rtime.felk.cvut.cz Git - orte.git/commitdiff
JORTE: update license headers and clean-up includes
authorMartin Vajnar <martin.vajnar@gmail.com>
Sun, 22 Sep 2013 13:02:07 +0000 (15:02 +0200)
committerMartin Vajnar <martin.vajnar@gmail.com>
Sun, 22 Sep 2013 13:02:07 +0000 (15:02 +0200)
50 files changed:
orte/include/jorte/4all.h
orte/include/jorte/jorte.h
orte/include/jorte/jorte_protos_api.h
orte/include/jorte/jorte_typedefs_defines.h
orte/include/orte.h
orte/include/orte_headers.h
orte/libjorte/JGetORTEConstant.c
orte/libjorte/JIPAddressToString.c
orte/libjorte/JNtpTimeToStringMs.c
orte/libjorte/JNtpTimeToStringUs.c
orte/libjorte/JORTEDomainAppCreate.c
orte/libjorte/JORTEDomainAppDestroy.c
orte/libjorte/JORTEDomainEvents.c
orte/libjorte/JORTEDomainEventsDestroy.c
orte/libjorte/JORTEDomainInitEvents.c
orte/libjorte/JORTEDomainMgrCreate.c
orte/libjorte/JORTEDomainMgrDestroy.c
orte/libjorte/JORTEDomainPropDefaultGet.c
orte/libjorte/JORTEDomainPropDestroy.c
orte/libjorte/JORTEDomainPropSet.c
orte/libjorte/JORTEDomainStart.c
orte/libjorte/JORTEInit.c
orte/libjorte/JORTEPublicationCreate.c
orte/libjorte/JORTEPublicationDestroy.c
orte/libjorte/JORTEPublicationGetStatus.c
orte/libjorte/JORTEPublicationPropertiesGet.c
orte/libjorte/JORTEPublicationPropertiesSet.c
orte/libjorte/JORTEPublicationSend.c
orte/libjorte/JORTEPublicationWaitForSubscriptions.c
orte/libjorte/JORTESleepMs.c
orte/libjorte/JORTESubscriptionCreate.c
orte/libjorte/JORTESubscriptionDestroy.c
orte/libjorte/JORTESubscriptionGetStatus.c
orte/libjorte/JORTESubscriptionPropertiesGet.c
orte/libjorte/JORTESubscriptionPropertiesSet.c
orte/libjorte/JORTESubscriptionPull.c
orte/libjorte/JORTESubscriptionWaitForPublications.c
orte/libjorte/JORTETypeRegisterAdd.c
orte/libjorte/JORTETypeRegisterDestroyAll.c
orte/libjorte/JORTEVerbositySetLogFile.c
orte/libjorte/JORTEVerbositySetOptions.c
orte/libjorte/JStringToIPAddress.c
orte/libjorte/createAppInfo.c
orte/libjorte/createPubInfo.c
orte/libjorte/createSubInfo.c
orte/libjorte/getNtpTime.c
orte/libjorte/onLoad.c
orte/libjorte/setRecvInfo.c
orte/libjorte/setTopic.c
orte/libjorte/setType.c

index e6360536bca008113e6f13b23e2948a495d62131..d9bc2f0b707c957e12b1c37f48d12349d243d7d5 100644 (file)
@@ -1,4 +1,31 @@
 /* 4all.h */
+
+/**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
+  * @author dedication to Kj
+  * @version 0.1
+  *
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  * GNU General Public License for more details.
+  *
+  */
+
 /*
 typedef struct
 {
@@ -14,6 +41,8 @@ typedef struct
 
 //#define TEST_STAGE
 
+#include <jni.h>
+
 #ifdef __ANDROID__
 
 #include <android/log.h>
index 9c7a5e339a253ff05c2060b0aba8f897effca471..8112fffa01736b7514bd2629fd5b975be559cba4 100644 (file)
   *
   */
 
-/*
 #ifndef _JORTE_H
 #define _JORTE_H
-*/
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#include "orte.h"
+#include "orte_all.h"
 
 // switch program behaviour (test stage,....)
 #include "4all.h"
 
-// NtpTime
-#include "getNtpTime.h"
-
 // new type definitions
-#include "typedefs_defines_jorte.h"
+#include "jorte_typedefs_defines.h"
+
+// JORTE API
+#include "jorte_protos_api.h"
 
 // auto-generated headers by JNI
 #include "org_ocera_orte_tools_Conversions.h"
 #include "org_ocera_orte_Domain.h"
-#include "org_ocera_orte_DomainEvents.h"
-#include "org_ocera_orte_DomainProp.h"
+#include "org_ocera_orte_DomainApp.h"
+#include "org_ocera_orte_DomainMgr.h"
+#include "org_ocera_orte_types_DomainEvents.h"
+#include "org_ocera_orte_types_DomainProp.h"
+#include "org_ocera_orte_types_NtpTime.h"
 #include "org_ocera_orte_tools_GetORTEConstant.h"
 #include "org_ocera_orte_JOrte.h"
-#include "org_ocera_orte_Manager.h"
 #include "org_ocera_orte_Publication.h"
 #include "org_ocera_orte_Subscription.h"
 
@@ -55,6 +55,4 @@ extern "C" {
 } /* extern "C"*/
 #endif
 
-/*
-#endif // _JORTE_H
-*/
+#endif // _JORTE_H
\ No newline at end of file
index bcd07d3c28e57589901594df9a91ae9bc5aa8cde..b659866ae6fcfc890a914f27f5f77c380843c5e8 100644 (file)
@@ -1,6 +1,39 @@
 /* jorte_typedefs_api.h */
 
-#include  <jni.h>
+/**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
+  * @author dedication to Kj
+  * @version 0.1
+  *
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  * GNU General Public License for more details.
+  *
+  */
+
+#ifndef _JORTE_PROTOS_API_H
+#define _JORTE_PROTOS_API_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+  
+#include <jni.h>
 #include "orte.h"
 
 extern int
@@ -59,3 +92,9 @@ onRegFail(void *param);
 
 extern jclass
 findClass(JNIEnv *env, const char* name);
+
+#ifdef __cplusplus
+} /* extern "C"*/
+#endif
+
+#endif // _JORTE_PROTOS_API_H
\ No newline at end of file
index cb0f50d3ffbd031e46eede36b6bc7ccbe4077e34..6281377b66df3e1ddbb61ee3884870aa7c7253d0 100644 (file)
@@ -1,7 +1,13 @@
 /* typedefs_defines_jorte.h */
 
 /**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
@@ -20,6 +26,7 @@
   *
   */
 
+#include <jni.h>
 
 typedef struct
 {
index 948da9ba6fdd2d79c0b58129830c563fdc4deb51..d17d1fce91d5f406529e07e184eba1ede7ea249a 100644 (file)
@@ -36,6 +36,8 @@ extern "C" {
 
 #ifdef _MSC_VER
   #include <orte/ew_types.h>
+#elif defined(__ANDROID__) && !defined(OMK_FOR_USER) && !defined(OMK_FOR_KERNEL)
+  #include "orte/orte_config_android.h"
 #else
   #include <orte/orte_config.h>
 #endif
index c64577b228e11f5f7c7808ef63b9e5319007d9ac..a22f5d71f52f0551fbf664b1ae4df655fbdf72e5 100644 (file)
@@ -40,6 +40,8 @@ extern "C" {
 
 #if defined _MSC_VER
   #include "orte/ew_types.h"
+#elif defined(__ANDROID__)
+  #include "orte/orte_config_android.h"
 #elif defined(HAVE_CONFIG_H) || defined(OMK_FOR_USER)  || defined(OMK_FOR_KERNEL)
   #include "orte/orte_config.h"
 #else
index 6c2be0a0c773c180d80fcf67a8ed01e015a2797b..3cf5f96e2b9ca42a177a5cae1f1888350ae50bb9 100644 (file)
@@ -1,4 +1,5 @@
 /* JGetORTEConstant.c */
+
 /**
   * This code provides conversion between JAVA a C environments.
   * The C functions are calling here and results are send to JAVA
@@ -6,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   *
   */
 
-#include <string.h>
-/* pregenerated header */
-#include "jorte/org_ocera_orte_tools_GetORTEConstant.h"
-/* library header file's path */
-#include "orte.h"
+#include "jorte/jorte.h"
 
 /* macro for comparing 2 strings */
 /* if(a==b) -> strcmp = 0 */
index ffc7c01a8a0e46e7524321d675e83efaa0a32776..2b7ca3b53a5c639e1c8dda119ce4dd704f7676e8 100644 (file)
@@ -1,11 +1,13 @@
 /* IPAdressToString.c */
+
 /**
   * This code provides conversion between JAVA a C environments.
-  * The C functions are calling here and results are send to JAVA 
-  * native functions. It uses the header pregenerated by JAVA 
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   */
 
 
-// origin orte headers
-#include "orte.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_tools_Conversions.h"
-
-
+#include "jorte/jorte.h"
 
 /* native function - prototype declared in pregenerated header */
 JNIEXPORT jstring JNICALL
index 2a29efa45cae6c97b282d867c93bfb42b71201be..ad402289e8765342edc4f6aebad85b91d09e80e1 100644 (file)
@@ -1,4 +1,5 @@
 /* JNtpTimeToStringMs.c */
+
 /**
   * This code provides conversion between JAVA a C environments.
   * The C functions are calling here and results are send to JAVA
@@ -6,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   */
 
 
-// origin orte headers
-#include "orte.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_types_NtpTime.h"
-
-
+#include "jorte/jorte.h"
 
 /* native function - prototype declared in pregenerated header */
 JNIEXPORT jstring JNICALL
index 340f5acbe62724a4234792c10767ca080b4e0795..f61b3938da8a74c155606a210c723cfae2202624 100644 (file)
@@ -1,4 +1,5 @@
 /* JNtpTimeToStringUs.c */
+
 /**
   * This code provides conversion between JAVA a C environments.
   * The C functions are calling here and results are send to JAVA
@@ -6,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   */
 
 
-// origin orte headers
-#include "orte.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_types_NtpTime.h"
-
-
+#include "jorte/jorte.h"
 
 /* native function - prototype declared in pregenerated header */
 JNIEXPORT jstring JNICALL
index 93be29d9197686e66089ea056ca89607990c331d..ce01f9051ea64688284cdace10faffd8847ab43c 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   *
   */
 
-#include <stdlib.h>
-// origin orte headers
-#include "orte.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_DomainApp.h"
-// enable TEST_STAGE run level
-#include "jorte/4all.h"
-// new data types
-#include "jorte/jorte_typedefs_defines.h"
-#include "jorte/jorte_protos_api.h"
-#include <inttypes.h>
-
+#include "jorte/jorte.h"
 
 // /////////////////////////////////////////////////////////////////////
 // create default application domain
index 460682b34863f9d2400df29c9283dba3c6328f1e..36e8d083d5f12438f6eabb557faadb3bde5b5229 100644 (file)
@@ -7,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_DomainApp.h"
-#include "jorte/4all.h"
-#include "jorte/jorte_typedefs_defines.h"
+#include "jorte/jorte.h"
 
 JNIEXPORT jboolean JNICALL
 Java_org_ocera_orte_DomainApp_jORTEDomainAppDestroy
index 1241d7b4b2566af2a0e00976808628307fda1661..4def279915ac4fff18ff203684946d6c423ff9d8 100644 (file)
@@ -1,10 +1,30 @@
-#include <stdlib.h>
-#include <stdio.h>
-#include <jni.h>
-#include "orte.h"
-#include "jorte/4all.h"
-#include "jorte/jorte_typedefs_defines.h"
-#include "jorte/jorte_protos_api.h"
+/**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
+  * @author dedication to Kj
+  * @version 0.1
+  *
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  * GNU General Public License for more details.
+  *
+  */
+
+#include "jorte/jorte.h"
 
 // /////////////////////////////////////////////////////////////////////
 //  public void onRegFail()
index b9dda005cf36b68256e86c65d47de37311ce79be..13f05eecacd2710aaeb7fa79ea1095e76568d8d0 100644 (file)
@@ -1,16 +1,36 @@
-#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_typedefs_defines.h"
+/**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
+  * @author dedication to Kj
+  * @version 0.1
+  *
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  * GNU General Public License for more details.
+  *
+  */
+
+#include "jorte/jorte.h"
 
 JNIEXPORT jboolean JNICALL
 Java_org_ocera_orte_types_DomainEvents_jORTEDomainEventsDestroy
 (JNIEnv *env, jobject obj, jlong handle)
 {
-  free((void*)handle);
+  FREE((void*)handle);
 
   #ifdef TEST_STAGE
      printf(":c: events destroyed.. \n");
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");
index 5fb4c9669c94d205fffb0d0a3d42d0a572ed4aaf..8dea66b1dd3ecb43fd52333f8e43f9576fb9704e 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   *
   */
 
-#include <stdlib.h>
-// origin orte headers
-#include "orte.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_DomainMgr.h"
-#include "jorte/4all.h"
-#include "jorte/jorte_typedefs_defines.h"
-#include "jorte/jorte_protos_api.h"
+#include "jorte/jorte.h"
 
 /* ****************************** *
  *  create default manager domain *
index e80ff49fccf35100a362ddb8008534eafeeafb3b..5889cf7acabab67ba3d306d8bafa95a9e12391e2 100644 (file)
@@ -7,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_DomainMgr.h"
-#include "jorte/4all.h"
-#include "jorte/jorte_typedefs_defines.h"
-
+#include "jorte/jorte.h"
 
 JNIEXPORT jboolean JNICALL
 Java_org_ocera_orte_DomainMgr_jORTEDomainMgrDestroy
index 3913eb04cecbe55aa52cad6782f6911e4bfb8238..5ca1815bf203aafa42b56fdb35c905a1e8fa3ae9 100644 (file)
@@ -7,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_DomainProp.h"
-#include "jorte/4all.h"
+#include "jorte/jorte.h"
 
 JNIEXPORT jlong JNICALL
 Java_org_ocera_orte_types_DomainProp_jORTEDomainPropDefaultGet
index a0a33a0860c1de0e9700a7d7bdb10c09a8eb3023..377e7d358c8c8ed1cade836819ac89b3590a4e11 100644 (file)
@@ -1,9 +1,30 @@
-#include <string.h>
-#include <stdlib.h>
-#include "orte.h"
-#include "jorte/4all.h"
+/**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
+  * @author dedication to Kj
+  * @version 0.1
+  *
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  * GNU General Public License for more details.
+  *
+  */
 
-#include "jorte/org_ocera_orte_types_DomainProp.h"
+#include "jorte/jorte.h"
 
   JNIEXPORT jboolean JNICALL Java_org_ocera_orte_types_DomainProp_jORTEDomainPropDestroy
   (
index fe6abd80255c8592116a7221e520360c58ff6e44..85b2d5afbf9e2206351c121392d7954c2373364e 100644 (file)
@@ -1,9 +1,30 @@
-#include <string.h>
-#include <stdlib.h>
-#include "orte.h"
-#include "jorte/4all.h"
+/**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
+  * @author dedication to Kj
+  * @version 0.1
+  *
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  * GNU General Public License for more details.
+  *
+  */
 
-#include "jorte/org_ocera_orte_types_DomainProp.h"
+#include "jorte/jorte.h"
 
   JNIEXPORT jboolean JNICALL Java_org_ocera_orte_types_DomainProp_jORTEDomainPropSet
   (
index e9a1527d78144950e73a8518c2e419c4498d0528..327fcf36198713e7567a69e7d9698589bff2a0ea 100644 (file)
@@ -1,6 +1,5 @@
 /* JORTEDomainStart.c */
 
-
 /**
   * This code provides conversion between JAVA a C environments.
   * The C functions are calling here and results are send to JAVA
@@ -8,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   */
 
 
-// origin orte headers
-#include "orte.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_Domain.h"
-#include "jorte/4all.h"
+#include "jorte/jorte.h"
 
 // ve fci chybi 2 Multicast argumenty - maji se dodat???
 JNIEXPORT void JNICALL
index 33ea9dcd6ab8289b7f1311d34a4761e0916c58f2..953461851387de82c4adcfe96d96efe7ee1f9726 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   */
 
 
-// origin orte headers
-#include "orte.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_JOrte.h"
-#include "jorte/4all.h"
-
+#include "jorte/jorte.h"
 
 JNIEXPORT void JNICALL
 Java_org_ocera_orte_JOrte_jORTEInit
index 4cabf34c1fa623ab9d5f3e321ad13edf8ef8307e..b2b5876a1070271fe50cee1ac3a74968f2fe5bf9 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   *
   */
 
-#include <stdlib.h>
-// origin orte headers
-#include "orte.h"
-#include "orte_all.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_Publication.h"
-#include "jorte/jorte_protos_api.h"
-#include "jorte/4all.h"
+#include "jorte/jorte.h"
 
 // ### DOCASNE ##################################################################
 
index 8eb9b365c3ed2ef65b3d431e28a313d3c809c403..962bb48c8f7c6a73dd4ef9ab29f7bcc5cc6c74dd 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   *
   */
 
-#include <stdlib.h>
-// origin orte headers
-#include "orte.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_Publication.h"
-#include "jorte/4all.h"
-
+#include "jorte/jorte.h"
 
 JNIEXPORT jboolean JNICALL
 Java_org_ocera_orte_Publication_jORTEPublicationDestroy
index a8bf3cc68ccfd903874251b18e5d00ecbebbad2d..f8f578ee8d00862a8ffb8732ff41558a4ba524e6 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   *
   */
 
-#include <string.h>
-#include <stdlib.h>
-// library header file's path
-#include "orte.h"
-// enable TEST_STAGE run level
-#include "jorte/4all.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_Publication.h"
-#include "jorte/jorte_protos_api.h"
-
+#include "jorte/jorte.h"
 
 JNIEXPORT jobject JNICALL
 Java_org_ocera_orte_Publication_jORTEPublicationGetStatus
index 3e70197d591b824d61f6eb8be419fa4e04b0690e..4024c3376b0be86699068e0145e2de08bf630c47 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   *
   */
 
-#include <string.h>
-#include <stdlib.h>
-// library header file's path
-#include "orte.h"
-// enable TEST_STAGE run level
-#include "jorte/4all.h"
-#include "jorte/jorte_protos_api.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_Publication.h"
-
+#include "jorte/jorte.h"
 
 JNIEXPORT jobject JNICALL
 Java_org_ocera_orte_Publication_jORTEPublicationPropertiesGet
index f0f319dbdf11f4f41f3c3125eae4d2c2890ea7f2..066b0f164940d60e137873f2e6341e9a6db1ec1a 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   *
   */
 
-#include <string.h>
-#include <stdlib.h>
-#include <inttypes.h>
-// library header file's path
-#include "orte.h"
-// getNtpTime function
-#include "jorte/jorte_protos_api.h"
-// enable TEST_STAGE run level
-#include "jorte/4all.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_Publication.h"
+#include "jorte/jorte.h"
 
 
 JNIEXPORT jboolean JNICALL
index 9b67ba21282842ee3cc44ea7c65ba128a1001d18..e7b6e658bbaea345cbea5c20fd1a60ef42d3893c 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   */
 
 
-#include <stdlib.h>
-// library header file's path
-#include "orte.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_Publication.h"
-// enable TEST_STAGE run level
-#include "jorte/4all.h"
+#include "jorte/jorte.h"
 
 
 JNIEXPORT jboolean JNICALL
index 4b9b377f09f1e2ab74182a67ff94c46901d7419f..6a8e29cf80858d17a9dfda28afcf09f8ba535a48 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   *
   */
 
-#include <string.h>
-#include <stdlib.h>
-#include <inttypes.h>
-// library header file's path
-#include "orte.h"
-// getNtpTime function
-#include "jorte/jorte_protos_api.h"
-// enable TEST_STAGE run level
-#include "jorte/4all.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_Publication.h"
+
+#include "jorte/jorte.h"
 
 
 JNIEXPORT jint JNICALL
index 9bf2bfdaa99811516975a095cd9926eb6700c1fa..4dec7efc9892229a376fd5dcea9d5784795e9609 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   */
 
 
-// origin orte headers
-#include "orte.h"
-/* pregenerated header */
-#include "jorte/org_ocera_orte_JOrte.h"
-#include "jorte/4all.h"
+#include "jorte/jorte.h"
 
 
 JNIEXPORT void JNICALL
index b02edea7227c2c06254959bdf8dc73a2d13ce25f..11f259b220b0d097e3869c0a36015990c6877a89 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   *
   */
 
-
-#include <stdlib.h>
-#include <inttypes.h>
-
-// library header file's path
-#include "orte_all.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_Subscription.h"
-// enable TEST_STAGE run level
-#include "jorte/4all.h"
-// new data types
-#include "jorte/jorte_typedefs_defines.h"
-#include "jorte/jorte_protos_api.h"
+#include "jorte/jorte.h"
 
 /* ****************************************************************** *
  *                           CallBack function                        *
index c53653f391e24905d098730eba559ce49a946a72..9f3a54317cbd79efa90ad4916aa804340cc686a6 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   */
 
 
-#include <stdlib.h>
-// library header file's path
-#include "orte.h"
-// enable TEST_STAGE run level
-#include "jorte/4all.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_Subscription.h"
-//
-#include "jorte/jorte_typedefs_defines.h"
+#include "jorte/jorte.h"
 
 JNIEXPORT jboolean JNICALL
 Java_org_ocera_orte_Subscription_jORTESubscriptionDestroy
index 6ba6b05342bbab466e714622e307b65cdb3f2f95..28e9b1eca513791442705c05a1dff6a751a2b304 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   *
   */
 
-#include <string.h>
-#include <stdlib.h>
-// library header file's path
-#include "orte.h"
-// enable TEST_STAGE run level
-#include "jorte/4all.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_Subscription.h"
-#include "jorte/jorte_protos_api.h"
+#include "jorte/jorte.h"
 
 
 JNIEXPORT jobject JNICALL
index 0e1c6525bdf19cf94bab99b399bdce0abb42abaf..d11fdaab3364f68fb8cda8c342ef4056beb80c98 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   *
   */
 
-#include <string.h>
-#include <stdlib.h>
-// library header file's path
-#include "orte.h"
-// enable TEST_STAGE run level
-#include "jorte/4all.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_Subscription.h"
-#include "jorte/jorte_protos_api.h"
+#include "jorte/jorte.h"
 
 JNIEXPORT jobject JNICALL
 Java_org_ocera_orte_Subscription_jORTESubscriptionPropertiesGet
index 2ba47e5579c3f22668ca5efae75d4cb944f78329..35610878e01b93c78320f01eacdd838c9d87bd23 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   *
   */
 
-#include <string.h>
-#include <stdlib.h>
-#include <inttypes.h>
-// library header file's path
-#include "orte.h"
-// getNtpTime function
-#include "jorte/jorte_protos_api.h"
-// enable TEST_STAGE run level
-#include "jorte/4all.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_Subscription.h"
+#include "jorte/jorte.h"
 
 
 JNIEXPORT jboolean JNICALL
index 938f9934c6ab603ffb2f2095b5c97ba39692f146..3214575b263f6f42ed7978c84c43e0ad7f650396 100644 (file)
@@ -1,6 +1,30 @@
-#include "orte.h"
-#include "jorte/4all.h"
-#include "jorte/org_ocera_orte_Subscription.h"
+/**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
+  * @author dedication to Kj
+  * @version 0.1
+  *
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  * GNU General Public License for more details.
+  *
+  */
+
+#include "jorte/jorte.h"
 
 JNIEXPORT jint JNICALL
 Java_org_ocera_orte_Subscription_jORTESubscriptionPull
index 7852648e8d5cb0f56d785297ea025f34ba708852..7bf2da6e10908a29a224181565393869a303af87 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   *
   */
 
-#include <string.h>
-#include <stdlib.h>
-#include <inttypes.h>
-// library header file's path
-#include "orte.h"
-// getNtpTime function
-#include "jorte/jorte_protos_api.h"
-// enable TEST_STAGE run level
-#include "jorte/4all.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_Subscription.h"
+#include "jorte/jorte.h"
 
 
 JNIEXPORT jint JNICALL
index 73e9c640ad6080bbe9424df5de4d4a4dae3d6c69..a2fc83b61b9d016504d036f221d21772cdf34443 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   */
 
 
-// library header file's path
-#include "orte.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_DomainApp.h"
-#include "jorte/4all.h"
+#include "jorte/jorte.h"
 
 JNIEXPORT jint JNICALL
 Java_org_ocera_orte_DomainApp_jORTETypeRegisterAdd
index cea627eaa157cd40200db8a74e994be9315afbe9..436ecfb09f98c5422cca27555f39534b09d6de67 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   */
 
 
-// library header file's path
-#include "orte.h"
-#include "jorte/4all.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_DomainApp.h"
+#include "jorte/jorte.h"
 
 
 JNIEXPORT jboolean JNICALL
index 1059e2547408c9412419ca3d19ca5ff00b587a72..8b7cc620acfaccec40497dac9f2f2b711c818952 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   */
 
 
-// library header file's path
-#include "orte.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_JOrte.h"
+#include "jorte/jorte.h"
 
 
 /* native function - prototype declared in pregenerated header */
index 84aaf5d3430a9aad456cfce2c5a2bc7b936521fb..831d736e7e90ee2c77856eb6a2315a47f292e6e6 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   */
 
 
-// library header file's path
-#include "orte.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_JOrte.h"
+#include "jorte/jorte.h"
 
 
 /* native function - prototype declared in pregenerated header */
index a1f86142719791a7df0687396464030abe00a248..ccf2b510f6bafbeca1945288d382af190bfd69f9 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
   *
   */
 
-
-// library header file's path
-#include "orte.h"
-// pregenerated header
-#include "jorte/org_ocera_orte_tools_Conversions.h"
+#include "jorte/jorte.h"
 
 
 /* native function - prototype declared in pregenerated header */
index 1d06bbe1338da62cc951f0867095581cc0d042c3..efc8b6b4466fc71136af5fc5d2694c276f6a0aad 100644 (file)
@@ -1,10 +1,32 @@
 /* createAppInfo.c  */
 
-#include <jni.h>
-#include "orte.h"
-#include "jorte/4all.h"
-#include "jorte/jorte_protos_api.h"
-#include <inttypes.h>
+/**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
+  * @author dedication to Kj
+  * @version 0.1
+  *
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  * GNU General Public License for more details.
+  *
+  */
+
+#include "jorte/jorte.h"
 
 jobject createAppInfo(JNIEnv *env, const ORTEAppInfo *ainfo)
 {
index 16c2ac13b56072e9370136812584a3144aa17d08..89f5d492914af7c79a163e94e22df0589b2f1c07 100644 (file)
@@ -1,9 +1,32 @@
 /* createPubInfo.c  */
 
-#include <jni.h>
-#include "orte.h"
-#include "jorte/4all.h"
-#include "jorte/jorte_protos_api.h"
+/**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
+  * @author dedication to Kj
+  * @version 0.1
+  *
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  * GNU General Public License for more details.
+  *
+  */
+
+#include "jorte/jorte.h"
 
 jobject createPubInfo(JNIEnv *env, const ORTEPubInfo *pinfo)
 {
index d9190042b7d1e3815f49546808b5eb88153c1d4e..2224b110f8a0f1e9749ae7dd2527ec3cfd7154a2 100644 (file)
@@ -1,9 +1,32 @@
 /* createSubInfo.c  */
 
-#include <jni.h>
-#include "orte.h"
-#include "jorte/4all.h"
-#include "jorte/jorte_protos_api.h"
+/**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
+  * @author dedication to Kj
+  * @version 0.1
+  *
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  * GNU General Public License for more details.
+  *
+  */
+
+#include "jorte/jorte.h"
 
 jobject createSubInfo(JNIEnv *env, const ORTESubInfo *sinfo)
 {
index fd49c1b1436264c09275f2bc7d3e94c4526cfc74..fcbf8b1ee5a6c2d89e7c8df4a62a37ceb4d7a379 100644 (file)
@@ -7,6 +7,7 @@
   * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
   * @author dedication to Kj
@@ -25,8 +26,7 @@
   *
   */
 
-#include  "jorte/jorte_protos_api.h"
-
+#include  "jorte/jorte.h"
 
 NtpTime getNtpTime(JNIEnv *env, jobject obj)
 {
index f7b8e484e129802156fe0474b482b4f73485d4c5..41a890e4258fd8040181bbe8efd3c6352ffba9c7 100644 (file)
@@ -1,5 +1,30 @@
-#include <stdlib.h>
-#include <jni.h>
+/**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
+  * @author dedication to Kj
+  * @version 0.1
+  *
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  * GNU General Public License for more details.
+  *
+  */
+
+#include "jorte/jorte.h"
 
 static jmethodID findClassM;
 static jmethodID findLoadedClassM;
index 2816e33b5472dbc89ab6396278c7e73ba14bed64..2a9ea253136917de9958ac48fdb0f2f3b8d5e3f4 100644 (file)
@@ -1,10 +1,32 @@
 /* setRecvInfo.c  */
 
-#include <jni.h>
-#include <inttypes.h>
-#include "orte.h"
-#include "jorte/4all.h"
-#include "jorte/jorte_protos_api.h"
+/**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
+  * @author dedication to Kj
+  * @version 0.1
+  *
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  * GNU General Public License for more details.
+  *
+  */
+
+#include "jorte/jorte.h"
 
 int setRecvInfo(JNIEnv *env, const ORTERecvInfo *rinfo, jobject obj)
 {
index 455d58b1370eedba0b9d685e12588ba0a062be76..bc4658c8831c1ab1c741b87eaabaf80eb32cebd2 100644 (file)
@@ -1,8 +1,32 @@
 /* setTopic.c */
 
-#include <jni.h>
-#include "jorte/4all.h"
-#include "jorte/jorte_protos_api.h"
+/**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
+  * @author dedication to Kj
+  * @version 0.1
+  *
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  * GNU General Public License for more details.
+  *
+  */
+
+#include "jorte/jorte.h"
 
 int setTopic(JNIEnv *env, jclass cls, jobject obj, const char *topic)
 {
index 436f0e8eb8fea8d0cd31246fe2166f812de24352..7ff3b055bbae82fc7e39955535dc458aa3b1a47f 100644 (file)
@@ -1,8 +1,32 @@
 /* setType.c */
 
-#include <jni.h>
-#include "jorte/4all.h"
-#include "jorte/jorte_protos_api.h"
+/**
+  * This code provides conversion between JAVA a C environments.
+  * The C functions are calling here and results are send to JAVA
+  * native functions. It uses the header pregenerated by JAVA
+  * (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 Project ORTE - OCERA Real Time Ethernet (www.ocera.org)
+  * @author dedication to Kj
+  * @version 0.1
+  *
+  *
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+  * the Free Software Foundation; either version 2 of the License, or
+  * (at your option) any later version.
+  *
+  * This program is distributed in the hope that it will be useful,
+  * but WITHOUT ANY WARRANTY; without even the implied warranty of
+  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+  * GNU General Public License for more details.
+  *
+  */
+
+#include "jorte/jorte.h"
 
 int setType(JNIEnv *env, jclass cls, jobject obj, const char *typeName)
 {