[epiphany/history-rewrite: 43/45] ephy-history-service: add a host field to the EphyHistoryURL structure
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/history-rewrite: 43/45] ephy-history-service: add a host field to the EphyHistoryURL structure
- Date: Wed, 24 Aug 2011 19:42:55 +0000 (UTC)
commit d3dacffcf6adfa4d80407f02f7837b3c984e6b41
Author: Claudio Saavedra <csaavedra igalia com>
Date: Wed Aug 3 18:22:17 2011 +0300
ephy-history-service: add a host field to the EphyHistoryURL structure
lib/history/ephy-history-types.c | 3 +++
lib/history/ephy-history-types.h | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/lib/history/ephy-history-types.c b/lib/history/ephy-history-types.c
index 0a5d263..1a8fc43 100644
--- a/lib/history/ephy-history-types.c
+++ b/lib/history/ephy-history-types.c
@@ -129,6 +129,7 @@ ephy_history_url_new (const char *url, const char *title, int visit_count, int t
history_url->typed_count = typed_count;
history_url->last_visit_time = last_visit_time;
history_url->zoom_level = zoom_level;
+ history_url->host = NULL;
return history_url;
}
@@ -146,6 +147,7 @@ ephy_history_url_copy (EphyHistoryURL *url)
url->last_visit_time,
url->zoom_level);
copy->id = url->id;
+ copy->host = ephy_history_host_copy (url->host);
return copy;
}
@@ -157,6 +159,7 @@ ephy_history_url_free (EphyHistoryURL *url)
g_free (url->url);
g_free (url->title);
+ ephy_history_host_free (url->host);
g_slice_free1 (sizeof (EphyHistoryURL), url);
}
diff --git a/lib/history/ephy-history-types.h b/lib/history/ephy-history-types.h
index 2babd4c..0f50ec1 100644
--- a/lib/history/ephy-history-types.h
+++ b/lib/history/ephy-history-types.h
@@ -59,6 +59,7 @@ typedef struct _EphyHistoryURL
int typed_count;
int last_visit_time;
double zoom_level;
+ EphyHistoryHost *host;
} EphyHistoryURL;
typedef struct _EphyHistoryPageVisit
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]