diff options
| author | Philip Withnall <philip@tecnocode.co.uk> | 2010-10-04 00:18:22 +0100 |
|---|---|---|
| committer | Philip Withnall <philip@tecnocode.co.uk> | 2010-10-04 10:30:17 +0100 |
| commit | a6762e29ab0ffb275e907fe927c7fe96e3b1dfc8 (patch) | |
| tree | 2b30eb2aaa547e31b2f8f2b1fc3c27fc964a455f /gdata/gdata-parser.h | |
| parent | fc13dc995e8afc12e154f384554cbf613da76e48 (diff) | |
| download | libgdata-a6762e29ab0ffb275e907fe927c7fe96e3b1dfc8.tar.gz | |
core: Use gint64 timestamps instead of GTimeVals
This means we no longer have to register GTimeVal with the GType system, and
everything is generally neater because we never used GTimeVal's microsecond
precision anyway.
Diffstat (limited to 'gdata/gdata-parser.h')
| -rw-r--r-- | gdata/gdata-parser.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdata/gdata-parser.h b/gdata/gdata-parser.h index c2d8fd12..997de5c4 100644 --- a/gdata/gdata-parser.h +++ b/gdata/gdata-parser.h @@ -35,8 +35,10 @@ gboolean gdata_parser_error_mutexed_properties (xmlNode *element, const gchar *p gboolean gdata_parser_error_required_element_missing (const gchar *element_name, const gchar *parent_element_name, GError **error); gboolean gdata_parser_error_duplicate_element (xmlNode *element, GError **error); -gboolean gdata_parser_time_val_from_date (const gchar *date, GTimeVal *_time); -gchar *gdata_parser_date_from_time_val (const GTimeVal *_time) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC; +gboolean gdata_parser_int64_from_date (const gchar *date, gint64 *_time); +gchar *gdata_parser_date_from_int64 (gint64 _time) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC; +gchar *gdata_parser_int64_to_iso8601 (gint64 _time) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC; +gboolean gdata_parser_int64_from_iso8601 (const gchar *date, gint64 *_time); /* * GDataParserOptions: @@ -69,8 +71,8 @@ gboolean gdata_parser_is_namespace (xmlNode *element, const gchar *namespace_uri gboolean gdata_parser_string_from_element (xmlNode *element, const gchar *element_name, GDataParserOptions options, gchar **output, gboolean *success, GError **error); -gboolean gdata_parser_time_val_from_element (xmlNode *element, const gchar *element_name, GDataParserOptions options, - GTimeVal *output, gboolean *success, GError **error); +gboolean gdata_parser_int64_from_element (xmlNode *element, const gchar *element_name, GDataParserOptions options, + gint64 *output, gboolean *success, GError **error); gboolean gdata_parser_object_from_element_setter (xmlNode *element, const gchar *element_name, GDataParserOptions options, GType object_type, gpointer /* GDataParserSetterFunc */ _setter, gpointer /* GDataParsable * */ _parent_parsable, gboolean *success, GError **error); |
