2 * Copyright (c) 2017 Samsung Electronics Co., Ltd. All rights reserved.
4 * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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.
19 #define LOG_TAG "APP_CORE_MULTIWINDOW_BASE"
26 #include "appcore_base.h"
27 #include "appcore_multiwindow_base.h"
30 # define EXPORT_API __attribute__ ((visibility("default")))
34 # define _ERR(fmt, arg...) \
35 do { fprintf(stderr, "appcore: "fmt"\n", ##arg); } while (0)
37 # define _INFO(fmt, arg...) \
38 do { fprintf(stdout, fmt"\n", ##arg); } while (0)
40 # define _DBG(fmt, arg...) \
42 if (getenv("APPCORE_DEBUG")) { \
43 fprintf(stdout, fmt"\n", ##arg); \
47 # define _ERR(fmt, arg...) \
49 fprintf(stderr, "appcore: "fmt"\n", ##arg); \
52 # define _INFO(...) LOGI(__VA_ARGS__)
53 # define _DBG(...) LOGD(__VA_ARGS__)
56 typedef struct _appcore_multiwindow_base_context {
57 appcore_multiwindow_base_ops ops;
64 Ecore_Event_Handler *hshow;
65 Ecore_Event_Handler *hhide;
66 Ecore_Event_Handler *hvchange;
67 Ecore_Event_Handler *hlower;
68 Ecore_Event_Handler *hpvchange;
69 } appcore_multiwindow_base_context;
71 typedef struct _appcore_multiwindow_base_instance {
72 unsigned int window_id;
75 appcore_multiwindow_base_class *shell;
77 } appcore_multiwindow_base_instance;