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

Go to the source code of this file.

Macros

#define TYPE_HINTING_ERROR   type_hinting_error_quark()
 

Enumerations

enum  TypeHintingError { TYPE_HINTING_INVALID_TYPE , TYPE_HINTING_INVALID_CAST }
 

Functions

GQuark type_hinting_error_quark (void)
 
gboolean type_hint_parse (const gchar *hint, LogMessageValueType *out_hint, 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_msec (const gchar *value, gssize value_len, gint64 *out, GError **error)
 
gboolean type_cast_to_datetime_unixtime (const gchar *value, gssize value_len, UnixTime *ut, GError **error)
 
gboolean type_cast_validate (const gchar *value, gssize value_len, LogMessageValueType type, GError **error)
 

Macro Definition Documentation

◆ TYPE_HINTING_ERROR

#define TYPE_HINTING_ERROR   type_hinting_error_quark()

Enumeration Type Documentation

◆ TypeHintingError

Enumerator
TYPE_HINTING_INVALID_TYPE 
TYPE_HINTING_INVALID_CAST 

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_hint,
GError **  error 
)

◆ type_hinting_error_quark()

GQuark type_hinting_error_quark ( void  )