Postfix3.3.1
データ構造 | マクロ定義 | 関数
ctable.c ファイル
#include <sys_defs.h>
#include <stdlib.h>
#include <stddef.h>
#include <msg.h>
#include <mymalloc.h>
#include <ring.h>
#include <htable.h>
#include <ctable.h>

[ソースコード]

データ構造

struct  ctable_entry
 
struct  ctable
 

マクロ定義

#define CTABLE_ENTRY   struct ctable_entry
 
#define RING_TO_CTABLE_ENTRY(ring_ptr)   RING_TO_APPL(ring_ptr, CTABLE_ENTRY, ring)
 
#define RING_PTR_OF(x)   (&((x)->ring))
 
#define CTABLE_MIN_SIZE   5
 

関数

CTABLEctable_create (ssize_t limit, CTABLE_CREATE_FN create, CTABLE_DELETE_FN delete, void *context)
 
const void * ctable_locate (CTABLE *cache, const char *key)
 
const void * ctable_refresh (CTABLE *cache, const char *key)
 
void ctable_newcontext (CTABLE *cache, void *context)
 
void ctable_free (CTABLE *cache)
 
void ctable_walk (CTABLE *cache, void(*action)(const char *, const void *))
 

マクロ定義詳解

#define CTABLE_ENTRY   struct ctable_entry

ctable.c93 行目に定義があります。

#define CTABLE_MIN_SIZE   5

ctable.c115 行目に定義があります。

#define RING_PTR_OF (   x)    (&((x)->ring))

ctable.c103 行目に定義があります。

#define RING_TO_CTABLE_ENTRY (   ring_ptr)    RING_TO_APPL(ring_ptr, CTABLE_ENTRY, ring)

ctable.c101 行目に定義があります。

関数詳解

CTABLE* ctable_create ( ssize_t  limit,
CTABLE_CREATE_FN  create,
CTABLE_DELETE_FN  delete,
void *  context 
)

ctable.c119 行目に定義があります。

void ctable_free ( CTABLE cache)

ctable.c226 行目に定義があります。

const void* ctable_locate ( CTABLE cache,
const char *  key 
)

ctable.c140 行目に定義があります。

void ctable_newcontext ( CTABLE cache,
void *  context 
)

ctable.c207 行目に定義があります。

const void* ctable_refresh ( CTABLE cache,
const char *  key 
)

ctable.c182 行目に定義があります。

void ctable_walk ( CTABLE cache,
void(*)(const char *, const void *)  action 
)

ctable.c242 行目に定義があります。