Postfix3.3.1
マクロ定義 | 関数 | 変数
header_body_checks.c ファイル
#include <sys_defs.h>
#include <ctype.h>
#include <string.h>
#include <msg.h>
#include <mymalloc.h>
#include <mime_state.h>
#include <rec_type.h>
#include <is_header.h>
#include <cleanup_user.h>
#include <dsn_util.h>
#include <header_body_checks.h>

[ソースコード]

マクロ定義

#define HBC_HEADER_INDEX(class)   ((class) - MIME_HDR_FIRST)
 
#define HBC_BODY_INDEX   (0)
 
#define HBC_INIT(hbc, index, name, value)
 
#define HBC_CTXT_HEADER   "header"
 
#define HBC_CTXT_BODY   "body"
 
#define STR(x)   vstring_str(x)
 
#define LEN(x)   VSTRING_LEN(x)
 
#define STREQUAL(x, y, l)   (strncasecmp((x), (y), (l)) == 0 && (y)[l] == 0)
 

関数

char * hbc_header_checks (void *context, HBC_CHECKS *hbc, int header_class, const HEADER_OPTS *hdr_opts, VSTRING *header, off_t offset)
 
char * hbc_body_checks (void *context, HBC_CHECKS *hbc, const char *line, ssize_t len, off_t offset)
 
HBC_CHECKShbc_header_checks_create (const char *header_checks_name, const char *header_checks_value, const char *mime_header_checks_name, const char *mime_header_checks_value, const char *nested_header_checks_name, const char *nested_header_checks_value, HBC_CALL_BACKS *call_backs)
 
HBC_CHECKShbc_body_checks_create (const char *body_checks_name, const char *body_checks_value, HBC_CALL_BACKS *call_backs)
 
void _hbc_checks_free (HBC_CHECKS *hbc, ssize_t len)
 

変数

char hbc_checks_error
 
const char hbc_checks_unknown
 

マクロ定義詳解

#define HBC_BODY_INDEX   (0)

header_body_checks.c205 行目に定義があります。

#define HBC_CTXT_BODY   "body"

header_body_checks.c221 行目に定義があります。

#define HBC_CTXT_HEADER   "header"

header_body_checks.c220 行目に定義があります。

#define HBC_HEADER_INDEX (   class)    ((class) - MIME_HDR_FIRST)

header_body_checks.c204 行目に定義があります。

#define HBC_INIT (   hbc,
  index,
  name,
  value 
)
値:
do { \
HBC_MAP_INFO *_mp = (hbc)->map_info + (index); \
if (*(value) != 0) { \
_mp->map_class = (name); \
_mp->maps = maps_create((name), (value), DICT_FLAG_LOCK); \
} else { \
_mp->map_class = 0; \
_mp->maps = 0; \
} \
} while (0)
MAPS * maps_create(const char *title, const char *map_names, int dict_flags)
Definition: maps.c:112
#define DICT_FLAG_LOCK
Definition: dict.h:116

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

#define LEN (   x)    VSTRING_LEN(x)

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

#define STR (   x)    vstring_str(x)

header_body_checks.c225 行目に定義があります。

#define STREQUAL (   x,
  y,
 
)    (strncasecmp((x), (y), (l)) == 0 && (y)[l] == 0)

関数詳解

void _hbc_checks_free ( HBC_CHECKS hbc,
ssize_t  len 
)

header_body_checks.c419 行目に定義があります。

char* hbc_body_checks ( void *  context,
HBC_CHECKS hbc,
const char *  line,
ssize_t  len,
off_t  offset 
)

header_body_checks.c341 行目に定義があります。

HBC_CHECKS* hbc_body_checks_create ( const char *  body_checks_name,
const char *  body_checks_value,
HBC_CALL_BACKS call_backs 
)

header_body_checks.c398 行目に定義があります。

char* hbc_header_checks ( void *  context,
HBC_CHECKS hbc,
int  header_class,
const HEADER_OPTS hdr_opts,
VSTRING header,
off_t  offset 
)

header_body_checks.c309 行目に定義があります。

HBC_CHECKS* hbc_header_checks_create ( const char *  header_checks_name,
const char *  header_checks_value,
const char *  mime_header_checks_name,
const char *  mime_header_checks_value,
const char *  nested_header_checks_name,
const char *  nested_header_checks_value,
HBC_CALL_BACKS call_backs 
)

header_body_checks.c366 行目に定義があります。

変数詳解

char hbc_checks_error

header_body_checks.c193 行目に定義があります。

const char hbc_checks_unknown

header_body_checks.c194 行目に定義があります。