Evas has an (optional) module which provides client-server infrastructure to share bitmaps across multiple processes, saving data and processing power. More...
Data Structures | |
| struct | _Evas_Cserve_Stats |
| Statistics about the server that shares cached bitmaps. More... | |
| struct | _Evas_Cserve_Image_Cache |
| A handle of a cache of images shared by a server. More... | |
| struct | _Evas_Cserve_Image |
| A handle to an image shared by a server. More... | |
| struct | _Evas_Cserve_Config |
| Configuration that controls the server that shares cached bitmaps. More... | |
Functions | |
| Eina_Bool | evas_cserve_want_get (void) |
| Retrieves if the system wants to share bitmaps using the server. More... | |
| Eina_Bool | evas_cserve_connected_get (void) |
| Retrieves if the system is connected to the server used to share bitmaps. More... | |
| Eina_Bool | evas_cserve_stats_get (Evas_Cserve_Stats *stats) |
| Retrieves statistics from a running bitmap sharing server. More... | |
| Eina_Bool | evas_cserve_config_get (Evas_Cserve_Config *config) |
| Retrieves the current configuration of the Evas image caching server. More... | |
| Eina_Bool | evas_cserve_config_set (const Evas_Cserve_Config *config) |
| Changes the configurations of the Evas image caching server. More... | |
| void | evas_cserve_disconnect (void) |
| Force the system to disconnect from the bitmap caching server. | |
Detailed Description
Evas has an (optional) module which provides client-server infrastructure to share bitmaps across multiple processes, saving data and processing power.
Be warned that it doesn't work when threaded image preloading is enabled for Evas, though.
Function Documentation
| Eina_Bool evas_cserve_config_get | ( | Evas_Cserve_Config * | config) |
Retrieves the current configuration of the Evas image caching server.
- Parameters
-
config where to store current image caching server's configuration.
- Returns
EINA_TRUEifconfigwas filled with data,EINA_FALSEotherwise (whenconfigis untouched)
The fields of config will be altered to reflect the current configuration's values.
- See Also
- evas_cserve_config_set()
| Eina_Bool evas_cserve_config_set | ( | const Evas_Cserve_Config * | config) |
Changes the configurations of the Evas image caching server.
- Parameters
-
config A bitmap cache configuration handle with fields set to desired configuration values.
- Returns
EINA_TRUEifconfigwas successfully applied,EINA_FALSEotherwise.
- See Also
- evas_cserve_config_get()
| Eina_Bool evas_cserve_connected_get | ( | void | ) |
Retrieves if the system is connected to the server used to share bitmaps.
- Returns
EINA_TRUEif it's connected,EINA_FALSEotherwise.
| Eina_Bool evas_cserve_stats_get | ( | Evas_Cserve_Stats * | stats) |
Retrieves statistics from a running bitmap sharing server.
- Parameters
-
stats pointer to structure to fill with statistics about the bitmap cache server.
- Returns
EINA_TRUEifstatswere filled with data,EINA_FALSEotherwise (whenstatsis 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.
| Eina_Bool evas_cserve_want_get | ( | void | ) |
Retrieves if the system wants to share bitmaps using the server.
- Returns
EINA_TRUEif it wants,EINA_FALSEotherwise.
