diff options
author | JP Rosevear <jpr@helixcode.com> | 2000-10-24 06:18:44 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2000-10-24 06:18:44 +0800 |
commit | ecb43703f84f5ec6b43b8f5b1ee7fa363e144af8 (patch) | |
tree | aea6396dcb01489f88f47e7fa7e58deedd04a6c8 /e-util/e-pilot-map.h | |
parent | 50a68e6b6b60eb6fbf35129867002ef722182ce2 (diff) | |
download | gsoc2013-evolution-ecb43703f84f5ec6b43b8f5b1ee7fa363e144af8.tar gsoc2013-evolution-ecb43703f84f5ec6b43b8f5b1ee7fa363e144af8.tar.gz gsoc2013-evolution-ecb43703f84f5ec6b43b8f5b1ee7fa363e144af8.tar.bz2 gsoc2013-evolution-ecb43703f84f5ec6b43b8f5b1ee7fa363e144af8.tar.lz gsoc2013-evolution-ecb43703f84f5ec6b43b8f5b1ee7fa363e144af8.tar.xz gsoc2013-evolution-ecb43703f84f5ec6b43b8f5b1ee7fa363e144af8.tar.zst gsoc2013-evolution-ecb43703f84f5ec6b43b8f5b1ee7fa363e144af8.zip |
Use new libeconduit calls and abstraction
2000-10-23 JP Rosevear <jpr@helixcode.com>
* conduit/address-conduit.h: Use new libeconduit calls and
abstraction
* conduit/address-conduit.c: ditto
2000-10-23 JP Rosevear <jpr@helixcode.com>
* conduits/todo/todo-conduit.h: Use new libeconduit calls and
abstraction
* conduits/calendar/calendar-conduit.c: ditto
* conduits/calendar/calendar-conduit.h: ditto
* conduits/todo/todo-conduit.c: ditto
* conduits/calendar/Makefile.am: Add libeconduit-static.la
* conduits/calendar/calendar-conduit.c (post_sync): Use e_pilot_map_write
(pre_sync): Use e_pilot_map_read
2000-10-23 JP Rosevear <jpr@helixcode.com>
* e-pilot-map.c: Operate with EPilotMap structure so things are
abstract to the caller
(e_pilot_map_pid_is_archived): Infrastructure for marking records
as archived
(e_pilot_map_uid_is_archived): ditto
* e-pilot-map.h: Add more to public interface, including EPilotMap
structure
svn path=/trunk/; revision=6134
Diffstat (limited to 'e-util/e-pilot-map.h')
-rw-r--r-- | e-util/e-pilot-map.h | 24 |
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 */ |