4 * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Sungsik Jang <sungsik.jang@samsung.com>, Dongwook Lee <dwmax.lee@samsung.com>
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 #ifndef __WIFI_DIRECT_CLIENT_PROXY_H_
23 #define __WIFI_DIRECT_CLIENT_PROXY_H_
25 /*****************************************************************************
27 *****************************************************************************/
29 /*****************************************************************************
31 *****************************************************************************/
34 /*****************************************************************************
35 * Wi-Fi Manager headers
36 *****************************************************************************/
37 #include "wifi-direct.h"
39 /*****************************************************************************
41 *****************************************************************************/
46 #define LOG_TAG "WIFI_DIRECT"
48 #define WDC_LOGV(format, args...) LOGV(format, ##args)
49 #define WDC_LOGD(format, args...) LOGD(format, ##args)
50 #define WDC_LOGI(format, args...) LOGI(format, ##args)
51 #define WDC_LOGW(format, args...) LOGW(format, ##args)
52 #define WDC_LOGE(format, args...) LOGE(format, ##args)
53 #define WDC_LOGF(format, args...) LOGF(format, ##args)
55 #define __WDC_LOG_FUNC_START__ LOGV("Enter")
56 #define __WDC_LOG_FUNC_END__ LOGV("Quit")
58 #else /** _DLOG_UTIL */
60 #define WDC_LOGV(format, args...) \
61 printf("[V/WIFI_DIRECT] %s: %s()(%4d)> "format, __FILE__, __FUNCTION__, __LINE__, ##args)
62 #define WDC_LOGD(format, args...) \
63 printf("[D/WIFI_DIRECT] %s: %s()(%4d)> "format, __FILE__, __FUNCTION__, __LINE__, ##args)
64 #define WDC_LOGI(format, args...) \
65 printf("[I/WIFI_DIRECT] %s: %s()(%4d)> "format, __FILE__, __FUNCTION__, __LINE__, ##args)
66 #define WDC_LOGW(format, args...) \
67 printf("[W/WIFI_DIRECT] %s: %s()(%4d)> "format, __FILE__, __FUNCTION__, __LINE__, ##args)
68 #define WDC_LOGE(format, args...) \
69 printf("[E/WIFI_DIRECT] %s: %s()(%4d)> "format, __FILE__, __FUNCTION__, __LINE__, ##args)
70 #define WDC_LOGF(format, args...) \
71 printf("[F/WIFI_DIRECT] %s: %s()(%4d)> "format, __FILE__, __FUNCTION__, __LINE__, ##args)
73 #define __WDC_LOG_FUNC_START__ \
74 printf("[V/WIFI_DIRECT] %s: %s()(%4d)> Start", __FILE__, __FUNCTION__, __LINE__)
75 #define __WDC_LOG_FUNC_END__ \
76 printf("[V/WIFI_DIRECT] %s: %s()(%4d)> End", __FILE__, __FUNCTION__, __LINE__)
78 #endif /** _DLOG_UTIL */
88 wifi_direct_device_state_changed_cb activation_cb;
89 wifi_direct_discovery_state_chagned_cb discover_cb;
90 wifi_direct_connection_state_changed_cb connection_cb;
91 wifi_direct_client_ip_address_assigned_cb ip_assigned_cb;
92 void *user_data_for_cb_activation;
93 void *user_data_for_cb_discover;
94 void *user_data_for_cb_connection;
95 void *user_data_for_cb_ip_assigned;
97 } wifi_direct_client_info_s;
99 extern char *wfd_debug_print(char *file, int line, char *format, ...);
101 #endif /** __WIFI_DIRECT_CLIENT_PROXY_H_ */