edje_cache.c File Reference

Macros

#define INIT_EMP(Tp, Sz, Ce)
 
#define INIT_EMP_BOTH(Tp, Sz, Ce)
 

Functions

void _edje_cache_coll_clean (Edje_File *edf)
 
void _edje_cache_coll_flush (Edje_File *edf)
 
void _edje_cache_coll_unref (Edje_File *edf, Edje_Part_Collection *edc)
 
Edje_File_edje_cache_file_coll_open (const char *file, const char *coll, int *error_ret, Edje_Part_Collection **edc_ret, Edje *ed)
 
void _edje_cache_file_unref (Edje_File *edf)
 
void _edje_file_cache_shutdown (void)
 
EAPI void edje_collection_cache_flush (void)
 Clean the collection cache. More...
 
EAPI int edje_collection_cache_get (void)
 Return the collection cache size. More...
 
EAPI void edje_collection_cache_set (int count)
 Set the collection cache size. More...
 
EAPI void edje_file_cache_flush (void)
 Clean the file cache. More...
 
EAPI int edje_file_cache_get (void)
 Return the file cache size. More...
 
EAPI void edje_file_cache_set (int count)
 Set the file cache size. More...
 

Macro Definition Documentation

#define INIT_EMP (   Tp,
  Sz,
  Ce 
)
Value:
buffer = alloca(strlen(ce->entry) + strlen(#Tp) + 2); \
sprintf(buffer, "%s/%s", ce->entry, #Tp); \
Ce->mp.Tp = eina_mempool_add("one_big", buffer, NULL, sizeof (Sz), Ce->count.Tp); \
_emp_##Tp = Ce->mp.Tp;
void * alloca(size_t)
#define INIT_EMP_BOTH (   Tp,
  Sz,
  Ce 
)
Value:
INIT_EMP(Tp, Sz, Ce) \
Ce->mp_rtl.Tp = eina_mempool_add("one_big", buffer, NULL, \
sizeof (Sz), Ce->count.Tp);
#define INIT_EMP(Tp, Sz, Ce)

Function Documentation

void _edje_file_cache_shutdown ( void  )
EAPI void edje_collection_cache_flush ( void  )

Clean the collection cache.

This function cleans the collection cache, but keeps this cache's size to the last value set.

See Also
edje_collection_cache_set()
edje_collection_cache_get()

References _edje_cache_coll_flush().

EAPI int edje_collection_cache_get ( void  )

Return the collection cache size.

Returns
The collection cache size, in edje object units. Default is 16.

This function returns the collection cache size set by edje_collection_cache_set().

See Also
edje_collection_cache_set()
edje_collection_cache_flush()
EAPI void edje_collection_cache_set ( int  count)

Set the collection cache size.

Parameters
countThe collection cache size, in edje object units. Default is 16.

This function sets the collection cache size. Edje keeps this cache in order to prevent duplicates of edje {collection,group,part} entries in memory. The collection cache size can be retrieved with edje_collection_cache_get().

See Also
edje_collection_cache_get()
edje_collection_cache_flush()

References _edje_cache_coll_clean().

EAPI void edje_file_cache_flush ( void  )

Clean the file cache.

This function cleans the file cache entries, but keeps this cache's size to the last value set.

See Also
edje_file_cache_set()
edje_file_cache_get()

Referenced by _edje_file_cache_shutdown().

EAPI int edje_file_cache_get ( void  )

Return the file cache size.

Returns
The file cache size in edje file units. Default is 16.

This function returns the file cache size set by edje_file_cache_set().

See Also
edje_file_cache_set()
edje_file_cache_flush()
EAPI void edje_file_cache_set ( int  count)

Set the file cache size.

Parameters
countThe file cache size in edje file units. Default is 16.

This function sets the file cache size. Edje keeps this cache in order to prevent duplicates of edje file entries in memory. The file cache size can be retrieved with edje_file_cache_get().

See Also
edje_file_cache_get()
edje_file_cache_flush()