NuauthCache


Data Structures

struct  cache_entry_t
struct  cache_entry_content_t
struct  cache_class_t
struct  cache_message

Typedefs

typedef void(*) CacheDeleteFunc (gpointer, gpointer)

Functions

void cache_entry_content_destroy (cache_entry_content_t *content, GFunc free_datas)
void cache_manager (cache_class_t *this)
void cache_destroy (cache_class_t *datas)
void cache_reset (cache_class_t *this)

Variables

gpointer null_message
gpointer null_queue_datas

Typedef Documentation

typedef void(*) CacheDeleteFunc(gpointer, gpointer)

Definition at line 44 of file cache.h.


Function Documentation

void cache_destroy ( cache_class_t datas  ) 

Definition at line 341 of file cache.c.

References cache_class_t::hash, and cache_class_t::queue.

Referenced by nuauth_deinit().

void cache_entry_content_destroy ( cache_entry_content_t content,
GFunc  free_datas 
)

Definition at line 40 of file cache.c.

References cache_entry_content_t::datas.

Referenced by free_acl_cache(), and free_user_cache().

void cache_manager ( cache_class_t this  ) 

Thread function that wait for cache query.

The algorithm is the following :

Definition at line 269 of file cache.c.

References cache_entry_is_old(), cache_get(), cache_insert(), cache_message_destroy(), cache_refresh(), cache_reset_timestamp(), DEBUG_AREA_MAIN, FREE_MESSAGE, GET_MESSAGE, cache_class_t::hash, INSERT_MESSAGE, cache_message::key, log_message, cache_class_t::queue, REFRESH_MESSAGE, cache_entry_t::refreshing, RESET_MESSAGE, and cache_message::type.

Referenced by init_acl_cache(), and init_user_cache().

Here is the call graph for this function:

void cache_reset ( cache_class_t this  ) 

Definition at line 355 of file cache.c.

References cache_class_t::queue, RESET_MESSAGE, and cache_message::type.

Referenced by nuauth_reload().


Variable Documentation

gpointer null_message

Definition at line 73 of file cache.h.

Referenced by cache_get(), cache_insert(), get_acls_from_cache(), get_users_from_cache(), and init_nuauthdata().

gpointer null_queue_datas

Definition at line 74 of file cache.h.

Referenced by cache_get(), get_acls_from_cache(), get_users_from_cache(), and init_nuauthdata().


Generated on Sat Nov 22 04:01:05 2008 for NuFW by  doxygen 1.4.7