Postfix3.3.1
データ構造 | マクロ定義 | 型定義 | 関数
nbbio.h ファイル
#include <events.h>

[ソースコード]

データ構造

struct  NBBIO
 

マクロ定義

#define NBBIO_FLAG_READ   (1<<0)
 
#define NBBIO_FLAG_WRITE   (1<<1)
 
#define NBBIO_FLAG_EOF   (1<<2)
 
#define NBBIO_FLAG_ERROR   (1<<3)
 
#define NBBIO_FLAG_TIMEOUT   (1<<4)
 
#define NBBIO_OP_NAME(np)
 
#define NBBIO_MASK_ACTIVE   (NBBIO_FLAG_READ | NBBIO_FLAG_WRITE)
 
#define NBBIO_MASK_ERROR   (NBBIO_FLAG_EOF | NBBIO_FLAG_ERROR | NBBIO_FLAG_TIMEOUT)
 
#define NBBIO_BUFSIZE(np)   (((np)->bufsize) + 0) /* Read-only */
 
#define NBBIO_READ_PEND(np)   ((np)->read_pend)
 
#define NBBIO_READ_BUF(np)   ((np)->read_buf + 0) /* Read-only */
 
#define NBBIO_WRITE_PEND(np)   ((np)->write_pend)
 
#define NBBIO_WRITE_BUF(np)   ((np)->write_buf + 0) /* Read-only */
 
#define NBBIO_ACTIVE_FLAGS(np)   ((np)->flags & NBBIO_MASK_ACTIVE)
 
#define NBBIO_ERROR_FLAGS(np)   ((np)->flags & NBBIO_MASK_ERROR)
 

型定義

typedef void(* NBBIO_ACTION) (int, void *)
 

関数

NBBIOnbbio_create (int, ssize_t, const char *, NBBIO_ACTION, void *)
 
void nbbio_free (NBBIO *)
 
void nbbio_enable_read (NBBIO *, int)
 
void nbbio_enable_write (NBBIO *, int)
 
void nbbio_disable_readwrite (NBBIO *)
 
void nbbio_slumber (NBBIO *, int)
 

マクロ定義詳解

#define NBBIO_ACTIVE_FLAGS (   np)    ((np)->flags & NBBIO_MASK_ACTIVE)

nbbio.h64 行目に定義があります。

#define NBBIO_BUFSIZE (   np)    (((np)->bufsize) + 0) /* Read-only */

nbbio.h56 行目に定義があります。

#define NBBIO_ERROR_FLAGS (   np)    ((np)->flags & NBBIO_MASK_ERROR)

nbbio.h65 行目に定義があります。

#define NBBIO_FLAG_EOF   (1<<2)

nbbio.h41 行目に定義があります。

#define NBBIO_FLAG_ERROR   (1<<3)

nbbio.h42 行目に定義があります。

#define NBBIO_FLAG_READ   (1<<0)

nbbio.h39 行目に定義があります。

#define NBBIO_FLAG_TIMEOUT   (1<<4)

nbbio.h43 行目に定義があります。

#define NBBIO_FLAG_WRITE   (1<<1)

nbbio.h40 行目に定義があります。

#define NBBIO_MASK_ACTIVE   (NBBIO_FLAG_READ | NBBIO_FLAG_WRITE)

nbbio.h50 行目に定義があります。

#define NBBIO_MASK_ERROR   (NBBIO_FLAG_EOF | NBBIO_FLAG_ERROR | NBBIO_FLAG_TIMEOUT)

nbbio.h53 行目に定義があります。

#define NBBIO_OP_NAME (   np)
値:
(((np)->flags & NBBIO_FLAG_READ) ? "read" : \
((np)->flags & NBBIO_FLAG_WRITE) ? "write" : \
"unknown")
#define NBBIO_FLAG_WRITE
Definition: nbbio.h:40
#define NBBIO_FLAG_READ
Definition: nbbio.h:39

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

#define NBBIO_READ_BUF (   np)    ((np)->read_buf + 0) /* Read-only */

nbbio.h59 行目に定義があります。

#define NBBIO_READ_PEND (   np)    ((np)->read_pend)

nbbio.h58 行目に定義があります。

#define NBBIO_WRITE_BUF (   np)    ((np)->write_buf + 0) /* Read-only */

nbbio.h62 行目に定義があります。

#define NBBIO_WRITE_PEND (   np)    ((np)->write_pend)

nbbio.h61 行目に定義があります。

型定義詳解

typedef void(* NBBIO_ACTION) (int, void *)

nbbio.h22 行目に定義があります。

関数詳解

NBBIO* nbbio_create ( int  ,
ssize_t  ,
const char *  ,
NBBIO_ACTION  ,
void *   
)

nbbio.c328 行目に定義があります。

void nbbio_disable_readwrite ( NBBIO )

nbbio.c310 行目に定義があります。

void nbbio_enable_read ( NBBIO ,
int   
)

nbbio.c256 行目に定義があります。

void nbbio_enable_write ( NBBIO ,
int   
)

nbbio.c283 行目に定義があります。

void nbbio_free ( NBBIO )

nbbio.c363 行目に定義があります。

void nbbio_slumber ( NBBIO ,
int   
)

nbbio.c319 行目に定義があります。