[tracker/wip/carlosg/backports-for-3-1: 2/16] libtracker-data: Change TrackerOntology timestamp to be gint64
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/backports-for-3-1: 2/16] libtracker-data: Change TrackerOntology timestamp to be gint64
- Date: Fri, 11 Jun 2021 13:52:12 +0000 (UTC)
commit 04ee8c2cf75a1556f4a1844eedcffacbdb970b58
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Apr 7 12:02:17 2021 +0200
libtracker-data: Change TrackerOntology timestamp to be gint64
So it is the same width for all platforms.
src/libtracker-data/tracker-ontology.c | 6 +++---
src/libtracker-data/tracker-ontology.h | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-data/tracker-ontology.c b/src/libtracker-data/tracker-ontology.c
index edfc14394..a050755b3 100644
--- a/src/libtracker-data/tracker-ontology.c
+++ b/src/libtracker-data/tracker-ontology.c
@@ -32,7 +32,7 @@ typedef struct _TrackerOntologyPrivate TrackerOntologyPrivate;
struct _TrackerOntologyPrivate {
gchar *uri;
- time_t last_modified;
+ gint64 last_modified;
gboolean is_new;
TrackerOntologies *ontologies;
};
@@ -76,7 +76,7 @@ tracker_ontology_new (void)
return ontology;
}
-time_t
+gint64
tracker_ontology_get_last_modified (TrackerOntology *ontology)
{
TrackerOntologyPrivate *priv;
@@ -103,7 +103,7 @@ tracker_ontology_get_is_new (TrackerOntology *ontology)
void
tracker_ontology_set_last_modified (TrackerOntology *ontology,
- time_t value)
+ gint64 value)
{
TrackerOntologyPrivate *priv;
diff --git a/src/libtracker-data/tracker-ontology.h b/src/libtracker-data/tracker-ontology.h
index b1978b9d9..f1cad56ee 100644
--- a/src/libtracker-data/tracker-ontology.h
+++ b/src/libtracker-data/tracker-ontology.h
@@ -51,9 +51,9 @@ struct _TrackerOntologyClass {
GType tracker_ontology_get_type (void) G_GNUC_CONST;
TrackerOntology *tracker_ontology_new (void);
-time_t tracker_ontology_get_last_modified (TrackerOntology *ontology);
+gint64 tracker_ontology_get_last_modified (TrackerOntology *ontology);
void tracker_ontology_set_last_modified (TrackerOntology *ontology,
- time_t value);
+ gint64 value);
const gchar * tracker_ontology_get_uri (TrackerOntology *ontology);
gboolean tracker_ontology_get_is_new (TrackerOntology *ontology);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]