1 /******************************************************************
3 * Copyright 2015 Samsung Electronics All Rights Reserved.
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 ******************************************************************/
21 /** @file jni_re_rcs_resource_container.h
23 * @brief This file contains the declaration of RCSResourceContainer
24 * APIs for JNI implementation
27 #ifndef JNI_RCS_RESOURCE_CONTAINER_H_
28 #define JNI_RCS_RESOURCE_CONTAINER_H_
34 void initRCSResourceContainer(JNIEnvWrapper *);
35 void clearRCSResourceContainer(JNIEnvWrapper *);
41 JNIEXPORT void JNICALL
42 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeStartContainer
43 (JNIEnv *, jobject, jstring configFile);
45 JNIEXPORT void JNICALL
46 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeStopContainer
49 JNIEXPORT void JNICALL
50 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeAddBundle
51 (JNIEnv *, jobject, jstring bundleId, jstring bundleUri, jstring bundlePath, jstring activator,
54 JNIEXPORT jobject JNICALL
55 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeListBundles
58 JNIEXPORT void JNICALL
59 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeRemoveBundle
60 (JNIEnv *, jobject, jstring bundleId);
62 JNIEXPORT void JNICALL
63 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeStartBundle
64 (JNIEnv *, jobject, jstring bundleId);
66 JNIEXPORT void JNICALL
67 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeStopBundle
68 (JNIEnv *, jobject, jstring bundleId);
70 JNIEXPORT void JNICALL
71 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeAddResourceConfig
72 (JNIEnv *, jobject, jstring bundleId, jstring resourceUri, jobject params);
74 JNIEXPORT void JNICALL
75 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeRemoveResourceConfig
76 (JNIEnv *, jobject, jstring bundleId, jstring resourceUri);
78 JNIEXPORT jobject JNICALL
79 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeListBundleResources
80 (JNIEnv *, jobject, jstring bundleId);
85 #endif //JNI_RCS_RESOURCE_CONTAINER_H_