00001
00002 #ifndef _btree_ext_h_
00003 #define _btree_ext_h_
00004
00005 #if defined(__cplusplus)
00006 extern "C" {
00007 #endif
00008
00009 int __bam_compact __P((DB *, DB_TXN *, DBT *, DBT *, DB_COMPACT *, u_int32_t, DBT *));
00010 int __bam_cmp __P((DB *, const DBT *, PAGE *, u_int32_t, int (*)(DB *, const DBT *, const DBT *), int *));
00011 int __bam_defcmp __P((DB *, const DBT *, const DBT *));
00012 size_t __bam_defpfx __P((DB *, const DBT *, const DBT *));
00013 int __bam_pgin __P((DB_ENV *, DB *, db_pgno_t, void *, DBT *));
00014 int __bam_pgout __P((DB_ENV *, DB *, db_pgno_t, void *, DBT *));
00015 int __bam_mswap __P((PAGE *));
00016 int __bam_ca_delete __P((DB *, db_pgno_t, u_int32_t, int, int *));
00017 int __ram_ca_delete __P((DB *, db_pgno_t, int *));
00018 int __bam_ca_di __P((DBC *, db_pgno_t, u_int32_t, int));
00019 int __bam_ca_dup __P((DBC *, u_int32_t, db_pgno_t, u_int32_t, db_pgno_t, u_int32_t));
00020 int __bam_ca_undodup __P((DB *, u_int32_t, db_pgno_t, u_int32_t, u_int32_t));
00021 int __bam_ca_rsplit __P((DBC *, db_pgno_t, db_pgno_t));
00022 int __bam_ca_split __P((DBC *, db_pgno_t, db_pgno_t, db_pgno_t, u_int32_t, int));
00023 int __bam_ca_undosplit __P((DB *, db_pgno_t, db_pgno_t, db_pgno_t, u_int32_t));
00024 int __bam_c_init __P((DBC *, DBTYPE));
00025 int __bam_c_refresh __P((DBC *));
00026 int __bam_c_count __P((DBC *, db_recno_t *));
00027 int __bam_c_dup __P((DBC *, DBC *));
00028 int __bam_bulk_overflow __P((DBC *, u_int32_t, db_pgno_t, u_int8_t *));
00029 int __bam_bulk_duplicates __P((DBC *, db_pgno_t, u_int8_t *, int32_t *, int32_t **, u_int8_t **, u_int32_t *, int));
00030 int __bam_c_rget __P((DBC *, DBT *));
00031 int __bam_ditem __P((DBC *, PAGE *, u_int32_t));
00032 int __bam_adjindx __P((DBC *, PAGE *, u_int32_t, u_int32_t, int));
00033 int __bam_dpages __P((DBC *, int, int));
00034 int __bam_relink __P((DBC *, PAGE *, db_pgno_t));
00035 int __bam_pupdate __P((DBC *, PAGE *));
00036 int __bam_db_create __P((DB *));
00037 int __bam_db_close __P((DB *));
00038 void __bam_map_flags __P((DB *, u_int32_t *, u_int32_t *));
00039 int __bam_set_flags __P((DB *, u_int32_t *flagsp));
00040 int __bam_set_bt_compare __P((DB *, int (*)(DB *, const DBT *, const DBT *)));
00041 int __bam_get_bt_minkey __P((DB *, u_int32_t *));
00042 void __ram_map_flags __P((DB *, u_int32_t *, u_int32_t *));
00043 int __ram_set_flags __P((DB *, u_int32_t *flagsp));
00044 int __ram_get_re_len __P((DB *, u_int32_t *));
00045 int __ram_get_re_pad __P((DB *, int *));
00046 int __bam_open __P((DB *, DB_TXN *, const char *, db_pgno_t, u_int32_t));
00047 int __bam_metachk __P((DB *, const char *, BTMETA *));
00048 int __bam_read_root __P((DB *, DB_TXN *, db_pgno_t, u_int32_t));
00049 int __bam_new_file __P((DB *, DB_TXN *, DB_FH *, const char *));
00050 int __bam_new_subdb __P((DB *, DB *, DB_TXN *));
00051 int __bam_iitem __P((DBC *, DBT *, DBT *, u_int32_t, u_int32_t));
00052 int __bam_ritem __P((DBC *, PAGE *, u_int32_t, DBT *));
00053 int __bam_split_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00054 int __bam_rsplit_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00055 int __bam_adj_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00056 int __bam_cadjust_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00057 int __bam_cdel_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00058 int __bam_repl_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00059 int __bam_root_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00060 int __bam_curadj_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00061 int __bam_rcuradj_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00062 int __bam_relink_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00063 int __bam_merge_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00064 int __bam_pgno_recover __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00065 int __bam_reclaim __P((DB *, DB_TXN *));
00066 int __bam_truncate __P((DBC *, u_int32_t *));
00067 int __ram_open __P((DB *, DB_TXN *, const char *, db_pgno_t, u_int32_t));
00068 int __ram_append __P((DBC *, DBT *, DBT *));
00069 int __ram_c_del __P((DBC *));
00070 int __ram_c_get __P((DBC *, DBT *, DBT *, u_int32_t, db_pgno_t *));
00071 int __ram_c_put __P((DBC *, DBT *, DBT *, u_int32_t, db_pgno_t *));
00072 int __ram_ca __P((DBC *, ca_recno_arg));
00073 int __ram_getno __P((DBC *, const DBT *, db_recno_t *, int));
00074 int __ram_writeback __P((DB *));
00075 int __bam_rsearch __P((DBC *, db_recno_t *, u_int32_t, int, int *));
00076 int __bam_adjust __P((DBC *, int32_t));
00077 int __bam_nrecs __P((DBC *, db_recno_t *));
00078 db_recno_t __bam_total __P((DB *, PAGE *));
00079 int __bam_get_root __P((DBC *, db_pgno_t, int, u_int32_t, int *));
00080 int __bam_search __P((DBC *, db_pgno_t, const DBT *, u_int32_t, int, db_recno_t *, int *));
00081 int __bam_stkrel __P((DBC *, u_int32_t));
00082 int __bam_stkgrow __P((DB_ENV *, BTREE_CURSOR *));
00083 int __bam_split __P((DBC *, void *, db_pgno_t *));
00084 int __bam_pinsert __P((DBC *, EPG *, PAGE *, PAGE *, int));
00085 int __bam_copy __P((DB *, PAGE *, PAGE *, u_int32_t, u_int32_t));
00086 int __bam_stat __P((DBC *, void *, u_int32_t));
00087 int __bam_stat_print __P((DBC *, u_int32_t));
00088 int __bam_stat_callback __P((DB *, PAGE *, void *, int *));
00089 void __bam_print_cursor __P((DBC *));
00090 int __bam_key_range __P((DBC *, DBT *, DB_KEY_RANGE *, u_int32_t));
00091 int __bam_traverse __P((DBC *, db_lockmode_t, db_pgno_t, int (*)(DB *, PAGE *, void *, int *), void *));
00092 int __bam_30_btreemeta __P((DB *, char *, u_int8_t *));
00093 int __bam_31_btreemeta __P((DB *, char *, u_int32_t, DB_FH *, PAGE *, int *));
00094 int __bam_31_lbtree __P((DB *, char *, u_int32_t, DB_FH *, PAGE *, int *));
00095 int __bam_vrfy_meta __P((DB *, VRFY_DBINFO *, BTMETA *, db_pgno_t, u_int32_t));
00096 int __ram_vrfy_leaf __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t, u_int32_t));
00097 int __bam_vrfy __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t, u_int32_t));
00098 int __bam_vrfy_itemorder __P((DB *, VRFY_DBINFO *, PAGE *, db_pgno_t, u_int32_t, int, int, u_int32_t));
00099 int __bam_vrfy_structure __P((DB *, VRFY_DBINFO *, db_pgno_t, u_int32_t));
00100 int __bam_vrfy_subtree __P((DB *, VRFY_DBINFO *, db_pgno_t, void *, void *, u_int32_t, u_int32_t *, u_int32_t *, u_int32_t *));
00101 int __bam_salvage __P((DB *, VRFY_DBINFO *, db_pgno_t, u_int32_t, PAGE *, void *, int (*)(void *, const void *), DBT *, u_int32_t));
00102 int __bam_salvage_walkdupint __P((DB *, VRFY_DBINFO *, PAGE *, DBT *, void *, int (*)(void *, const void *), u_int32_t));
00103 int __bam_meta2pgset __P((DB *, VRFY_DBINFO *, BTMETA *, u_int32_t, DB *));
00104 int __bam_split_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, const DBT *, u_int32_t));
00105 int __bam_split_read __P((DB_ENV *, void *, __bam_split_args **));
00106 int __bam_rsplit_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, const DBT *, db_pgno_t, db_pgno_t, const DBT *, DB_LSN *));
00107 int __bam_rsplit_read __P((DB_ENV *, void *, __bam_rsplit_args **));
00108 int __bam_adj_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, u_int32_t, u_int32_t, u_int32_t));
00109 int __bam_adj_read __P((DB_ENV *, void *, __bam_adj_args **));
00110 int __bam_cadjust_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, u_int32_t, int32_t, u_int32_t));
00111 int __bam_cadjust_read __P((DB_ENV *, void *, __bam_cadjust_args **));
00112 int __bam_cdel_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, u_int32_t));
00113 int __bam_cdel_read __P((DB_ENV *, void *, __bam_cdel_args **));
00114 int __bam_repl_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, u_int32_t, u_int32_t, const DBT *, const DBT *, u_int32_t, u_int32_t));
00115 int __bam_repl_read __P((DB_ENV *, void *, __bam_repl_args **));
00116 int __bam_root_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, db_pgno_t, DB_LSN *));
00117 int __bam_root_read __P((DB_ENV *, void *, __bam_root_args **));
00118 int __bam_curadj_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_ca_mode, db_pgno_t, db_pgno_t, db_pgno_t, u_int32_t, u_int32_t, u_int32_t));
00119 int __bam_curadj_read __P((DB_ENV *, void *, __bam_curadj_args **));
00120 int __bam_rcuradj_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, ca_recno_arg, db_pgno_t, db_recno_t, u_int32_t));
00121 int __bam_rcuradj_read __P((DB_ENV *, void *, __bam_rcuradj_args **));
00122 int __bam_relink_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, db_pgno_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *));
00123 int __bam_relink_read __P((DB_ENV *, void *, __bam_relink_args **));
00124 int __bam_merge_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, db_pgno_t, DB_LSN *, const DBT *, const DBT *, const DBT *));
00125 int __bam_merge_read __P((DB_ENV *, void *, __bam_merge_args **));
00126 int __bam_pgno_log __P((DB *, DB_TXN *, DB_LSN *, u_int32_t, db_pgno_t, DB_LSN *, u_int32_t, db_pgno_t, db_pgno_t));
00127 int __bam_pgno_read __P((DB_ENV *, void *, __bam_pgno_args **));
00128 int __bam_init_recover __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
00129 int __bam_split_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00130 int __bam_rsplit_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00131 int __bam_adj_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00132 int __bam_cadjust_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00133 int __bam_cdel_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00134 int __bam_repl_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00135 int __bam_root_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00136 int __bam_curadj_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00137 int __bam_rcuradj_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00138 int __bam_relink_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00139 int __bam_merge_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00140 int __bam_pgno_print __P((DB_ENV *, DBT *, DB_LSN *, db_recops, void *));
00141 int __bam_init_print __P((DB_ENV *, int (***)(DB_ENV *, DBT *, DB_LSN *, db_recops, void *), size_t *));
00142
00143 #if defined(__cplusplus)
00144 }
00145 #endif
00146 #endif