[epiphany/wip/ephy-sync: 82/86] bookmarks: Add 'id' and 'modified' fields needed for the Storage Server
- From: Gabriel - Cristian Ivascu <gabrielivascu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/ephy-sync: 82/86] bookmarks: Add 'id' and 'modified' fields needed for the Storage Server
- Date: Sat, 30 Jul 2016 17:36:57 +0000 (UTC)
commit 28b76fa036b21e2b071fce513e2defbddfca80cf
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date: Sat Jul 30 18:14:05 2016 +0300
bookmarks: Add 'id' and 'modified' fields needed for the Storage Server
src/ephy-bookmark.c | 17 +++++++++++++++++
src/ephy-bookmark.h | 3 +++
2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-bookmark.c b/src/ephy-bookmark.c
index 86da2c1..4b67f9b 100644
--- a/src/ephy-bookmark.c
+++ b/src/ephy-bookmark.c
@@ -34,6 +34,7 @@ struct _EphyBookmark {
GSequence *tags;
char *id;
+ float modified;
};
static JsonSerializableIface *serializable_iface = NULL;
@@ -263,6 +264,22 @@ ephy_bookmark_get_title (EphyBookmark *bookmark)
return bookmark->title;
}
+const char *
+ephy_bookmark_get_id (EphyBookmark *self)
+{
+ g_return_val_if_fail (EPHY_IS_BOOKMARK (self), NULL);
+
+ return self->id;
+}
+
+float
+ephy_bookmark_get_modified (EphyBookmark *self)
+{
+ g_return_val_if_fail (EPHY_IS_BOOKMARK (self), -1);
+
+ return self->modified;
+}
+
void
ephy_bookmark_add_tag (EphyBookmark *self,
const char *tag)
diff --git a/src/ephy-bookmark.h b/src/ephy-bookmark.h
index b9666d0..a62dff8 100644
--- a/src/ephy-bookmark.h
+++ b/src/ephy-bookmark.h
@@ -33,6 +33,9 @@ EphyBookmark *ephy_bookmark_new (char *url,
const char *ephy_bookmark_get_url (EphyBookmark *self);
const char *ephy_bookmark_get_title (EphyBookmark *self);
+const char *ephy_bookmark_get_id (EphyBookmark *self);
+float ephy_bookmark_get_modified (EphyBookmark *self);
+
void ephy_bookmark_add_tag (EphyBookmark *self,
const char *tag);
void ephy_bookmark_remove_tag (EphyBookmark *self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]