Postfix3.3.1
|
#include <vstring.h>
データ構造 | |
struct | SCACHE_SIZE |
struct | SCACHE |
マクロ定義 | |
#define | scache_save_endp(scache, ttl, endp_label, endp_prop, fd) (scache)->save_endp((scache), (ttl), (endp_label), (endp_prop), (fd)) |
#define | scache_find_endp(scache, endp_label, endp_prop) (scache)->find_endp((scache), (endp_label), (endp_prop)) |
#define | scache_save_dest(scache, ttl, dest_label, dest_prop, endp_label) (scache)->save_dest((scache), (ttl), (dest_label), (dest_prop), (endp_label)) |
#define | scache_find_dest(scache, dest_label, dest_prop, endp_prop) (scache)->find_dest((scache), (dest_label), (dest_prop), (endp_prop)) |
#define | scache_size(scache, stats) (scache)->size((scache), (stats)) |
#define | scache_free(scache) (scache)->free(scache) |
#define | SCACHE_TYPE_SINGLE 1 /* single-instance cache */ |
#define | SCACHE_TYPE_CLIENT 2 /* session cache client */ |
#define | SCACHE_TYPE_MULTI 3 /* multi-instance cache */ |
#define | SCACHE_REQ_FIND_ENDP "find_endp" |
#define | SCACHE_REQ_SAVE_ENDP "save_endp" |
#define | SCACHE_REQ_FIND_DEST "find_dest" |
#define | SCACHE_REQ_SAVE_DEST "save_dest" |
#define | SCACHE_STAT_OK 0 /* request completed successfully */ |
#define | SCACHE_STAT_BAD 1 /* malformed request */ |
#define | SCACHE_STAT_FAIL 2 /* request completed unsuccessfully */ |
型定義 | |
typedef struct SCACHE | SCACHE |
typedef struct SCACHE_SIZE | SCACHE_SIZE |
typedef void(* | SCACHE_SAVE_ENDP_FN) (SCACHE *, int, const char *, const char *, int) |
typedef int(* | SCACHE_FIND_ENDP_FN) (SCACHE *, const char *, VSTRING *) |
typedef void(* | SCACHE_SAVE_DEST_FN) (SCACHE *, int, const char *, const char *, const char *) |
typedef int(* | SCACHE_FIND_DEST_FN) (SCACHE *, const char *, VSTRING *, VSTRING *) |
関数 | |
SCACHE * | scache_single_create (void) |
SCACHE * | scache_clnt_create (const char *, int, int, int) |
SCACHE * | scache_multi_create (void) |
#define scache_find_dest | ( | scache, | |
dest_label, | |||
dest_prop, | |||
endp_prop | |||
) | (scache)->find_dest((scache), (dest_label), (dest_prop), (endp_prop)) |
#define scache_find_endp | ( | scache, | |
endp_label, | |||
endp_prop | |||
) | (scache)->find_endp((scache), (endp_label), (endp_prop)) |
#define scache_save_dest | ( | scache, | |
ttl, | |||
dest_label, | |||
dest_prop, | |||
endp_label | |||
) | (scache)->save_dest((scache), (ttl), (dest_label), (dest_prop), (endp_label)) |
#define scache_save_endp | ( | scache, | |
ttl, | |||
endp_label, | |||
endp_prop, | |||
fd | |||
) | (scache)->save_endp((scache), (ttl), (endp_label), (endp_prop), (fd)) |
typedef struct SCACHE_SIZE SCACHE_SIZE |
SCACHE* scache_multi_create | ( | void | ) |
scache_multi.c の 477 行目に定義があります。
SCACHE* scache_single_create | ( | void | ) |
scache_single.c の 292 行目に定義があります。