Shared Image Cache Server

Provides client-server infrastructure to share bitmaps across multiple processes, saving data and processing power. More...

Data Structures

struct  _Evas_Cserve_Stats
 Statistics about server that shares cached bitmaps. More...
struct  _Evas_Cserve_Image_Cache
 Cache of images shared by server. More...
struct  _Evas_Cserve_Image
 An image shared by the server. More...
struct  _Evas_Cserve_Config
 Configuration that controls the server that shares cached bitmaps. More...

Functions

EAPI Eina_Bool evas_cserve_want_get (void)
 Retrieves if the system wants to share bitmaps using the server.
EAPI Eina_Bool evas_cserve_connected_get (void)
 Retrieves if the system is connected to the server used to shae bitmaps.
EAPI Eina_Bool evas_cserve_stats_get (Evas_Cserve_Stats *stats)
 Retrieves if the system wants to share bitmaps using the server.
EAPI Eina_Bool evas_cserve_config_get (Evas_Cserve_Config *config)
 Retrieves the current configuration of the server.
EAPI Eina_Bool evas_cserve_config_set (const Evas_Cserve_Config *config)
 Changes the configuration of the server.
EAPI void evas_cserve_disconnect (void)
 Force system to disconnect from cache server.

Detailed Description

Provides client-server infrastructure to share bitmaps across multiple processes, saving data and processing power.


Function Documentation

EAPI Eina_Bool evas_cserve_config_get ( Evas_Cserve_Config config  ) 

Retrieves the current configuration of the server.

Parameters:
config where to store current server configuration.
Returns:
EINA_TRUE if config were filled with data, EINA_FALSE otherwise and config is untouched.
EAPI Eina_Bool evas_cserve_config_set ( const Evas_Cserve_Config config  ) 

Changes the configuration of the server.

Parameters:
config where to store current server configuration.
Returns:
EINA_TRUE if config were successfully applied, EINA_FALSE otherwise.
EAPI Eina_Bool evas_cserve_connected_get ( void   ) 

Retrieves if the system is connected to the server used to shae bitmaps.

Returns:
EINA_TRUE if connected, EINA_FALSE otherwise.
EAPI Eina_Bool evas_cserve_stats_get ( Evas_Cserve_Stats stats  ) 

Retrieves if the system wants to share bitmaps using the server.

Parameters:
stats pointer to structure to fill with statistics about cache server.
Returns:
EINA_TRUE if stats were filled with data, EINA_FALSE otherwise and stats is untouched.

References _Evas_Cserve_Stats::saved_memory, _Evas_Cserve_Stats::saved_memory_peak, _Evas_Cserve_Stats::saved_time_image_data_load, _Evas_Cserve_Stats::saved_time_image_header_load, _Evas_Cserve_Stats::wasted_memory, and _Evas_Cserve_Stats::wasted_memory_peak.

EAPI Eina_Bool evas_cserve_want_get ( void   ) 

Retrieves if the system wants to share bitmaps using the server.

Returns:
EINA_TRUE if wants, EINA_FALSE otherwise.