EWebKit  1.0
Typedefs | Functions
ewk_security_origin.h File Reference

Security Origin API. More...

#include <Eina.h>

Go to the source code of this file.

Typedefs

typedef struct EwkObject Ewk_Security_Origin
 

Functions

EAPI const char * ewk_security_origin_host_get (const Ewk_Security_Origin *o)
 
EAPI uint32_t ewk_security_origin_port_get (const Ewk_Security_Origin *o)
 
EAPI const char * ewk_security_origin_protocol_get (const Ewk_Security_Origin *o)
 

Detailed Description

Security Origin API.

Security Origin is the mechanism that defines the access limits of a website. Based on information such as domain, protocol and port, you can or cannot grant authorization for accessing data and performing certain tasks.

Typedef Documentation

Declare Ewk_Security_Origin as Ewk_Object.

See also
Ewk_Object

Function Documentation

EAPI const char* ewk_security_origin_host_get ( const Ewk_Security_Origin o)

Returns the host of the security origin.

Parameters
osecurity origin object
Returns
the host domain pointer or NULL if there is not a host scheme. This pointer is guaranteed to be eina_stringshare, so whenever possible save yourself from cpu cycles and use eina_stringshare_ref() instead of eina_stringshare_add() or strdup().
EAPI uint32_t ewk_security_origin_port_get ( const Ewk_Security_Origin o)

Returns the port of the security origin.

Parameters
osecurity origin object
Returns
the port number or 0 if there is not a proper security origin scheme
EAPI const char* ewk_security_origin_protocol_get ( const Ewk_Security_Origin o)

Returns the protocol of the security origin.

Parameters
osecurity origin object
Returns
the protocol scheme pointer or NULL if there is not a protocol scheme. This pointer is guaranteed to be eina_stringshare, so whenever possible save yourself from cpu cycles and use eina_stringshare_ref() instead of eina_stringshare_add() or strdup().