syslog-ng source
xml-scanner.h File Reference
#include "syslog-ng.h"
#include "messages.h"
#include <string.h>
Include dependency graph for xml-scanner.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  XMLScannerOptions
 
struct  PushCurrentKeyValue
 
struct  XMLScanner
 

Typedefs

typedef void(* PushCurrentKeyValueCB) (const gchar *name, const gchar *value, gssize value_length, gpointer user_data)
 

Functions

void xml_scanner_init (XMLScanner *self, XMLScannerOptions *options, PushCurrentKeyValueCB push_function, gpointer user_data, gchar *key_prefix)
 
void xml_scanner_deinit (XMLScanner *self)
 
void xml_scanner_parse (XMLScanner *self, const gchar *input, gsize input_len, GError **error)
 
void xml_scanner_push_text_method (XMLScanner *self)
 
gboolean xml_scanner_start_element_method (XMLScanner *self, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_values, GError **error)
 
void xml_scanner_end_element_method (XMLScanner *self, const gchar *element_name, GError **error)
 
void xml_scanner_text_method (XMLScanner *self, const gchar *element_name, const gchar *text, gsize text_len, GError **error)
 
void xml_scanner_options_set_and_compile_exclude_tags (XMLScannerOptions *self, GList *exclude_tags)
 
void xml_scanner_options_set_strip_whitespaces (XMLScannerOptions *self, gboolean setting)
 
void xml_scanner_options_copy (XMLScannerOptions *dest, XMLScannerOptions *source)
 
void xml_scanner_options_destroy (XMLScannerOptions *self)
 
void xml_scanner_options_defaults (XMLScannerOptions *self)
 
gboolean joker_or_wildcard (GList *patterns)
 

Typedef Documentation

◆ PushCurrentKeyValueCB

typedef void(* PushCurrentKeyValueCB) (const gchar *name, const gchar *value, gssize value_length, gpointer user_data)

Function Documentation

◆ joker_or_wildcard()

gboolean joker_or_wildcard ( GList *  patterns)

◆ xml_scanner_deinit()

void xml_scanner_deinit ( XMLScanner *  self)

◆ xml_scanner_end_element_method()

void xml_scanner_end_element_method ( XMLScanner *  self,
const gchar *  element_name,
GError **  error 
)

◆ xml_scanner_init()

void xml_scanner_init ( XMLScanner *  self,
XMLScannerOptions options,
PushCurrentKeyValueCB  push_function,
gpointer  user_data,
gchar *  key_prefix 
)

◆ xml_scanner_options_copy()

void xml_scanner_options_copy ( XMLScannerOptions dest,
XMLScannerOptions source 
)

◆ xml_scanner_options_defaults()

void xml_scanner_options_defaults ( XMLScannerOptions self)

◆ xml_scanner_options_destroy()

void xml_scanner_options_destroy ( XMLScannerOptions self)

◆ xml_scanner_options_set_and_compile_exclude_tags()

void xml_scanner_options_set_and_compile_exclude_tags ( XMLScannerOptions self,
GList *  exclude_tags 
)

◆ xml_scanner_options_set_strip_whitespaces()

void xml_scanner_options_set_strip_whitespaces ( XMLScannerOptions self,
gboolean  setting 
)

◆ xml_scanner_parse()

void xml_scanner_parse ( XMLScanner *  self,
const gchar *  input,
gsize  input_len,
GError **  error 
)

◆ xml_scanner_push_text_method()

void xml_scanner_push_text_method ( XMLScanner *  self)

◆ xml_scanner_start_element_method()

gboolean xml_scanner_start_element_method ( XMLScanner *  self,
const gchar *  element_name,
const gchar **  attribute_names,
const gchar **  attribute_values,
GError **  error 
)

◆ xml_scanner_text_method()

void xml_scanner_text_method ( XMLScanner *  self,
const gchar *  element_name,
const gchar *  text,
gsize  text_len,
GError **  error 
)