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 *)
 

関数

SCACHEscache_single_create (void)
 
SCACHEscache_clnt_create (const char *, int, int, int)
 
SCACHEscache_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.h122 行目に定義があります。

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

scache.h118 行目に定義があります。

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

scache.h125 行目に定義があります。

#define SCACHE_REQ_FIND_DEST   "find_dest"

scache.h139 行目に定義があります。

#define SCACHE_REQ_FIND_ENDP   "find_endp"

scache.h137 行目に定義があります。

#define SCACHE_REQ_SAVE_DEST   "save_dest"

scache.h140 行目に定義があります。

#define SCACHE_REQ_SAVE_ENDP   "save_endp"

scache.h138 行目に定義があります。

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

scache.h120 行目に定義があります。

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

scache.h116 行目に定義があります。

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

scache.h124 行目に定義があります。

#define SCACHE_STAT_BAD   1 /* malformed request */

scache.h146 行目に定義があります。

#define SCACHE_STAT_FAIL   2 /* request completed unsuccessfully */

scache.h147 行目に定義があります。

#define SCACHE_STAT_OK   0 /* request completed successfully */

scache.h145 行目に定義があります。

#define SCACHE_TYPE_CLIENT   2 /* session cache client */

scache.h131 行目に定義があります。

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

scache.h132 行目に定義があります。

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

scache.h130 行目に定義があります。

型定義詳解

typedef struct SCACHE SCACHE

scache.h19 行目に定義があります。

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

scache.h87 行目に定義があります。

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

scache.h46 行目に定義があります。

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

scache.h86 行目に定義があります。

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

scache.h45 行目に定義があります。

typedef struct SCACHE_SIZE SCACHE_SIZE

scache.h20 行目に定義があります。

関数詳解

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

scache_clnt.c404 行目に定義があります。

SCACHE* scache_multi_create ( void  )

scache_multi.c477 行目に定義があります。

SCACHE* scache_single_create ( void  )

scache_single.c292 行目に定義があります。