1 //******************************************************************
3 // Copyright 2015 Samsung Electronics All Rights Reserved.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://www.apache.org/licenses/LICENSE-2.0
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
22 #ifndef RESOURCEHOSTING_JNI_H_
23 #define RESOURCEHOSTING_JNI_H_
32 #define JNI_CURRENT_VERSION JNI_VERSION_1_6
34 #define OCSTACK_ERROR 255
35 #define HOSTING_THREAD_ERROR -2
42 * Class: org_iotivity_service_resourcehosting_ResourceHosting
43 * Method: OICCoordinatorStart
46 JNIEXPORT jint JNICALL Java_org_iotivity_ResourceHosting_ResourceHosting_OICCoordinatorStart
49 * @Class: org_iotivity_service_resourcehosting_ResourceHosting
50 * @Method: OICCoordinatorStop
54 JNIEXPORT jint JNICALL Java_org_iotivity_ResourceHosting_ResourceHosting_OICCoordinatorStop
57 * Class: org_iotivity_service_resourcehosting_ResourceHosting
58 * Method: ResourceHostingInit
61 JNIEXPORT jint JNICALL Java_org_iotivity_ResourceHosting_ResourceHosting_ResourceHostingInit
62 (JNIEnv *env, jobject obj,jstring j_addr);
64 * Class: org_iotivity_service_resourcehosting_ResourceHosting
65 * Method: ResourceHostingTerminate
66 * Signature: (Ljava/lang/String;)V
68 JNIEXPORT jint JNICALL Java_org_iotivity_ResourceHosting_ResourceHosting_ResourceHostingTerminate
69 (JNIEnv *env, jobject obj);
75 #endif /* RESOURCEHOSTING_JNI_H_ */