00001
00002 #ifndef _mp_ext_h_
00003 #define _mp_ext_h_
00004 #if defined(__cplusplus)
00005 extern "C" {
00006 #endif
00007 int CDB___memp_alloc __P((DB_MPOOL *,
00008 REGINFO *, MPOOLFILE *, size_t, roff_t *, void *));
00009 int CDB___memp_bhwrite
00010 __P((DB_MPOOL *, MPOOLFILE *, BH *, int *, int *));
00011 int CDB___memp_pgread __P((DB_MPOOLFILE *, BH *, int));
00012 int CDB___memp_pgwrite
00013 __P((DB_MPOOL *, DB_MPOOLFILE *, BH *, int *, int *));
00014 int CDB___memp_pg __P((DB_MPOOLFILE *, BH *, int));
00015 void CDB___memp_bhfree __P((DB_MPOOL *, BH *, int));
00016 int CDB___memp_fopen __P((DB_MPOOL *, MPOOLFILE *, const char *,
00017 u_int32_t, int, size_t, int, DB_MPOOL_FINFO *, DB_MPOOLFILE **));
00018 void CDB___memp_mf_discard __P((DB_MPOOL *, MPOOLFILE *));
00019 int CDB___memp_fremove __P((DB_MPOOLFILE *));
00020 char * CDB___memp_fn __P((DB_MPOOLFILE *));
00021 char * CDB___memp_fns __P((DB_MPOOL *, MPOOLFILE *));
00022 void CDB___memp_dbenv_create __P((DB_ENV *));
00023 int CDB___memp_open __P((DB_ENV *));
00024 int CDB___memp_close __P((DB_ENV *));
00025 void CDB___memp_dump_region __P((DB_ENV *, char *, FILE *));
00026 int CDB___mp_xxx_fh __P((DB_MPOOLFILE *, DB_FH **));
00027 int CDB___memp_cmpr __P((DB_MPOOLFILE *, BH *, DB_IO *, int, ssize_t *));
00028 int CDB___memp_cmpr_read_meta __P((DB_ENV *, DB_FH *, void *, size_t, ssize_t *));
00029 int CDB___memp_cmpr_read __P((DB_MPOOLFILE *, BH *, DB_IO *, ssize_t *));
00030 int CDB___memp_cmpr_write __P((DB_MPOOLFILE *, BH *, DB_IO *, ssize_t *));
00031 int CDB___memp_cmpr_inflate __P((DB_ENV *, const u_int8_t *, int, u_int8_t *, int, void *));
00032 int CDB___memp_cmpr_deflate __P((DB_ENV *, const u_int8_t *, int, u_int8_t **, int*, void *));
00033 u_int8_t CDB___memp_cmpr_coefficient __P((DB_ENV *dbenv));
00034 int CDB___memp_cmpr_create __P((DB_ENV *, DB_FH *, size_t, int));
00035 int CDB___memp_cmpr_open __P((DB_ENV *, MPOOLFILE *, const char *));
00036 int CDB___memp_cmpr_close __P((DB_ENV *, DB_MPOOLFILE *));
00037 int CDB___memp_cmpr_alloc __P((DB_MPOOLFILE *, db_pgno_t *, size_t, BH *, int *));
00038 int CDB___memp_cmpr_free __P((DB_MPOOLFILE *, db_pgno_t, size_t));
00039 int CDB___memp_cmpr_alloc_chain __P((DB_MPOOL *, BH *, int));
00040 int CDB___memp_cmpr_free_chain __P((DB_MPOOL *, BH *));
00041 #if defined(__cplusplus)
00042 }
00043 #endif
00044 #endif