added CA interface to monitoring network status for android ble.
[platform/upstream/iotivity.git] / android / android_api / base / jni / JniCaInterface.h
1 /*
2 * //******************************************************************
3 * //
4 * // Copyright 2015 Intel Corporation.
5 * //
6 * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 * //
8 * // Licensed under the Apache License, Version 2.0 (the "License");
9 * // you may not use this file except in compliance with the License.
10 * // You may obtain a copy of the License at
11 * //
12 * //      http://www.apache.org/licenses/LICENSE-2.0
13 * //
14 * // Unless required by applicable law or agreed to in writing, software
15 * // distributed under the License is distributed on an "AS IS" BASIS,
16 * // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * // See the License for the specific language governing permissions and
18 * // limitations under the License.
19 * //
20 * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
21 */
22 #include <jni.h>
23 // THIS FILE IS SUBJECT TO CHANGE DUE TO THE ONGOING DEVELOPMENT OF THE CA FOR ANDROID
24 // DO NOT REVIEW THIS FILE
25
26 /* Header for class org_iotivity_ca_CaInterface */
27
28 #ifndef _Included_org_iotivity_ca_CaInterface
29 #define _Included_org_iotivity_ca_CaInterface
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34     void CAManagerConnectionStateChangedCB(CATransportAdapter_t adapter,
35                                            const char *remote_address, bool connected);
36
37     void CAManagerAdapterStateChangedCB(CATransportAdapter_t adapter, bool enabled);
38
39     /*
40      * Class:     Java_org_iotivity_ca_CaInterface_caManagerInitialize
41      * Method:    caManagerInitialize
42      * Signature: (Landroid/content/Context;)V
43      */
44     JNIEXPORT void JNICALL
45     Java_org_iotivity_ca_CaInterface_caManagerInitialize(JNIEnv *env, jclass clazz,
46                                                          jobject context, jobject listener);
47
48     /*
49      * Class:     Java_org_iotivity_ca_CaInterface_caManagerTerminate
50      * Method:    caManagerTerminate
51      * Signature: ()V
52      */
53     JNIEXPORT void JNICALL
54     Java_org_iotivity_ca_CaInterface_caManagerTerminate(JNIEnv *env, jclass clazz);
55
56     /*
57      * Class:     Java_org_iotivity_ca_CaInterface_caManagerSetAutoConnectionDeviceInfo
58      * Method:    caManagerSetAutoConnectionDeviceInfo
59      * Signature: (Ljava/lang/String;)V
60      */
61     JNIEXPORT void JNICALL
62     Java_org_iotivity_ca_CaInterface_caManagerSetAutoConnectionDeviceInfo(JNIEnv *env,
63                                                                           jclass clazz,
64                                                                           jstring jaddress);
65
66     /*
67      * Class:     Java_org_iotivity_ca_CaInterface_caManagerUnsetAutoConnectionDeviceInfo
68      * Method:    caManagerUnsetAutoConnectionDeviceInfo
69      * Signature: (Ljava/lang/String;)V
70      */
71     JNIEXPORT void JNICALL
72     Java_org_iotivity_ca_CaInterface_caManagerUnsetAutoConnectionDeviceInfo(JNIEnv *env,
73                                                                             jclass clazz,
74                                                                             jstring jaddress);
75
76     /*
77      * Class:     org_iotivity_ca_CaInterface_Initialize
78      * Method:    Initialize
79      * Signature: (Landroid/content/Context;)V
80      */
81     JNIEXPORT void JNICALL Java_org_iotivity_ca_CaInterface_initialize
82         (JNIEnv *, jclass, jobject, jobject);
83
84 #ifdef __cplusplus
85 }
86 #endif
87 #endif