php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
log.h File Reference

Go to the source code of this file.

Data Structures

struct  lxb_css_log_message_t
 
struct  lxb_css_log_t
 

Enumerations

enum  lxb_css_log_type_t { LXB_CSS_LOG_INFO = 0 , LXB_CSS_LOG_WARNING , LXB_CSS_LOG_ERROR , LXB_CSS_LOG_SYNTAX_ERROR }
 

Functions

LXB_API lxb_css_log_tlxb_css_log_create (void)
 
LXB_API lxb_status_t lxb_css_log_init (lxb_css_log_t *log, lexbor_mraw_t *mraw)
 
LXB_API void lxb_css_log_clean (lxb_css_log_t *log)
 
LXB_API lxb_css_log_tlxb_css_log_destroy (lxb_css_log_t *log, bool self_destroy)
 
LXB_API lxb_css_log_message_tlxb_css_log_append (lxb_css_log_t *log, lxb_css_log_type_t type, const lxb_char_t *str, size_t length)
 
LXB_API lxb_css_log_message_tlxb_css_log_push (lxb_css_log_t *log, lxb_css_log_type_t type, size_t length)
 
LXB_API lxb_css_log_message_tlxb_css_log_format (lxb_css_log_t *log, lxb_css_log_type_t type, const char *format,...)
 
LXB_API lxb_css_log_message_tlxb_css_log_not_supported (lxb_css_log_t *log, const char *module_name, const char *description)
 
LXB_API const lxb_char_tlxb_css_log_type_by_id (lxb_css_log_type_t type, size_t *out_length)
 
LXB_API lxb_status_t lxb_css_log_serialize (lxb_css_log_t *log, lexbor_serialize_cb_f cb, void *ctx, const lxb_char_t *indent, size_t indent_length)
 
LXB_API lxb_char_tlxb_css_log_serialize_char (lxb_css_log_t *log, size_t *out_length, const lxb_char_t *indent, size_t indent_length)
 
LXB_API lxb_status_t lxb_css_log_message_serialize (lxb_css_log_message_t *msg, lexbor_serialize_cb_f cb, void *ctx)
 
LXB_API lxb_char_tlxb_css_log_message_serialize_char (lxb_css_log_message_t *msg, size_t *out_length)
 
lxb_inline size_t lxb_css_log_length (lxb_css_log_t *log)
 

Enumeration Type Documentation

◆ lxb_css_log_type_t

Enumerator
LXB_CSS_LOG_INFO 
LXB_CSS_LOG_WARNING 
LXB_CSS_LOG_ERROR 
LXB_CSS_LOG_SYNTAX_ERROR 

Definition at line 20 of file log.h.

Function Documentation

◆ lxb_css_log_append()

LXB_API lxb_css_log_message_t * lxb_css_log_append ( lxb_css_log_t * log,
lxb_css_log_type_t type,
const lxb_char_t * str,
size_t length )

Definition at line 94 of file log.c.

◆ lxb_css_log_clean()

LXB_API void lxb_css_log_clean ( lxb_css_log_t * log)

Definition at line 62 of file log.c.

◆ lxb_css_log_create()

LXB_API lxb_css_log_t * lxb_css_log_create ( void )

Definition at line 28 of file log.c.

◆ lxb_css_log_destroy()

LXB_API lxb_css_log_t * lxb_css_log_destroy ( lxb_css_log_t * log,
bool self_destroy )

Definition at line 74 of file log.c.

◆ lxb_css_log_format()

LXB_API lxb_css_log_message_t * lxb_css_log_format ( lxb_css_log_t * log,
lxb_css_log_type_t type,
const char * format,
... )

Definition at line 140 of file log.c.

◆ lxb_css_log_init()

LXB_API lxb_status_t lxb_css_log_init ( lxb_css_log_t * log,
lexbor_mraw_t * mraw )

Definition at line 34 of file log.c.

◆ lxb_css_log_length()

lxb_inline size_t lxb_css_log_length ( lxb_css_log_t * log)

Definition at line 93 of file log.h.

◆ lxb_css_log_message_serialize()

LXB_API lxb_status_t lxb_css_log_message_serialize ( lxb_css_log_message_t * msg,
lexbor_serialize_cb_f cb,
void * ctx )

Definition at line 276 of file log.c.

◆ lxb_css_log_message_serialize_char()

LXB_API lxb_char_t * lxb_css_log_message_serialize_char ( lxb_css_log_message_t * msg,
size_t * out_length )

Definition at line 293 of file log.c.

◆ lxb_css_log_not_supported()

LXB_API lxb_css_log_message_t * lxb_css_log_not_supported ( lxb_css_log_t * log,
const char * module_name,
const char * description )

Definition at line 170 of file log.c.

◆ lxb_css_log_push()

LXB_API lxb_css_log_message_t * lxb_css_log_push ( lxb_css_log_t * log,
lxb_css_log_type_t type,
size_t length )

Definition at line 120 of file log.c.

◆ lxb_css_log_serialize()

LXB_API lxb_status_t lxb_css_log_serialize ( lxb_css_log_t * log,
lexbor_serialize_cb_f cb,
void * ctx,
const lxb_char_t * indent,
size_t indent_length )

Definition at line 190 of file log.c.

◆ lxb_css_log_serialize_char()

LXB_API lxb_char_t * lxb_css_log_serialize_char ( lxb_css_log_t * log,
size_t * out_length,
const lxb_char_t * indent,
size_t indent_length )

Definition at line 229 of file log.c.

◆ lxb_css_log_type_by_id()

LXB_API const lxb_char_t * lxb_css_log_type_by_id ( lxb_css_log_type_t type,
size_t * out_length )

Definition at line 180 of file log.c.