25 #ifndef TEMPLATES_H_INCLUDED
26 #define TEMPLATES_H_INCLUDED
36 #define LOG_TEMPLATE_ERROR log_template_error_quark()
const gchar * name
Definition: debugger.c:265
FILE ** source
Definition: file_reader.c:47
NVType LogMessageValueType
Definition: logmsg.h:195
guint32 NVHandle
Definition: nvtable.h:35
Definition: templates.h:49
GlobalConfig * cfg
Definition: templates.h:54
guint literal
Definition: templates.h:55
LogMessageValueType explicit_type_hint
Definition: templates.h:60
gchar * template_str
Definition: templates.h:52
GAtomicCounter ref_cnt
Definition: templates.h:50
gchar * name
Definition: templates.h:51
GList * compiled_template
Definition: templates.h:53
guint top_level
Definition: templates.h:55
guint escape
Definition: templates.h:55
guint trivial
Definition: templates.h:55
LogMessageValueType type_hint
Definition: templates.h:66
guint def_inline
Definition: templates.h:55
void log_template_compile_literal_string(LogTemplate *self, const gchar *literal)
Definition: templates.c:280
gboolean log_template_set_type_hint(LogTemplate *self, const gchar *hint, GError **error)
Definition: templates.c:302
void log_template_set_name(LogTemplate *self, const gchar *name)
Definition: templates.c:355
GQuark log_template_error_quark(void)
Definition: templates.c:491
void log_template_unref(LogTemplate *s)
Definition: templates.c:406
const gchar * log_template_get_literal_value(const LogTemplate *self, gssize *value_len)
Definition: templates.c:40
void log_template_options_init(LogTemplateOptions *options, GlobalConfig *cfg)
Definition: templates.c:414
EVTTAG * evt_tag_template(const gchar *name, LogTemplate *template_obj, LogMessage *msg, LogTemplateEvalOptions *options)
Definition: templates.c:509
void log_template_options_set_on_error(LogTemplateOptions *options, gint on_error)
Definition: templates.c:503
const gchar * log_template_get_trivial_value(LogTemplate *self, LogMessage *msg, gssize *value_len)
Definition: templates.c:120
void log_template_set_type_hint_value(LogTemplate *self, LogMessageValueType type)
Definition: templates.c:327
const gchar * log_template_get_trivial_value_and_type(LogTemplate *self, LogMessage *msg, gssize *value_len, LogMessageValueType *type)
Definition: templates.c:89
LogTemplate * log_template_ref(LogTemplate *s)
Definition: templates.c:398
gboolean log_template_compile_with_type_hint(LogTemplate *self, const gchar *template_and_typehint, GError **error)
Definition: templates.c:258
LogTemplateError
Definition: templates.h:41
@ LOG_TEMPLATE_ERROR_COMPILE
Definition: templates.h:43
@ LOG_TEMPLATE_ERROR_FAILED
Definition: templates.h:42
gboolean log_template_is_literal_string(const LogTemplate *self)
Definition: templates.c:34
void log_template_options_destroy(LogTemplateOptions *options)
Definition: templates.c:457
gboolean log_template_compile(LogTemplate *self, const gchar *template_str, GError **error)
Definition: templates.c:193
void log_template_options_defaults(LogTemplateOptions *options)
Definition: templates.c:472
void log_template_forget_template_string(LogTemplate *self)
Definition: templates.c:215
void log_template_options_global_defaults(LogTemplateOptions *options)
Definition: templates.c:482
NVHandle log_template_get_trivial_value_handle(LogTemplate *self)
Definition: templates.c:62
LogTemplate * log_template_new_embedded(GlobalConfig *cfg)
Definition: templates.c:381
gboolean log_template_is_trivial(LogTemplate *self)
Definition: templates.c:56
void log_template_set_escape(LogTemplate *self, gboolean enable)
Definition: templates.c:296
gboolean log_template_on_error_parse(const gchar *on_error, gint *out)
Definition: templates.c:497
void log_template_options_clone(LogTemplateOptions *source, LogTemplateOptions *dest)
Definition: templates.c:439
LogTemplate * log_template_new(GlobalConfig *cfg, const gchar *name)
Definition: templates.c:364
GlobalConfig * cfg
Definition: test_batched_ack_tracker.c:34
LogMessage * msg
Definition: test_rename.c:35