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)
{
class='deletions'>-0/+2 * Chase the checksum: trivial source changeskris2000-04-301-1/+1 * Revert erich's ports to ports@FreeBSD.org, as erich has been non-responsivekris2000-04-241-1/+1 * PORTNAME/PORTVERSION updatemharo2000-04-121-3/+3 * portlint: PREFIX -> LOCALBASEmharo2000-02-031-2/+2 * Update to use Tcl 8.2 and fix build problems on systems with gcc 2.95steve1999-11-291-4/+4 * fix category (tcl81->tcl80)jseger1999-11-021-1/+1 * FreeBSD.ORG -> FreeBSD.orgmharo1999-08-311-1/+1 * To avoid requiring both tcl81 and tcl80, use tcl80 instead since thesteve1999-08-301-3/+3 * Change Id->FreeBSD.obrien1999-08-251-1/+1 * As threatened, enforce the "Capital, no period" rule. Ellipses arehoek1999-06-271-1/+1 * Update SWIG to patch 5ejc1999-01-172-5/+5