38 #define TIMESPEC_TIME_FORMAT "%Y-%m-%d %H:%M:%S"
39 #define TIMESPEC_PARSE_TIME_FORMAT "%Y-%m-%d %H:%M:%S"
40 #define TIMESPEC_SEC_FORMAT_MAX 256
42 gboolean isspace_str(
const gchar *str,
int nomorethan);
44 gboolean allow_and_ignore_only_whitespace(GSList *sibling_data,
51 gboolean generic_accumulate_chars(GSList *sibling_data,
59 void generic_free_data_for_children(gpointer data_for_children,
60 GSList* data_from_children,
67 gchar * concatenate_child_result_chars(GSList *data_from_children);
69 gboolean string_to_double(
const char *str,
double *result);
71 gboolean string_to_gint64(
const gchar *str, gint64 *v);
73 gboolean string_to_gint32(
const gchar *str, gint32 *v);
75 gboolean hex_string_to_binary(
const gchar *str,
void **v, guint64 *data_len);
77 gboolean generic_return_chars_end_handler(gpointer data_for_children,
78 GSList* data_from_children,
85 sixtp* simple_chars_only_parser_new(sixtp_end_handler end_handler);
87 gboolean string_to_timespec_secs(
const gchar *str,
Timespec *ts);
88 gboolean string_to_timespec_nsecs(
const gchar *str,
Timespec *ts);
90 gboolean generic_timespec_start_handler(GSList* sibling_data,
93 gpointer *data_for_children,
95 const gchar *tag, gchar **attrs);
99 gboolean generic_timespec_secs_end_handler(
100 gpointer data_for_children,
101 GSList *data_from_children, GSList *sibling_data,
102 gpointer parent_data, gpointer global_data,
103 gpointer *result,
const gchar *tag);
105 gboolean generic_timespec_nsecs_end_handler(
106 gpointer data_for_children,
107 GSList *data_from_children, GSList *sibling_data,
108 gpointer parent_data, gpointer global_data,
109 gpointer *result,
const gchar *tag);
112 sixtp* generic_timespec_parser_new(sixtp_end_handler end_handler);
114 gboolean generic_guid_end_handler(
115 gpointer data_for_children,
116 GSList *data_from_children, GSList *sibling_data,
117 gpointer parent_data, gpointer global_data,
118 gpointer *result,
const gchar *tag);
120 sixtp* generic_guid_parser_new(
void);
122 gboolean generic_gnc_numeric_end_handler(
123 gpointer data_for_children,
124 GSList *data_from_children, GSList *sibling_data,
125 gpointer parent_data, gpointer global_data,
126 gpointer *result,
const gchar *tag);
128 sixtp* generic_gnc_numeric_parser_new(
void);
130 sixtp* restore_char_generator(sixtp_end_handler ender);
Use a 64-bit unsigned int timespec.