diff options
Diffstat (limited to 'e-util/e-pilot-map.c')
-rw-r--r-- | e-util/e-pilot-map.c | 13 |
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) { |