diff options
Diffstat (limited to 'ugapp-wifidirect/include')
-rwxr-xr-x | ugapp-wifidirect/include/wfd-ugapp-util.h | 78 | ||||
-rwxr-xr-x | ugapp-wifidirect/include/wfd-ugapp.h | 52 |
2 files changed, 130 insertions, 0 deletions
diff --git a/ugapp-wifidirect/include/wfd-ugapp-util.h b/ugapp-wifidirect/include/wfd-ugapp-util.h new file mode 100755 index 0000000..7139e9a --- /dev/null +++ b/ugapp-wifidirect/include/wfd-ugapp-util.h @@ -0,0 +1,78 @@ +/* +* WiFi-Direct UG +* +* Copyright 2012 Samsung Electronics Co., Ltd + +* Licensed under the Flora License, Version 1.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at + +* http://www.tizenopensource.org/license + +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*/ + +/** + * This file declares wifi direct application util functions. + * + * @file wfd-app-util.h + * @author Sungsik Jang (sungsik.jang@samsung.com) + * @version 0.1 + */ + +#ifndef __WFD_APP_UTIL_H__ +#define __WFD_APP_UTIL_H__ + +#define MAC2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5] +#define MACSTR "%02x:%02x:%02x:%02x:%02x:%02x" + +#ifdef USE_DLOG +#include <dlog.h> + +#undef LOG_TAG +#define LOG_TAG "WIFI_DIRECT_UGAPP" + +#define WDUA_LOGV(format, args...) LOGV(format, ##args) +#define WDUA_LOGD(format, args...) LOGD(format, ##args) +#define WDUA_LOGI(format, args...) LOGI(format, ##args) +#define WDUA_LOGW(format, args...) LOGW(format, ##args) +#define WDUA_LOGE(format, args...) LOGE(format, ##args) +#define WDUA_LOGF(format, args...) LOGF(format, ##args) + +#define __WDUA_LOG_FUNC_ENTER__ LOGV("Enter") +#define __WDUA_LOG_FUNC_EXIT__ LOGV("Quit") + +#define assertm_if(expr, fmt, args...) do { \ + if (expr) { \ + WDUA_LOGF(" ##(%s) -> assert!!## "fmt, #expr, ##args); \ + exit(1); \ + } \ +} while (0) + +#else /** _DLOG_UTIL */ +#define WDUA_LOGV(format, args...) \ + printf("[V/WIFI_DIRECT_UGAPP] %s: %s()(%4d)> "format, __FILE__, __FUNCTION__, __LINE__, ##args) +#define WDUA_LOGD(format, args...) \ + printf("[D/WIFI_DIRECT_UGAPP] %s: %s()(%4d)> "format, __FILE__, __FUNCTION__, __LINE__, ##args) +#define WDUA_LOGI(format, args...) \ + printf("[I/WIFI_DIRECT_UGAPP] %s: %s()(%4d)> "format, __FILE__, __FUNCTION__, __LINE__, ##args) +#define WDUA_LOGW(format, args...) \ + printf("[W/WIFI_DIRECT_UGAPP] %s: %s()(%4d)> "format, __FILE__, __FUNCTION__, __LINE__, ##args) +#define WDUA_LOGE(format, args...) \ + printf("[E/WIFI_DIRECT_UGAPP] %s: %s()(%4d)> "format, __FILE__, __FUNCTION__, __LINE__, ##args) +#define WDUA_LOGF(format, args...) \ + printf("[F/WIFI_DIRECT_UGAPP] %s: %s()(%4d)> "format, __FILE__, __FUNCTION__, __LINE__, ##args) + +#define __WDUA_LOG_FUNC_ENTER__\ + printf("[V/WIFI_DIRECT_UGAPP] %s: %s()(%4d)> Enter", __FILE__, __FUNCTION__, __LINE__) +#define __WDUA_LOG_FUNC_EXIT__ \ + printf("[V/WIFI_DIRECT_UGAPP] %s: %s()(%4d)> Exit", __FILE__, __FUNCTION__, __LINE__) + +#endif /** _DLOG_UTIL */ + +#endif /* __WFD_APP_UTIL_H__ */ diff --git a/ugapp-wifidirect/include/wfd-ugapp.h b/ugapp-wifidirect/include/wfd-ugapp.h new file mode 100755 index 0000000..61b7b31 --- /dev/null +++ b/ugapp-wifidirect/include/wfd-ugapp.h @@ -0,0 +1,52 @@ +/* +* WiFi-Direct UG +* +* Copyright 2012 Samsung Electronics Co., Ltd + +* Licensed under the Flora License, Version 1.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at + +* http://www.tizenopensource.org/license + +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*/ + +/** + * This file declares wifi direct application functions. + * + * @file wfd-app.h + * @author Sungsik Jang (sungsik.jang@samsung.com) + * @version 0.1 + */ + + +#ifndef __WFD_UG_APP_MAIN_H__ +#define __WFD_UG_APP_MAIN_H__ + +#include <appcore-efl.h> +#include <Ecore_X.h> +#include <Elementary.h> +#include <appsvc.h> +#include <aul.h> + + +#define PACKAGE "org.tizen.wifi-direct-ugapp" +#define LOCALEDIR "/usr/apps/org.tizen.wifi-direct-ugapp" +#define DESKTOP_ICON "/usr/apps/org.tizen.setting/res/icons/A01-1_icon_Wi-Fi_direct.png" + +typedef struct { + Evas_Object *win; + Evas_Object *bg; + Evas_Object *conform; + Evas_Object *top_layout; + Evas_Object *icon; + ui_gadget_h wifi_direct_ug; +} wfd_appdata_t; + +#endif /* __WFD_UG_APP_MAIN_H__ */ |