00001
00002 #ifndef _hash_ext_h_
00003 #define _hash_ext_h_
00004 #if defined(__cplusplus)
00005 extern "C" {
00006 #endif
00007 int CDB___ham_metachk __P((DB *, const char *, HMETA *));
00008 int CDB___ham_open __P((DB *, const char *, db_pgno_t, u_int32_t));
00009 int CDB___ham_c_init __P((DBC *));
00010 int CDB___ham_c_count __P((DBC *, db_recno_t *));
00011 int CDB___ham_c_dup __P((DBC *, DBC *));
00012 u_int32_t CDB___ham_call_hash __P((DBC *, u_int8_t *, int32_t));
00013 int CDB___ham_init_dbt __P((DB_ENV *,
00014 DBT *, u_int32_t, void **, u_int32_t *));
00015 void CDB___ham_c_update
00016 __P((DBC *, db_pgno_t, u_int32_t, int, int));
00017 int CDB___ham_get_clist __P((DB *,
00018 db_pgno_t, u_int32_t, DBC ***));
00019 void CDB___ham_c_chgpg
00020 __P((DBC *, db_pgno_t, u_int32_t, db_pgno_t, u_int32_t));
00021 int CDB___ham_pgin __P((DB_ENV *, db_pgno_t, void *, DBT *));
00022 int CDB___ham_pgout __P((DB_ENV *, db_pgno_t, void *, DBT *));
00023 int CDB___ham_mswap __P((void *));
00024 int CDB___ham_add_dup __P((DBC *, DBT *, u_int32_t, db_pgno_t *));
00025 int CDB___ham_dup_convert __P((DBC *));
00026 int CDB___ham_make_dup __P((DB_ENV *,
00027 const DBT *, DBT *d, void **, u_int32_t *));
00028 void CDB___ham_move_offpage __P((DBC *, PAGE *, u_int32_t, db_pgno_t));
00029 void CDB___ham_dsearch __P((DBC *, DBT *, u_int32_t *, int *));
00030 int CDB___ham_cprint __P((DB *));
00031 u_int32_t CDB___ham_func2 __P((const void *, u_int32_t));
00032 u_int32_t CDB___ham_func3 __P((const void *, u_int32_t));
00033 u_int32_t CDB___ham_func4 __P((const void *, u_int32_t));
00034 u_int32_t CDB___ham_func5 __P((const void *, u_int32_t));
00035 int CDB___ham_get_meta __P((DBC *));
00036 int CDB___ham_release_meta __P((DBC *));
00037 int CDB___ham_dirty_meta __P((DBC *));
00038 int CDB___ham_db_create __P((DB *));
00039 int CDB___ham_db_close __P((DB *));
00040 int CDB___ham_item __P((DBC *, db_lockmode_t, db_pgno_t *));
00041 int CDB___ham_item_reset __P((DBC *));
00042 void CDB___ham_item_init __P((DBC *));
00043 int CDB___ham_item_last __P((DBC *, db_lockmode_t, db_pgno_t *));
00044 int CDB___ham_item_first __P((DBC *, db_lockmode_t, db_pgno_t *));
00045 int CDB___ham_item_prev __P((DBC *, db_lockmode_t, db_pgno_t *));
00046 int CDB___ham_item_next __P((DBC *, db_lockmode_t, db_pgno_t *));
00047 void CDB___ham_putitem __P((PAGE *p, const DBT *, int));
00048 void CDB___ham_reputpair
00049 __P((PAGE *p, u_int32_t, u_int32_t, const DBT *, const DBT *));
00050 int CDB___ham_del_pair __P((DBC *, int));
00051 int CDB___ham_replpair __P((DBC *, DBT *, u_int32_t));
00052 void CDB___ham_onpage_replace __P((PAGE *, size_t, u_int32_t, int32_t,
00053 int32_t, DBT *));
00054 int CDB___ham_split_page __P((DBC *, u_int32_t, u_int32_t));
00055 int CDB___ham_add_el __P((DBC *, const DBT *, const DBT *, int));
00056 void CDB___ham_copy_item __P((size_t, PAGE *, u_int32_t, PAGE *));
00057 int CDB___ham_add_ovflpage __P((DBC *, PAGE *, int, PAGE **));
00058 int CDB___ham_put_page __P((DB *, PAGE *, int32_t));
00059 int CDB___ham_dirty_page __P((DB *, PAGE *));
00060 int CDB___ham_get_page __P((DB *, db_pgno_t, PAGE **));
00061 db_pgno_t CDB___bucket_to_page __P((HASH_CURSOR *, db_pgno_t));
00062 int CDB___ham_get_cpage __P((DBC *, db_lockmode_t));
00063 int CDB___ham_next_cpage __P((DBC *, db_pgno_t, int));
00064 int CDB___ham_lock_bucket __P((DBC *, db_lockmode_t));
00065 void CDB___ham_dpair __P((DB *, PAGE *, u_int32_t));
00066 int CDB___ham_insdel_recover
00067 __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00068 int CDB___ham_newpage_recover
00069 __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00070 int CDB___ham_replace_recover
00071 __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00072 int CDB___ham_splitdata_recover
00073 __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00074 int CDB___ham_copypage_recover
00075 __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00076 int CDB___ham_metagroup_recover
00077 __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00078 int CDB___ham_groupalloc_recover
00079 __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00080 int CDB___ham_reclaim __P((DB *, DB_TXN *txn));
00081 int CDB___ham_stat __P((DB *, void *, void *(*)(size_t), u_int32_t));
00082 int CDB___ham_traverse __P((DB *, DBC *, db_lockmode_t,
00083 int (*)(DB *, PAGE *, void *, int *), void *));
00084 int CDB___ham_30_hashmeta __P((DB *, char *, u_int8_t *));
00085 int CDB___ham_31_hashmeta
00086 __P((DB *, char *, u_int32_t, DB_FH *, PAGE *, int *));
00087 int CDB___ham_31_hash
00088 __P((DB *, char *, u_int32_t, DB_FH *, PAGE *, int *));
00089 int CDB___ham_vrfy_meta __P((DB *, VRFY_DBINFO *, HMETA *,
00090 db_pgno_t, u_int32_t));
00091 int CDB___ham_vrfy __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t,
00092 u_int32_t));
00093 int CDB___ham_vrfy_structure __P((DB *, VRFY_DBINFO *, db_pgno_t,
00094 u_int32_t));
00095 int CDB___ham_vrfy_hashing __P((DB *,
00096 u_int32_t, HMETA *, u_int32_t, db_pgno_t, u_int32_t,
00097 u_int32_t (*) __P((const void *, u_int32_t))));
00098 int CDB___ham_salvage __P((DB *, VRFY_DBINFO *, db_pgno_t, PAGE *,
00099 void *, int (*)(void *, const void *), u_int32_t));
00100 int CDB___ham_meta2pgset __P((DB *, VRFY_DBINFO *, HMETA *, u_int32_t,
00101 DB *));
00102 #if defined(__cplusplus)
00103 }
00104 #endif
00105 #endif