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

Go to the source code of this file.

Classes

struct  RParserMatch
 
struct  RParserNode
 
struct  RNode
 
struct  RDebugInfo
 

Typedefs

typedef gchar *(* RNodeGetValueFunc) (gpointer value)
 

Enumerations

enum  {
  RPT_STRING , RPT_QSTRING , RPT_ESTRING , RPT_IPV4 ,
  RPT_NUMBER , RPT_ANYSTRING , RPT_IPV6 , RPT_IP ,
  RPT_FLOAT , RPT_SET , RPT_MACADDR , RPT_PCRE ,
  RPT_EMAIL , RPT_HOSTNAME , RPT_LLADDR , RPT_NLSTRING ,
  RPT_OPTIONALSET
}
 

Functions

RNode * r_new_node (const gchar *key, gpointer value)
 
void r_free_node (RNode *node, void(*free_fn)(gpointer data))
 
void r_insert_node (RNode *root, gchar *key, gpointer value, const gchar *capture_prefix, RNodeGetValueFunc value_func, const gchar *location)
 
RNode * r_find_node (RNode *root, gchar *key, gint keylen, GArray *matches)
 
RNode * r_find_node_dbg (RNode *root, gchar *key, gint keylen, GArray *matches, GArray *dbg_list)
 
gchar ** r_find_all_applicable_nodes (RNode *root, gchar *key, gint keylen, RNodeGetValueFunc value_func)
 

Typedef Documentation

◆ RNodeGetValueFunc

typedef gchar*(* RNodeGetValueFunc) (gpointer value)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RPT_STRING 
RPT_QSTRING 
RPT_ESTRING 
RPT_IPV4 
RPT_NUMBER 
RPT_ANYSTRING 
RPT_IPV6 
RPT_IP 
RPT_FLOAT 
RPT_SET 
RPT_MACADDR 
RPT_PCRE 
RPT_EMAIL 
RPT_HOSTNAME 
RPT_LLADDR 
RPT_NLSTRING 
RPT_OPTIONALSET 

Function Documentation

◆ r_find_all_applicable_nodes()

gchar** r_find_all_applicable_nodes ( RNode *  root,
gchar *  key,
gint  keylen,
RNodeGetValueFunc  value_func 
)

◆ r_find_node()

RNode* r_find_node ( RNode *  root,
gchar *  key,
gint  keylen,
GArray *  matches 
)

◆ r_find_node_dbg()

RNode* r_find_node_dbg ( RNode *  root,
gchar *  key,
gint  keylen,
GArray *  matches,
GArray *  dbg_list 
)

◆ r_free_node()

void r_free_node ( RNode *  node,
void(*)(gpointer data)  free_fn 
)

◆ r_insert_node()

void r_insert_node ( RNode *  root,
gchar *  key,
gpointer  value,
const gchar *  capture_prefix,
RNodeGetValueFunc  value_func,
const gchar *  location 
)

◆ r_new_node()

RNode* r_new_node ( const gchar *  key,
gpointer  value 
)

r_new_node: