* (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
// setting object's fields
/////////////////////////////////////////////////
// set topic
- if(!setTopic(env,cls_sp,obj_sp,subs_prop->topic))
+ if(!setTopic(env,cls_sp,obj_sp,(const char *)subs_prop->topic))
{
#ifdef TEST_STAGE
printf(":!c: setTopic() failed! \n");
}
/////////////////////////////////////////////////
// set type
- if(!setType(env,cls_sp,obj_sp,subs_prop->typeName))
+ if(!setType(env,cls_sp,obj_sp,(const char *)subs_prop->typeName))
{
#ifdef TEST_STAGE
printf(":!c: setType() failed! \n");