Postfix3.3.1
データ構造 | マクロ定義 | 型定義 | 関数
scache.h ファイル
#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))

scache.h の 122 行目に定義があります。

#define scache_find_endp (   scache,
  endp_label,
  endp_prop 
)    (scache)->find_endp((scache), (endp_label), (endp_prop))

scache.h の 118 行目に定義があります。

#define scache_free (   scache)    (scache)->free(scache)

scache.h の 125 行目に定義があります。

#define SCACHE_REQ_FIND_DEST   "find_dest"

scache.h の 139 行目に定義があります。

#define SCACHE_REQ_FIND_ENDP   "find_endp"

scache.h の 137 行目に定義があります。

#define SCACHE_REQ_SAVE_DEST   "save_dest"

scache.h の 140 行目に定義があります。

#define SCACHE_REQ_SAVE_ENDP   "save_endp"

scache.h の 138 行目に定義があります。

#define scache_save_dest (   scache,
  ttl,
  dest_label,
  dest_prop,
  endp_label 
)    (scache)->save_dest((scache), (ttl), (dest_label), (dest_prop), (endp_label))

scache.h の 120 行目に定義があります。

#define scache_save_endp (   scache,
  ttl,
  endp_label,
  endp_prop,
  fd 
)    (scache)->save_endp((scache), (ttl), (endp_label), (endp_prop), (fd))

scache.h の 116 行目に定義があります。

#define scache_size (   scache,
  stats 
)    (scache)->size((scache), (stats))

scache.h の 124 行目に定義があります。

#define SCACHE_STAT_BAD   1 /* malformed request */

scache.h の 146 行目に定義があります。

#define SCACHE_STAT_FAIL   2 /* request completed unsuccessfully */

scache.h の 147 行目に定義があります。

#define SCACHE_STAT_OK   0 /* request completed successfully */

scache.h の 145 行目に定義があります。

#define SCACHE_TYPE_CLIENT   2 /* session cache client */

scache.h の 131 行目に定義があります。

#define SCACHE_TYPE_MULTI   3 /* multi-instance cache */

scache.h の 132 行目に定義があります。

#define SCACHE_TYPE_SINGLE   1 /* single-instance cache */

scache.h の 130 行目に定義があります。

型定義詳解

typedef struct SCACHE SCACHE

scache.h の 19 行目に定義があります。

typedef int(* SCACHE_FIND_DEST_FN) (SCACHE *, const char *, VSTRING *, VSTRING *)

scache.h の 87 行目に定義があります。

typedef int(* SCACHE_FIND_ENDP_FN) (SCACHE *, const char *, VSTRING *)

scache.h の 46 行目に定義があります。

typedef void(* SCACHE_SAVE_DEST_FN) (SCACHE *, int, const char *, const char *, const char *)

scache.h の 86 行目に定義があります。

typedef void(* SCACHE_SAVE_ENDP_FN) (SCACHE *, int, const char *, const char *, int)

scache.h の 45 行目に定義があります。

typedef struct SCACHE_SIZE SCACHE_SIZE

scache.h の 20 行目に定義があります。

関数詳解

SCACHE* scache_clnt_create ( const char *  ,
int  ,
int  ,
int   
)

scache_clnt.c の 404 行目に定義があります。

SCACHE* scache_multi_create ( void  )

scache_multi.c の 477 行目に定義があります。

SCACHE* scache_single_create ( void  )

scache_single.c の 292 行目に定義があります。