aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-block-file.h
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-block-file.h')
-rw-r--r--camel/camel-block-file.h142
1 files changed, 0 insertions, 142 deletions
diff --git a/camel/camel-block-file.h b/camel/camel-block-file.h
deleted file mode 100644
index e78254e1ed..0000000000
--- a/camel/camel-block-file.h
+++ /dev/null
@@ -1,142 +0,0 @@
-/*
- * Copyright (C) 2001 Ximian Inc.
- *
- * Authors: Michael Zucchi <notzed@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 _CAMEL_BLOCK_FILE_H
-#define _CAMEL_BLOCK_FILE_H
-
-#include <camel/camel-object.h>
-#include <glib.h>
-#include <e-util/e-msgport.h>
-#include <stdio.h>
-
-typedef guint32 camel_block_t; /* block offset, absolute, bottom BLOCK_SIZE_BITS always 0 */
-typedef guint32 camel_key_t; /* this is a bitfield of (block offset:BLOCK_SIZE_BITS) */
-
-typedef struct _CamelBlockRoot CamelBlockRoot;
-typedef struct _CamelBlock CamelBlock;
-typedef struct _CamelBlockFile CamelBlockFile;
-typedef struct _CamelBlockFileClass CamelBlockFileClass;
-
-#define CAMEL_BLOCK_FILE_SYNC (1<<0)
-
-#define CAMEL_BLOCK_SIZE (1024)
-#define CAMEL_BLOCK_SIZE_BITS (10) /* # bits to contain block_size bytes */
-
-#define CAMEL_BLOCK_DIRTY (1<<0)
-#define CAMEL_BLOCK_DETACHED (1<<1)
-
-struct _CamelBlockRoot {
- char version[8]; /* version number */
-
- guint32 flags; /* flags for file */
- guint32 block_size; /* block size of this file */
- camel_block_t free; /* free block list */
- camel_block_t last; /* pointer to end of blocks */
-
- /* subclasses tack on, but no more than CAMEL_BLOCK_SIZE! */
-};
-
-/* LRU cache of blocks */
-struct _CamelBlock {
- struct _CamelBlock *next;
- struct _CamelBlock *prev;
-
- camel_block_t id;
- guint32 flags;
- guint32 refcount;
- guint32 align00;
-
- unsigned char data[CAMEL_BLOCK_SIZE];
-};
-
-struct _CamelBlockFile {
- CamelObject parent;
-
- struct _CamelBlockFilePrivate *priv;
-
- char version[8];
- char *path;
- int flags;
-
- int fd;
- size_t block_size;
-
- CamelBlockRoot *root;
- CamelBlock *root_block;
-
- /* make private? */
- int block_cache_limit;
- int block_cache_count;
- EDList block_cache;
- GHashTable *blocks;
-};
-
-struct _CamelBlockFileClass {
- CamelObjectClass parent;
-
- int (*validate_root)(CamelBlockFile *);
- int (*init_root)(CamelBlockFile *);
-};
-
-CamelType camel_block_file_get_type(void);
-
-CamelBlockFile *camel_block_file_new(const char *path, int flags, const char version[8], size_t block_size);
-int camel_block_file_rename(CamelBlockFile *bs, const char *path);
-
-CamelBlock *camel_block_file_new_block(CamelBlockFile *bs);
-int camel_block_file_free_block(CamelBlockFile *bs, camel_block_t id);
-CamelBlock *camel_block_file_get_block(CamelBlockFile *bs, camel_block_t id);
-void camel_block_file_detach_block(CamelBlockFile *bs, CamelBlock *bl);
-void camel_block_file_attach_block(CamelBlockFile *bs, CamelBlock *bl);
-void camel_block_file_touch_block(CamelBlockFile *bs, CamelBlock *bl);
-void camel_block_file_unref_block(CamelBlockFile *bs, CamelBlock *bl);
-int camel_block_file_sync_block(CamelBlockFile *bs, CamelBlock *bl);
-int camel_block_file_sync(CamelBlockFile *bs);
-
-/* ********************************************************************** */
-
-typedef struct _CamelKeyFile CamelKeyFile;
-typedef struct _CamelKeyFileClass CamelKeyFileClass;
-
-struct _CamelKeyFile {
- CamelObject parent;
-
- struct _CamelKeyFilePrivate *priv;
-
- FILE *fp;
- char *path;
- int flags;
- off_t last;
-};
-
-struct _CamelKeyFileClass {
- CamelObjectClass parent;
-};
-
-CamelType camel_key_file_get_type(void);
-
-CamelKeyFile * camel_key_file_new(const char *path, int flags, const char version[8]);
-int camel_key_file_rename(CamelKeyFile *kf, const char *path);
-
-int camel_key_file_write(CamelKeyFile *kf, camel_block_t *parent, size_t len, camel_key_t *records);
-int camel_key_file_read(CamelKeyFile *kf, camel_block_t *start, size_t *len, camel_key_t **records);
-
-
-#endif /* ! _CAMEL_BLOCK_FILE_H */
amp;id=1aa1cdae6708cf44a58b5f272b34be8bac3847a5'>Add new dependencycrees2013-08-091-0/+1 * - Update to 1.13 [1]culot2013-08-092-16/+24 * - Update to 1.18 [1]culot2013-08-083-19/+18 * - Update to 0.51jadawin2013-08-082-3/+3 * Security updatetimur2013-08-082-4/+4 * - Update EFL to 1.7.8gblach2013-08-082-4/+3 * - Convert to new perl frameworkaz2013-08-071-1/+2 * - Update to 2.011sunpoet2013-08-062-3/+3 * - Convert to new perl frameworkaz2013-08-062-12/+6 * Security updatetimur2013-08-062-4/+4 * - Convert to new perl frameworkaz2013-08-053-8/+7 * - Try to properly fix parallel (-jX) builds, remove MAKE_JOBS_UNSAFEdanfe2013-08-053-35/+61 * Change the clang detector to use a pattern match instead of a conditionalehaupt2013-08-041-4/+2 * - Convert to new perl frameworkaz2013-08-043-8/+7 * - update to 1.0jgh2013-08-042-3/+3 * Fix logic in clang detection.ehaupt2013-08-041-1/+1 * . Update to 1.4.20.glewis2013-08-044-19/+31 * Convert to using the perl framework for build instead of only installing themat2013-08-032-13/+11 * - Convert to new perl frameworkmat2013-08-039-12/+18 * Convert to new perl framework.mat2013-08-031-1/+2 * - Convert to new perl frameworkaz2013-08-037-38/+13 * - Convert to new perl frameworkmat2013-08-031-6/+3 * - Convert to new perl frameworkmat2013-08-03108-388/+270 * - Fix INDEXaz2013-08-031-7/+4 * - Convert to new perl frameworkaz2013-08-0319-21/+42 * - Unbreak the build, sort the knobs, generally cleanup Makefiledanfe2013-08-024-45/+39 * Fix build with newer binutilsbapt2013-08-021-1/+2 * Fix typobapt2013-08-021-1/+1 * Do proper primary IP selection.melifaro2013-08-023-0/+94 * Simplify by dropping support for FreeBSD prior to 8.0-RELEASE.naddy2013-08-014-91/+6 * net/quagga: update to 0.99.22.3wg2013-08-012-7/+4 * Fix build with clangbapt2013-08-011-7/+4 * Fix build with clangbapt2013-08-011-6/+3 * - Really use new perl5 framework correctly.jadawin2013-07-311-1/+1 * - Update to 0.50jadawin2013-07-312-4/+5 * The FreeBSD GNOME team presents a Glib and Gtk+ 3 update.kwm2013-07-314-9/+14 * - Tentatively try to unbreak parallel (-jX) builds by avoiding a race whendanfe2013-07-312-43/+39 * - Convert to new Uses/perl5.mk frameworkaz2013-07-312-7/+5 * Update net/smbldap-tools to 0.9.10mm2013-07-313-3/+4 * Update to 0.13.0cs2013-07-314-6/+13 * Provide 'dynamicrouting' in rc script.melifaro2013-07-311-1/+1 * Update net/bird & net/bird6 to 1.3.11melifaro2013-07-317-393/+9 * Fix build with clang by forcing gnu89bapt2013-07-301-5/+2 * Fix build with current: standard gnu89 + -Wno-return-typebapt2013-07-301-1/+3 * - Contrary to what comment says, we do not need clang or GCC 4.6+ to build,danfe2013-07-301-27/+5 * - Update to 0.7.3jgh2013-07-304-14/+36 * Convert non supported USE_PKGCONFIG to USES=pkgconfig [1]bapt2013-07-301-4/+2 * New port: rubygem-network_interfaceantoine2013-07-304-0/+25 * Fix my email address again, using proper @FreeBSD.org stylingfeld2013-07-292-3/+3 * - Trim Makefile header to standard two linesdanfe2013-07-291-13/+25 * Remove net/ns2, which is practically identical copy of net/ns.danfe2013-07-298-228/+0 * Support 8.4-REL.kuriyama2013-07-283-17/+21 * net/jicmp6: update to 1.2.1wg2013-07-282-4/+4 * - Tighten Makefile header and COMMENTdanfe2013-07-282-13/+18 * - Update to 0.22sunpoet2013-07-282-3/+3 * Update to 1.10.1. Seemarcus2013-07-282-3/+3 * - Update to 3.2.1swills2013-07-282-3/+3 * - Reset maintainer after no response to mail since Jan 2013swills2013-07-281-1/+1 * remove GCC requirementcrees2013-07-271-9/+5 * - Update to 0.9.7swills2013-07-272-3/+5 * Mark as deprecated, the port is vulnerable for long with noone to take care o...bapt2013-07-271-0/+3 * net/jicmp: update to 1.4.1wg2013-07-272-11/+6 * net/minidlna: remove required dirswg2013-07-272-1/+1 * Deprecate and set expiration date for ports broken for more than 6 monthbapt2013-07-271-0/+2 * KDE3 and QT3 expired on 2013-07-01, remove these ports.rene2013-07-2777-3896/+0 * - Fix leftoversaz2013-07-261-0/+2 * - switch simple inline replacement from perl to sedaz2013-07-2610-50/+25 * Fix build with recent binutilsbapt2013-07-261-8/+3 * - switch simple inline replacement from perl to sedaz2013-07-261-8/+3 * Fix build with linker that does not copy the dt_need from libraries it linksbapt2013-07-261-3/+2 * Mark as broken: it needs utmp.hbapt2013-07-261-8/+9 * - cleanup leftoversjgh2013-07-261-2/+2 * - unbreak package creationjgh2013-07-261-5/+11 * Make sure res_rtp_asterisk.so gets built. It required libuuid now.flo2013-07-263-12/+6 * Update to 1.6.5bjk2013-07-262-5/+5 * Update my email address throughout the treefeld2013-07-252-3/+3 * Add a patch to fix gcc build on head.hrs2013-07-251-0/+18 * - update to 0.99 (bugfix release)jgh2013-07-252-3/+3 * - Update to 1.1.7tota2013-07-242-4/+3 * - Move misc/rabbit to misc/rubygem-rabbit [1]tota2013-07-245-0/+57 * Update to 1.8.23.0flo2013-07-243-8/+7 * Update to 11.5.0flo2013-07-243-9/+7 * Remove MAKE_JOBS_SAFE which is now default.ehaupt2013-07-249-11/+0 * - Fix build with Tcl/Tk 8.6gahr2013-07-242-1/+17 * Mark as broken: does not buildbapt2013-07-241-0/+2 * Hack around fallout from recent update to automake-1.14ade2013-07-242-0/+10 * OWAMP is a command line client application and a policy daemon usedpawel2013-07-245-0/+71 * Fix plist, ospfclient manpage is only installed when OSPF_OPAQUE_LSA=onpawel2013-07-241-2/+3 * - Update to 0.49culot2013-07-233-4/+4 * - update to 0.98 [1]jgh2013-07-232-3/+3 * Update to 2.0.4martymac2013-07-232-3/+3 * iLBC (internet Low Bitrate Codec) is a FREE speech codec suitable for robustmva2013-07-236-0/+45 * - Don't touch $HOME/.config during build stagemakc2013-07-222-20/+2 * Mark MAKE_JOBS_UNSAFE on amd64.marcus2013-07-221-1/+7 * - Changed my emailvg2013-07-223-6/+6 * net/hornetq: Mark BROKEN, builds outside $WRKDIRmarino2013-07-221-1/+2 * - Update to 0.3.10swills2013-07-222-4/+4 * - Add patch to fix build [1]tota2013-07-222-6/+18 * - Update to 2.10sunpoet2013-07-213-28/+19 * Make MAKE_JOBS_UNSAFE.vanilla2013-07-211-2/+3 * Add net/packetdrill, a network stack testing tool.hrs2013-07-2112-0/+124 * Fix directory permission.hrs2013-07-211-3/+3 * - Fix buildswills2013-07-192-6/+28 * - Fix the installation errordanfe2013-07-193-50/+27 * - Update to 2.37culot2013-07-193-6/+6 * Allow avahi slaves to add to USE_GNOME, this fixes the build in cleankwm2013-07-183-3/+3 * Don't set PORTREVISION here, but inherit from master port.erwin2013-07-171-1/+0 * Update to 2.0.3martymac2013-07-172-3/+3 * - FIx plismiwi2013-07-171-0/+1 * - Update to 0.80.0miwi2013-07-173-5/+7 * Remove now excess verbiage.eadler2013-07-171-2/+0 * - Unbreak build after autotool updatemiwi2013-07-161-0/+1 * - Update devel/automake to 1.14ade2013-07-162-0/+2 * - Update to 1.6.1sunpoet2013-07-162-3/+3 * Make sure the binaries are linked against the port OpenSSL libraries whenehaupt2013-07-151-0/+6 * Add new avahi-header port.kwm2013-07-151-0/+1 * Remove avahi-qt3 for real, missed int he avahi update of r323006kwm2013-07-153-39/+0 * Update to 0.6.31.kwm2013-07-1519-109/+135 * Update to version 4.2.62pawel2013-07-152-3/+3 * - Update to 0.85sunpoet2013-07-132-9/+12 * Mark as brokenbapt2013-07-131-0/+2 * - Update to 3.1.3swills2013-07-132-8/+4 * - Update to 0.8.0swills2013-07-132-8/+4 * Remove net/urtwn-firmware-kmod, integrated to head/ as of r253139.gjb2013-07-135-52/+0 * - rc script improvementsfeld2013-07-122-10/+18 * - Update to 1.2.4martymac2013-07-123-11/+6 * I have taken over x11-wm/libdockapxride2013-07-121-3/+0 * - Update to 7.31.0sunpoet2013-07-1218-18/+24 * Make avahi-app a lib_depend, ekiga needs it on run time.kwm2013-07-111-2/+2 * Update to 1.8.15.kwm2013-07-113-5/+6 * Mark job unsafebapt2013-07-111-7/+5 * Mark job unsafebapt2013-07-112-5/+5 * - fix from conversion in r322709jgh2013-07-111-1/+1 * Fix PORTSDIR not already defined by using relative pathbapt2013-07-111-1/+1 * Fix pure by removing the useless pre.mk/post.mk dancingbapt2013-07-111-7/+2 * Convert my ports to current standardspawel2013-07-111-0/+2 * Mark job unsafebapt2013-07-111-5/+2 * Mark jobs unsafebapt2013-07-101-7/+4 * Fix build with --std=c++11rene2013-07-102-0/+21 * Mark jobs unsafebapt2013-07-101-5/+2 * Mark jobs unsafebapt2013-07-101-6/+3 * Mark job unsafebapt2013-07-101-5/+3 * Convert from USE_MOTIF to USES=motifbapt2013-07-102-5/+4 * - Update to 2.010sunpoet2013-07-102-3/+3 * - Update to 0.9.2sunpoet2013-07-102-4/+4 * Adopt, pet portlint a bit and update to new ports features.kwm2013-07-101-14/+10 * Take maintainership.rene2013-07-102-12/+4 * - Drop all my portspav2013-07-103-3/+3 * Update port to the latest 4.0.7 version. Main binary samba4 was renamed backtimur2013-07-0911-151/+57 * - Add targets' missing prerequisites to allow parallel buildsdanfe2013-07-093-19/+49 * Csync is a lightweight utility to synchronize files between two directories onlippe2013-07-098-0/+146 * Convert the ports I maintain to USES=gmake.madpilot2013-07-092-2/+2 * - Convert USE_GMAKE to USES=gmakeehaupt2013-07-094-12/+4 * - recover lost description for option BPFdinoex2013-07-091-1/+1 * - remove Authordinoex2013-07-091-2/+1 * - Update to 5.0.2nivit2013-07-083-8/+16 * net/pyrad: update to 2.0wg2013-07-084-49/+97 * - Fix build with Tcl/Tk 8.6 [1]gahr2013-07-082-5/+38 * Mark as job unsafe, drop maintainershipbapt2013-07-081-1/+2 * - Update to 1.15clsung2013-07-082-3/+3 * - Update to 1.0.2clsung2013-07-082-3/+3 * - Update to 1.0.2clsung2013-07-082-7/+4 * - Update to 1.6.0clsung2013-07-082-7/+4 * net/py-kombu: fix USE_PYTHONwg2013-07-081-1/+1 * - update to 1.1.5rm2013-07-082-3/+3 * - update to 2.4.13rm2013-07-082-15/+10 * Remove usage of X_FONTS_MISC_PORT and X_FONTS_ALIAS_PORTbapt2013-07-071-2/+2 * net/turses: Update to 0.2.15koobs2013-07-072-5/+5 * - Update to 3.1.13zi2013-07-074-6/+14 * - remove broken options SNOOP and PFdinoex2013-07-071-14/+1 * - remove TAB in pkg-descrdinoex2013-07-071-2/+2 * - Update to the latest RCmva2013-07-062-3/+3 * Fix build with clang (USE_CSTD=gnu89) and respect CFLAGS, CPPFLAGStijl2013-07-052-0/+28 * Update the KDE Software Compilation to 4.10.5.rakuco2013-07-055-2/+37 * - Don't force gcc, make this work with clang, too [1]flo2013-07-05