Imported Upstream version 1.1.0
[platform/upstream/iotivity.git] / service / easy-setup / enrollee / tizen / wifi / softapnative.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
22
23 #ifndef EASYSETUP_ENROLLEE_SOFTAP_H__
24 #define EASYSETUP_ENROLLEE_SOFTAP_H__
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif // __cplusplus
29
30
31 #define SOFTAP_SUCCESS  1
32 #define SOFTAP_FAILED   0
33
34 /**
35  * @file
36  *
37  * This file contains the API declaration for creating & configuration for SoftAP
38  */
39
40 //This callback signagure may get changed as per the native implementation.
41 typedef void (*SoftAPCallbackNative)(int result, const char *ip, const char* mac_addr,
42                                                                         const char*device_name);
43 /**
44  * This API creats the Soft AP using the platform specific native system calls.
45  * @Note This API to be implemented by the OEM if Enrollee device SoC supports SoftAP
46  *
47  * @param networkType           NetworkType on which OnBoarding has to be performed.
48  * @param ssid                  SSID of the target SoftAP network to which the Enrollee is
49  *                              connecting.
50  * @param passwd                Password of the target SoftAP network to which the Enrollee is
51  *                              connecting
52  * @param SoftAPCallbackNative  EventCallback for for updating the Enrollee OnBoarding status
53  *                              result to the application
54  */
55
56 void ESCreateSoftapNative(const char * ssid, const char* passwd, SoftAPCallbackNative cb);
57
58 #ifdef __cplusplus
59 }
60 #endif // __cplusplus
61
62
63 #endif /* EASYSETUP_ENROLLEE_SOFTAP_H__ */
64
65
66