ewebkit2  1.11.0
Web engine based on WebKit2 for EFL
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Typedefs | Functions
ewk_database_manager.h File Reference

Describes the Ewk Database Manager API. More...

#include <Eina.h>

Go to the source code of this file.

Typedefs

typedef struct EwkDatabaseManager Ewk_Database_Manager
 
typedef void(* Ewk_Database_Origins_Async_Get_Cb )(Eina_List *origins, void *user_data)
 Callback type for use with ewk_database_manager_origins_async_get() More...
 

Functions

EAPI Eina_Bool ewk_database_manager_origins_async_get (const Ewk_Database_Manager *manager, Ewk_Database_Origins_Async_Get_Cb callback, void *user_data)
 

Detailed Description

Describes the Ewk Database Manager API.

Ewk Database Manager manages web database.

Typedef Documentation

typedef struct EwkDatabaseManager Ewk_Database_Manager

Creates a type name for Ewk_Database_Manager.

Ewk_Database_Origins_Async_Get_Cb Ewk_Database_Origins_Async_Get_Cb

Callback type for use with ewk_database_manager_origins_async_get()

Parameters
originsEina_List containing Ewk_Security_Origin elements.
Note
The origins should be freed like below code after use.
static void
_origins_get_cb(Eina_List* origins, data)
{
// ...
void *origin;
EINA_LIST_FREE(origins, origin)
}

Function Documentation

EAPI Eina_Bool ewk_database_manager_origins_async_get ( const Ewk_Database_Manager manager,
Ewk_Database_Origins_Async_Get_Cb  callback,
void *  user_data 
)

Gets list of origins using web database asynchronously.

This function allocates memory for context structure made from callback and user_data.

Parameters
managerEwk_Database_Manager object
callbackcallback to get database origins
user_datauser_data will be passed when result_callback is called, -i.e., user data will be kept until callback is called
Returns
EINA_TRUE on success, EINA_FALSE on failure