Add a new data key, APP_CONTROL_DATA_LOCATION
[platform/core/api/application.git] / src / app_resource.c
1 /*
2  * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17
18 #include <appcore-common.h>
19 #include <appcore-efl.h>
20 #include <aul.h>
21 #include <Elementary.h>
22
23 #include "app_extension.h"
24
25 #ifdef LOG_TAG
26 #undef LOG_TAG
27 #endif
28
29 #define LOG_TAG "CAPI_APPFW_APPLICATION"
30
31 void *app_get_preinitialized_window(const char *win_name)
32 {
33         if (elm_win_precreated_object_get() == NULL)
34                 return NULL;
35
36         appcore_set_preinit_window_name(win_name);
37         return elm_win_precreated_object_get();
38 }
39
40 void *app_get_preinitialized_background(void)
41 {
42         return elm_bg_precreated_object_get();
43 }
44
45 void *app_get_preinitialized_conformant(void)
46 {
47         return elm_conformant_precreated_object_get();
48 }
49