#include <glib.h>
#include <stdbool.h>
Data Structures |
struct | objcache |
struct | objcache_entry |
Defines |
#define | OC_F_DIRTY 0x1 |
#define | objcache_get(c, k, l) __objcache_get(c, k, l, 0) |
#define | objcache_get_dirty(c, k, l) __objcache_get(c, k, l, OC_F_DIRTY) |
Functions |
struct objcache_entry * | __objcache_get (struct objcache *cache, const char *key, int klen, unsigned int flag) |
bool | objcache_test_dirty (struct objcache *cache, struct objcache_entry *entry) |
void | objcache_put (struct objcache *cache, struct objcache_entry *entry) |
int | objcache_count (struct objcache *cache) |
int | objcache_init (struct objcache *cache) |
void | objcache_fini (struct objcache *cache) |
Define Documentation
#define objcache_get |
( |
|
c, |
|
|
|
k, |
|
|
|
l |
|
) |
| __objcache_get(c, k, l, 0) |
#define objcache_get_dirty |
( |
|
c, |
|
|
|
k, |
|
|
|
l |
|
) |
| __objcache_get(c, k, l, OC_F_DIRTY) |
Function Documentation
struct objcache_entry* __objcache_get |
( |
struct objcache * |
cache, |
|
|
const char * |
key, |
|
|
int |
klen, |
|
|
unsigned int |
flag |
|
) |
| [read] |
int objcache_count |
( |
struct objcache * |
cache | ) |
|
void objcache_fini |
( |
struct objcache * |
cache | ) |
|
int objcache_init |
( |
struct objcache * |
cache | ) |
|