syslog-ng source
syslog-names.h File Reference
#include "syslog-ng.h"
Include dependency graph for syslog-names.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sl_name
 

Macros

#define SYSLOG_FACMASK   0x03f8 /* mask to extract facility part */
 
#define SYSLOG_FAC(p)   (((p) & SYSLOG_FACMASK) >> 3)
 
#define SYSLOG_PRIMASK   0x07 /* mask to extract priority part (internal) */
 
#define SYSLOG_PRI(p)   ((p) & SYSLOG_PRIMASK)
 
#define SYSLOG_SEVERITY_CODE(n)   ((n) & 7)
 
#define SYSLOG_FACILITY_CODE(n)   ((n) << 3)
 

Functions

int syslog_name_lookup_id_by_name (const char *name, struct sl_name names[])
 
int syslog_name_lookup_value_by_name (const char *name, struct sl_name names[])
 
const char * syslog_name_lookup_name_by_value (int value, struct sl_name names[])
 
guint32 syslog_make_range (guint32 r1, guint32 r2)
 
gint syslog_name_lookup_severity_by_name_alias (const gchar *name, gssize name_len)
 

Variables

struct sl_name sl_severities []
 
struct sl_name sl_facilities []
 

Macro Definition Documentation

◆ SYSLOG_FAC

#define SYSLOG_FAC (   p)    (((p) & SYSLOG_FACMASK) >> 3)

◆ SYSLOG_FACILITY_CODE

#define SYSLOG_FACILITY_CODE (   n)    ((n) << 3)

◆ SYSLOG_FACMASK

#define SYSLOG_FACMASK   0x03f8 /* mask to extract facility part */

◆ SYSLOG_PRI

#define SYSLOG_PRI (   p)    ((p) & SYSLOG_PRIMASK)

◆ SYSLOG_PRIMASK

#define SYSLOG_PRIMASK   0x07 /* mask to extract priority part (internal) */

◆ SYSLOG_SEVERITY_CODE

#define SYSLOG_SEVERITY_CODE (   n)    ((n) & 7)

Function Documentation

◆ syslog_make_range()

guint32 syslog_make_range ( guint32  r1,
guint32  r2 
)

◆ syslog_name_lookup_id_by_name()

int syslog_name_lookup_id_by_name ( const char *  name,
struct sl_name  names[] 
)

◆ syslog_name_lookup_name_by_value()

const char* syslog_name_lookup_name_by_value ( int  value,
struct sl_name  names[] 
)

◆ syslog_name_lookup_severity_by_name_alias()

gint syslog_name_lookup_severity_by_name_alias ( const gchar *  name,
gssize  name_len 
)

◆ syslog_name_lookup_value_by_name()

int syslog_name_lookup_value_by_name ( const char *  name,
struct sl_name  names[] 
)

Variable Documentation

◆ sl_facilities

struct sl_name sl_facilities[]
extern

◆ sl_severities

struct sl_name sl_severities[]
extern