aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-node-db.h
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-05-24 05:06:13 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-05-24 05:06:13 +0800
commita98d9364cb5395aca5adc9fa4db219df7545ab98 (patch)
tree59c8fce41d8d0e2e720f433eca186ec4a307ac37 /lib/ephy-node-db.h
parentbf20b4938c2e01f15d72dc2962c12400bb15d4d4 (diff)
downloadgsoc2013-epiphany-a98d9364cb5395aca5adc9fa4db219df7545ab98.tar
gsoc2013-epiphany-a98d9364cb5395aca5adc9fa4db219df7545ab98.tar.gz
gsoc2013-epiphany-a98d9364cb5395aca5adc9fa4db219df7545ab98.tar.bz2
gsoc2013-epiphany-a98d9364cb5395aca5adc9fa4db219df7545ab98.tar.lz
gsoc2013-epiphany-a98d9364cb5395aca5adc9fa4db219df7545ab98.tar.xz
gsoc2013-epiphany-a98d9364cb5395aca5adc9fa4db219df7545ab98.tar.zst
gsoc2013-epiphany-a98d9364cb5395aca5adc9fa4db219df7545ab98.zip
Implement generic way to save/load db and make it low disk safe.
2003-05-23 Marco Pesenti Gritti <marco@it.gnome.org> * embed/ephy-favicon-cache.c: (ephy_favicon_cache_load), (ephy_favicon_cache_save), (ephy_favicon_cache_init), (ephy_favicon_cache_finalize): * embed/ephy-history.c: (ephy_history_load), (ephy_history_save), (ephy_history_init): * lib/ephy-node-db.c: (ephy_node_db_set_version), (ephy_node_db_get_property), (ephy_node_db_set_property), (ephy_node_db_class_init), (ephy_node_db_init), (ephy_node_db_finalize), (ephy_node_db_new), (_ephy_node_db_remove_id), (ephy_node_db_load_from_xml), (ephy_node_db_save_to_xml): * lib/ephy-node-db.h: * lib/ephy-node.c: (ephy_node_to_xml): * lib/ephy-node.h: * lib/ephy-state.c: (ephy_states_load), (ephy_states_save), (ensure_states): * src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_load), (ephy_bookmarks_save), (ephy_bookmarks_init), (ephy_bookmarks_finalize): Implement generic way to save/load db and make it low disk safe.
Diffstat (limited to 'lib/ephy-node-db.h')
-rw-r--r--lib/ephy-node-db.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/ephy-node-db.h b/lib/ephy-node-db.h
index 2b1f8fd7d..d801c4743 100644
--- a/lib/ephy-node-db.h
+++ b/lib/ephy-node-db.h
@@ -54,13 +54,23 @@ GType ephy_node_db_get_type (void);
EphyNodeDb *ephy_node_db_get_by_name (const char *name);
-EphyNodeDb *ephy_node_db_new (const char *name);
+EphyNodeDb *ephy_node_db_new (const char *name,
+ const char *version);
const char *ephy_node_db_get_name (EphyNodeDb *db);
EphyNode *ephy_node_db_get_node_from_id (EphyNodeDb *db,
long id);
+EphyNode *ephy_node_db_get_root_from_id (EphyNodeDb *db,
+ long id);
+
+gboolean ephy_node_db_load_from_xml (EphyNodeDb *db,
+ const char *xml_file);
+
+gboolean ephy_node_db_save_to_xml (EphyNodeDb *db,
+ const char *xml_file);
+
long _ephy_node_db_new_id (EphyNodeDb *db);
void _ephy_node_db_add_id (EphyNodeDb *db,