* limitations under the License.
*/
-#include <aul.h>
+#include <Elementary.h>
+#include "app_extension.h"
+
+static void __set_preinit_window_name(const char *win_name, void *win)
+{
+ const Evas *e;
+ Ecore_Evas *ee;
+
+ if (!win_name || !win)
+ return;
+
+ e = evas_object_evas_get((const Evas_Object *)win);
+ if (e) {
+ ee = ecore_evas_ecore_evas_get(e);
+ if (ee)
+ ecore_evas_name_class_set(ee, win_name, win_name);
+ }
+}
void *app_get_preinitialized_window(const char *win_name)
{
- return NULL;
+ void *win;
+
+ win = elm_win_precreated_object_get();
+ if (win == NULL)
+ return NULL;
+
+ __set_preinit_window_name(win_name, win);
+ elm_win_precreated_object_set(NULL);
+
+ return win;
}
void *app_get_preinitialized_background(void)
{
- return NULL;
+ void *background;
+
+ background = elm_bg_precreated_object_get();
+ if (background == NULL)
+ return NULL;
+
+ elm_bg_precreated_object_set(NULL);
+
+ return background;
}
void *app_get_preinitialized_conformant(void)
{
- return NULL;
+ void *conformant;
+
+ conformant = elm_conformant_precreated_object_get();
+ if (conformant == NULL)
+ return NULL;
+
+ elm_conformant_precreated_object_set(NULL);
+
+ return conformant;
}