aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-pilot-map.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-12-19 23:15:22 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-12-19 23:15:22 +0800
commitd7e3011f5135db26ab911a65e8e5d6ad4faa45df (patch)
treeddba1364634db56216cf3a6fcd3b0a8b41c7ec12 /e-util/e-pilot-map.c
parenteafe9dbcec399e0bdb918e28f373b8aed0291a5b (diff)
downloadgsoc2013-evolution-d7e3011f5135db26ab911a65e8e5d6ad4faa45df.tar.gz
gsoc2013-evolution-d7e3011f5135db26ab911a65e8e5d6ad4faa45df.tar.zst
gsoc2013-evolution-d7e3011f5135db26ab911a65e8e5d6ad4faa45df.zip
clear all info from the map
2001-12-17 JP Rosevear <jpr@ximian.com> * e-pilot-map.c (e_pilot_map_clear): clear all info from the map * e-pilot-map.h: add proto svn path=/trunk/; revision=15177
Diffstat (limited to 'e-util/e-pilot-map.c')
-rw-r--r--e-util/e-pilot-map.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/e-util/e-pilot-map.c b/e-util/e-pilot-map.c
index 93ec68c050..a113427da3 100644
--- a/e-util/e-pilot-map.c
+++ b/e-util/e-pilot-map.c
@@ -275,7 +275,6 @@ e_pilot_map_remove_by_uid (EPilotMap *map, const char *uid)
EPilotMapPidNode *pnode = NULL;
EPilotMapUidNode *unode = NULL;
gpointer pkey, ukey;
- gboolean found;
g_return_if_fail (map != NULL);
g_return_if_fail (uid != NULL);
@@ -425,6 +424,18 @@ foreach_remove (gpointer key, gpointer value, gpointer data)
return TRUE;
}
+void
+e_pilot_map_clear (EPilotMap *map)
+{
+ g_return_if_fail (map != NULL);
+
+ g_hash_table_foreach_remove (map->pid_map, foreach_remove, NULL);
+ g_hash_table_foreach_remove (map->uid_map, foreach_remove, NULL);
+
+ map->since = 0;
+ map->write_touched_only = FALSE;
+}
+
void
e_pilot_map_destroy (EPilotMap *map)
{