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

Describes the Ewk Storage Manager API. More...

#include "ewk_security_origin.h"
#include <Eina.h>

Go to the source code of this file.

Typedefs

typedef struct EwkStorageManager Ewk_Storage_Manager
 
typedef void(* Ewk_Storage_Origins_Async_Get_Cb )(Eina_List *origins, void *user_data)
 Callback type for use with ewk_storage_manager_origins_async_get(). More...
 

Functions

EAPI Eina_Bool ewk_storage_manager_origins_async_get (const Ewk_Storage_Manager *manager, Ewk_Storage_Origins_Async_Get_Cb callback, void *user_data)
 
EAPI Eina_Bool ewk_storage_manager_entries_clear (Ewk_Storage_Manager *manager)
 
EAPI Eina_Bool ewk_storage_manager_entries_for_origin_del (Ewk_Storage_Manager *manager, Ewk_Security_Origin *origin)
 

Detailed Description

Describes the Ewk Storage Manager API.

Ewk Storage Manager manages web storage.

Typedef Documentation

typedef struct EwkStorageManager Ewk_Storage_Manager

Creates a type name for Ewk_Storage_Manager.

Ewk_Storage_Origins_Async_Get_Cb Ewk_Storage_Origins_Async_Get_Cb

Callback type for use with ewk_storage_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_storage_manager_entries_clear ( Ewk_Storage_Manager manager)

Deletes all local storage.

Parameters
managerEwk_Storage_Manager object
Returns
EINA_TRUE on success, EINA_FALSE on failure
EAPI Eina_Bool ewk_storage_manager_entries_for_origin_del ( Ewk_Storage_Manager manager,
Ewk_Security_Origin origin 
)

Deletes local storage for the specified origin.

Parameters
managerEwk_Storage_Manager object
originsecurity origin
Returns
EINA_TRUE on success, EINA_FALSE on failure
EAPI Eina_Bool ewk_storage_manager_origins_async_get ( const Ewk_Storage_Manager manager,
Ewk_Storage_Origins_Async_Get_Cb  callback,
void *  user_data 
)

Gets list of origins that are stored in storage db asynchronously.

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

Parameters
managerEwk_Storage_Manager object
callbackcallback to get storage 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