aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-pilot-map.h
blob: ff02994645418d50bab840103a500a0e88e6369e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* Evolution Conduits - Pilot Map routines
 *
 * Copyright (C) 2000 Ximian, Inc.
 *
 * Authors: JP Rosevear <jpr@ximian.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of version 2 of the GNU General Public
 * License as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public
 * License along with this program; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef E_PILOT_MAP_H
#define E_PILOT_MAP_H

#include <glib.h>
#include <time.h>

typedef struct _EPilotMap EPilotMap;

struct _EPilotMap
{
    GHashTable *pid_map;
    GHashTable *uid_map;

    time_t since;

    gboolean write_touched_only;
};

gboolean e_pilot_map_pid_is_archived (EPilotMap *map, guint32 pid);
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);
void e_pilot_map_remove_by_pid (EPilotMap *map, guint32 pid);
void e_pilot_map_remove_by_uid (EPilotMap *map, const char *uid);

guint32 e_pilot_map_lookup_pid (EPilotMap *map, const char *uid, gboolean touch);
const char * e_pilot_map_lookup_uid (EPilotMap *map, guint32 pid, gboolean touch);

int e_pilot_map_read (const char *filename, EPilotMap **map);
int e_pilot_map_write (const char *filename, EPilotMap *map);

void e_pilot_map_clear (EPilotMap *map);

void e_pilot_map_destroy (EPilotMap *map);

#endif /* E_PILOT_MAP_H */
one?h=gnome-3.24&id=fad424db6aa8e3d5d3787f06534ab341318a0851'>Make portlint(1) happy by changing strip to ${STRIP_CMD}osa2003-09-243-4/+4 * [PATCH] mbone/wb: enable choose of ghostscript interpreteredwin2003-08-311-1/+15 * Update to 7.6a.naddy2003-06-264-36/+43 * Undo an obsoleted patch to include <sys/soundcard.h> instead ofkris2003-05-101-3/+3 * Use -DAUDIO_BLOCKING. This should hopefully fix sfmike wedging and becomingadamw2003-03-241-1/+1 * Clear moonlight beckons.ade2003-03-0720-10/+10 * Remove RESTRICTED tag for crypto stuff.nork2003-02-232-3/+0 * De-pkg-comment.knu2003-02-214-2/+2 * De-pkg-comment.knu2003-02-214-2/+2 * Don't treat alpha specially with INT_64. INT_64 is not used consistentlyfenner2003-02-011-0/+15 * Make the struct huffentry public so that global variablesfenner2003-01-241-0/+16 * Use std::memset instead of just memsetfenner2003-01-241-0/+73 * Fix signal handler prototype to make newer g++ happyfenner2003-01-242-0/+18 * Build with tcl/tk 8.3fenner2003-01-242-37/+37 * Change of back-up location.orion2003-01-211-3/+3 * Partially fix build on sparc64 (Don't need to prototype inet_ntopkris2003-01-121-0/+13 * fix fetch for mbone/speak-freelyedwin2002-12-126-88/+54 * Fix fetcharved2002-12-111-1/+1 * Made mbone/rat compiling again (double patch-file)edwin2002-11-151-53/+0 * o Rollback PORTCOMMENT modifications while this feature's implementationlioux2002-11-114-4/+2 * Use PORTCOMMENT in the Makefile, and whack the pkg-comment.adamw2002-11-074-2/+4 * Change MAINTAINER to tmutoh@mx10.freecom.ne.jp.nork2002-10-271-1/+1 * Fix build on -current and respect CC and CFLAGSkris2002-10-215-72/+96 * MASTER_SITE moved. Upgrade still to do.fenner2002-10-081-1/+1 * Fix broken rtpmon build.fenner2002-09-303-12/+35 * Fix broken rqm port to work with more modern uclmmbasefenner2002-09-301-0/+18 * Fix build on -current (machine/soundcard.h -> sys/soundcard.h)kris2002-09-082-0/+22 * Update to version 4.2.22.orion2002-08-114-293/+8 * Bump PORTREVISION.jkoshy2002-06-131-0/+1 * Fix a bug that removes a startup problem with rtpmon, namely erroring outjkoshy2002-06-111-0/+10 * machine/soundcard.h -> sys/soundcard.hpetef2002-06-071-0/+5 * Support IPv6.sumikawa2002-03-244-2/+81 * Sync to rat-4.2.20.orion2002-02-259-168/+305 * Fix MASTER_SITES and remove redundant distinfo entrypat2002-02-082-2/+1 * Fix for autoconfpat2002-01-271-2/+2 * Fix for -CURRENT, malloc.h->stdlib.hpat2002-01-021-0/+4 * Set LATEST_LINK to rat30.knu2001-11-071-0/+2 * Sort entries and remove a duplicate "rqm".knu2001-09-211-2/+1 * Replace the ghostscript55 dependencies with ghostscript-gnu.knu2001-09-121-1/+1 * Make nte initialize TCL properly.fenner2001-08-021-0/+16 * Update to vic 2.8ucl-1.1.3fenner2001-08-0230-3415/+149 * New port for multicast AV tool.kiri2001-06-079-0/+113 * New port for RAT(network audio tool) version 3.kiri2001-06-0710-0/+199 * wb compatible open source shared whiteboard programassar2001-05-127-0/+90 * Update to rtptools 1.17fenner2001-04-225-52/+54 * Remove patch-agmharo2001-04-061-13/+0 * Fix buildmharo2001-04-062-10/+59 * Correct reversed patchmharo2001-04-061-4/+4 * Remove empty filemharo2001-04-061-0/+0 * Update to 4.2.13mharo2001-04-026-1085/+43 * Bump PORTREVISION to reflect Orion's fix for newpcm duplex and mixers.fenner2001-02-161-0/+1 * patch-ah: add Orion Hodson's full-duplex probing and AC97 fixfenner2001-02-155-110/+123 * Massive style enforcement - use ^I instead of spaces for variables identation.sobomax2001-01-173-15/+15 * ghostscript5 doesn't exist anymore, so change dependencies to ghostscript55.asami2000-11-251-1/+1 * newpcm reports the mixer vol control as an input, but it is an outputsobomax2000-11-021-0/+20 * Add PORTREVISION=1 to reflect the changed behaviour by the previoussumikawa2000-09-221-0/+1 * Enable IPv6.sumikawa2000-09-223-39/+71