summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/efl/ewk/ewk_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/efl/ewk/ewk_main.cpp')
-rw-r--r--Source/WebKit/efl/ewk/ewk_main.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/Source/WebKit/efl/ewk/ewk_main.cpp b/Source/WebKit/efl/ewk/ewk_main.cpp
index 0c7cc70..9687f10 100644
--- a/Source/WebKit/efl/ewk/ewk_main.cpp
+++ b/Source/WebKit/efl/ewk/ewk_main.cpp
@@ -56,10 +56,25 @@
#endif
static int _ewk_init_count = 0;
+
+/**
+ * \var _ewk_log_dom
+ * @brief the log domain identifier that is used with EINA's macros
+ */
int _ewk_log_dom = -1;
static Eina_Bool _ewk_init_body(void);
+/**
+ * Initializes webkit's instance.
+ *
+ * - initializes components needed by Efl,
+ * - sets web database location,
+ * - sets page cache capacity,
+ * - increases a reference count of webkit's instance.
+ *
+ * @return a reference count of webkit's instance on success or 0 on failure
+ */
int ewk_init(void)
{
if (_ewk_init_count)
@@ -113,6 +128,13 @@ error_eina:
return 0;
}
+/**
+ * Decreases a reference count of webkit's instance, possibly destroying it.
+ *
+ * If the reference count reaches 0 webkit's instance is destroyed.
+ *
+ * @return a reference count of webkit's instance
+ */
int ewk_shutdown(void)
{
_ewk_init_count--;