aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-pilot-map.h
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-pilot-map.h')
-rw-r--r--e-util/e-pilot-map.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/e-util/e-pilot-map.h b/e-util/e-pilot-map.h
index 87d983b292..e910f43317 100644
--- a/e-util/e-pilot-map.h
+++ b/e-util/e-pilot-map.h
@@ -23,7 +23,27 @@
#ifndef E_PILOT_MAP_H
#define E_PILOT_MAP_H
-int e_pilot_map_read (const char *filename, GHashTable *pid_map, GHashTable *uid_map, time_t *since);
-int e_pilot_map_write (const char *filename, GHashTable *pid_map);
+#include <glib.h>
+#include <time.h>
+
+typedef struct _EPilotMap EPilotMap;
+
+struct _EPilotMap
+{
+ GHashTable *pid_map;
+ GHashTable *uid_map;
+
+ time_t since;
+};
+
+gboolean e_pilot_map_pid_is_archived (EPilotMap *map, guint32 pilot_id);
+gboolean e_pilot_map_uid_is_archived (EPilotMap *map, const char *uid);
+
+void e_pilot_map_insert (EPilotMap *map, guint32 pid, const char *uid, gboolean archived);
+
+int e_pilot_map_read (const char *filename, EPilotMap **map);
+int e_pilot_map_write (const char *filename, EPilotMap *map);
+
+void e_pilot_map_destroy (EPilotMap *map);
#endif /* E_PILOT_MAP_H */