Fix bug about setting event handler
[platform/core/appfw/app-core.git] / include / appcore-efl.h
old mode 100755 (executable)
new mode 100644 (file)
index a56fa25..f3ab3b6
  * @{
  */
 
+#include <stdbool.h>
 #include <appcore-common.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
+int appcore_efl_init(const char *name, int *argc, char ***argv,
+                    struct appcore_ops *ops);
+
+void appcore_efl_fini(void);
+
+
 /**
  * @par Description:
  * This is a main function for EFL application on SLP platform. \n
@@ -60,7 +67,7 @@ extern "C" {
  * To develop an application using EFL on this platform.
  *
  * @par Method of function operation:
- * Initialize the EFL, internationalization, and notifications 
+ * Initialize the EFL, internationalization, and notifications
  * for receiving system events such as rotation, low battery, etc.\n
  * And, start an ecore mainloop.
  *
@@ -119,6 +126,46 @@ int main(int argc, char *argv[])
 int appcore_efl_main(const char *name, int *argc, char ***argv,
                     struct appcore_ops *ops);
 
+/**
+ * @par Description:
+ * This API sets system resource reclaiming.
+ *
+ * @par Purpose:
+ * When this is not enabled, the application doesn't reclaim system resource.
+ *
+ * @param[in] enable Application name
+ *
+ * @return 0 on success, -1 on error (<I>errno</I> set)
+ *
+ *
+ * @pre None.
+ * @post None.
+ * @see None.
+ * @remarks None.
+ *
+ * @par Sample code:
+ * @code
+#include <appcore-efl.h>
+
+int _create(void *data)
+{
+       int r;
+
+       ...
+       r = appcore_set_system_resource_reclaiming(FALSE);
+       if (r) {
+               // add exception handling
+               perror("appcore_set_system_resource_reclaiming");
+       }
+       ...
+}
+ * @endcode
+ *
+ */
+int appcore_set_system_resource_reclaiming(bool enable);
+
+int appcore_set_preinit_window_name(const char *win_name);
+
 #ifdef __cplusplus
 }
 #endif
@@ -128,4 +175,4 @@ int appcore_efl_main(const char *name, int *argc, char ***argv,
 /**
  * @}
  */
-#endif                         /* __APPCORE_ELF_H__ */
+#endif /* __APPCORE_ELF_H__ */