Imported Upstream version 1.0.0
[platform/upstream/iotivity.git] / service / resource-container / android / resource-container / src / main / jni / JniRcsResourceContainer.h
1 /******************************************************************
2  *
3  * Copyright 2015 Samsung Electronics All Rights Reserved.
4  *
5  *
6  *
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  ******************************************************************/
20
21 /** @file   jni_re_rcs_resource_container.h
22  *
23  *   @brief  This file contains the declaration of RCSResourceContainer
24  *    APIs for JNI implementation
25  */
26
27 #ifndef JNI_RCS_RESOURCE_CONTAINER_H_
28 #define JNI_RCS_RESOURCE_CONTAINER_H_
29
30 #include <jni.h>
31
32 class JNIEnvWrapper;
33
34 void initRCSResourceContainer(JNIEnvWrapper *);
35 void clearRCSResourceContainer(JNIEnvWrapper *);
36
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40
41 JNIEXPORT void JNICALL
42 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeStartContainer
43 (JNIEnv *, jobject, jstring configFile);
44
45 JNIEXPORT void JNICALL
46 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeStopContainer
47 (JNIEnv *, jobject);
48
49 JNIEXPORT void JNICALL
50 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeAddBundle
51 (JNIEnv *, jobject, jstring bundleId, jstring bundleUri, jstring bundlePath, jstring activator,
52  jobject params);
53
54 JNIEXPORT jobject JNICALL
55 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeListBundles
56 (JNIEnv *, jobject);
57
58 JNIEXPORT void JNICALL
59 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeRemoveBundle
60 (JNIEnv *, jobject, jstring bundleId);
61
62 JNIEXPORT void JNICALL
63 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeStartBundle
64 (JNIEnv *, jobject, jstring bundleId);
65
66 JNIEXPORT void JNICALL
67 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeStopBundle
68 (JNIEnv *, jobject, jstring bundleId);
69
70 JNIEXPORT void JNICALL
71 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeAddResourceConfig
72 (JNIEnv *, jobject, jstring bundleId, jstring resourceUri, jobject params);
73
74 JNIEXPORT void JNICALL
75 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeRemoveResourceConfig
76 (JNIEnv *, jobject, jstring bundleId, jstring resourceUri);
77
78 JNIEXPORT jobject JNICALL
79 Java_org_iotivity_service_resourcecontainer_RcsResourceContainer_nativeListBundleResources
80 (JNIEnv *, jobject, jstring bundleId);
81
82 #ifdef __cplusplus
83 }
84 #endif
85 #endif //JNI_RCS_RESOURCE_CONTAINER_H_