Imported Upstream version 0.9.1
[platform/upstream/iotivity.git] / resource / csdk / connectivity / src / ip_adapter / arduino / caipnwmonitor.cpp
1 /******************************************************************
2 *
3 * Copyright 2014 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 caipnwmonitor.cpp
22  * @brief This file is to keep design in sync with other platforms.  Right now there is no
23  *        api for network monitioring in arduino.
24  */
25
26 #include "caipinterface_singlethread.h"
27
28 #define TAG "IPNW"
29
30 CAResult_t CAIPInitializeNetworkMonitor(void)
31 {
32     return CA_STATUS_OK;
33 }
34
35 CAResult_t CAIPStartNetworkMonitor(void)
36 {
37     return CA_STATUS_OK;
38 }
39
40 CAResult_t CAIPGetInterfaceInfo(char **ipAddress, char **interfaceName)
41 {
42     return CA_STATUS_OK;
43 }
44
45 bool CAIPIsConnected(void)
46 {
47     return true;
48 }
49
50 void CAIPSetConnectionStateChangeCallback(CAIPConnectionStateChangeCallback callback)
51 {
52     return;
53 }
54
55 CAResult_t CAIPStopNetworkMonitor(void)
56 {
57     return CA_STATUS_OK;
58 }
59
60 void CAIPTerminateNetworkMonitor(void)
61 {
62     return;
63 }