klog_s Struct Reference

Public Types

enum  { KLOG_TYPE_UNKNOWN, KLOG_TYPE_MEM, KLOG_TYPE_FILE, KLOG_TYPE_SYSLOG }

Data Fields

enum klog_s:: { ... }  type
int threshold
char ident [KLOG_ID_SZ+1]
union {
   klog_mem_t *   m
   klog_syslog_t *   s
   klog_file_t *   f
u
int(* cb_log )(struct klog_s *, int, const char *, va_list)
void(* cb_close )(struct klog_s *)
int(* cb_getln )(struct klog_s *, size_t, char[])
ssize_t(* cb_countln )(struct klog_s *)
int(* cb_clear )(struct klog_s *)
int(* cb_flush )(struct klog_s *)

Detailed Description

Definition at line 103 of file klog.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
KLOG_TYPE_UNKNOWN 
KLOG_TYPE_MEM 
KLOG_TYPE_FILE 
KLOG_TYPE_SYSLOG 

Definition at line 105 of file klog.h.


Field Documentation

int(* klog_s::cb_clear)(struct klog_s *)

Definition at line 130 of file klog.h.

void(* klog_s::cb_close)(struct klog_s *)

Definition at line 127 of file klog.h.

ssize_t(* klog_s::cb_countln)(struct klog_s *)

Definition at line 129 of file klog.h.

int(* klog_s::cb_flush)(struct klog_s *)

Definition at line 131 of file klog.h.

int(* klog_s::cb_getln)(struct klog_s *, size_t, char[])

Definition at line 128 of file klog.h.

int(* klog_s::cb_log)(struct klog_s *, int, const char *, va_list)

Definition at line 126 of file klog.h.

Definition at line 122 of file klog.h.

char klog_s::ident[KLOG_ID_SZ+1]

Definition at line 115 of file klog.h.

Definition at line 120 of file klog.h.

Definition at line 121 of file klog.h.

Definition at line 114 of file klog.h.

enum { ... } klog_s::type
union { ... } klog_s::u

The documentation for this struct was generated from the following file: