syslog-ng source
type-hinting.c File Reference
#include "messages.h"
#include "type-hinting.h"
#include "template/templates.h"
#include "timeutils/scan-timestamp.h"
#include "str-utils.h"
#include <errno.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
Include dependency graph for type-hinting.c:

Functions

GQuark type_hinting_error_quark (void)
 
gboolean type_hint_parse (const gchar *hint, LogMessageValueType *out_type, GError **error)
 
gboolean type_cast_drop_helper (gint drop_flags, const gchar *value, gssize value_len, const gchar *type_hint)
 
gboolean type_cast_to_boolean (const gchar *value, gssize value_len, gboolean *out, GError **error)
 
gboolean type_cast_to_int32 (const gchar *value, gssize value_len, gint32 *out, GError **error)
 
gboolean type_cast_to_int64 (const gchar *value, gssize value_len, gint64 *out, GError **error)
 
gboolean type_cast_to_double (const gchar *value, gssize value_len, gdouble *out, GError **error)
 
gboolean type_cast_to_datetime_unixtime (const gchar *value, gssize value_len, UnixTime *ut, GError **error)
 
gboolean type_cast_to_datetime_msec (const gchar *value, gssize value_len, gint64 *out, GError **error)
 
gboolean type_cast_validate (const gchar *value, gssize value_len, LogMessageValueType type, GError **error)
 

Function Documentation

◆ type_cast_drop_helper()

gboolean type_cast_drop_helper ( gint  drop_flags,
const gchar *  value,
gssize  value_len,
const gchar *  type_hint 
)

◆ type_cast_to_boolean()

gboolean type_cast_to_boolean ( const gchar *  value,
gssize  value_len,
gboolean *  out,
GError **  error 
)

◆ type_cast_to_datetime_msec()

gboolean type_cast_to_datetime_msec ( const gchar *  value,
gssize  value_len,
gint64 *  out,
GError **  error 
)

◆ type_cast_to_datetime_unixtime()

gboolean type_cast_to_datetime_unixtime ( const gchar *  value,
gssize  value_len,
UnixTime *  ut,
GError **  error 
)

◆ type_cast_to_double()

gboolean type_cast_to_double ( const gchar *  value,
gssize  value_len,
gdouble *  out,
GError **  error 
)

◆ type_cast_to_int32()

gboolean type_cast_to_int32 ( const gchar *  value,
gssize  value_len,
gint32 *  out,
GError **  error 
)

◆ type_cast_to_int64()

gboolean type_cast_to_int64 ( const gchar *  value,
gssize  value_len,
gint64 *  out,
GError **  error 
)

◆ type_cast_validate()

gboolean type_cast_validate ( const gchar *  value,
gssize  value_len,
LogMessageValueType  type,
GError **  error 
)

◆ type_hint_parse()

gboolean type_hint_parse ( const gchar *  hint,
LogMessageValueType out_type,
GError **  error 
)

◆ type_hinting_error_quark()

GQuark type_hinting_error_quark ( void  )