EWebKit  1.0
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

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.
1 static void
2 _origins_get_cb(Eina_List* origins, data)
3 {
4  // ...
5 
6  void *origin;
7  EINA_LIST_FREE(origins, origin)
8  ewk_object_unref((Ewk_Object*)origin);
9 }

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