2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.tizenopensource.org/license
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #include <Elementary.h>
20 #define IV_LOG_OUTPUT_DLOG
22 #ifdef IV_LOG_OUTPUT_DLOG
27 #define LOG_TAG "IMAGE-VIEWER"
29 #define iv_debug_msg(type, fmt, arg...) LOGD("[%s : %05d]" fmt "\n", __func__, __LINE__, ##arg)
31 #else /*IV_LOG_OUTPUT_DLOG*/
33 #define iv_debug_msg(type, fmt,arg...) fprintf(stdout, "[%s: %d] [%s]" fmt "\n", __FILE__, __LINE__, __FUNCTION__, ##arg)
38 # define iv_ret_if(expr) do { \
40 fprintf(stderr, "(%s) -> %s:%d() return\n", #expr, __func__, __LINE__); \
45 # define iv_retv_if(expr, val) do { \
47 fprintf(stderr, "(%s) -> %s():%d return\n", #expr, __func__, __LINE__); \
52 typedef struct appdata_iv
58 Evas_Object* win_main;
61 struct ui_gadget *iv_ug;
64 const char* iv_param_path;
65 const char* sort_type;
66 const char* view_mode;
67 const char* media_type;