/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.38
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

namespace BerkeleyDB.Internal {

using System;
using System.Runtime.InteropServices;

class libdb_csharpPINVOKE {

  protected class SWIGStringHelper {

    public delegate string SWIGStringDelegate(string message);
    static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString);

    [DllImport(libname, EntryPoint="SWIGRegisterStringCallback_libdb_csharp")]
    public static extern void SWIGRegisterStringCallback_libdb_csharp(SWIGStringDelegate stringDelegate);

    static string CreateString(string cString) {
      return cString;
    }

    static SWIGStringHelper() {
      SWIGRegisterStringCallback_libdb_csharp(stringDelegate);
    }
  }

  static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper();


  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_fillpercent_set")]
  public static extern void DB_COMPACT_compact_fillpercent_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_fillpercent_get")]
  public static extern uint DB_COMPACT_compact_fillpercent_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_timeout_set")]
  public static extern void DB_COMPACT_compact_timeout_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_timeout_get")]
  public static extern uint DB_COMPACT_compact_timeout_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_set")]
  public static extern void DB_COMPACT_compact_pages_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_get")]
  public static extern uint DB_COMPACT_compact_pages_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_free_set")]
  public static extern void DB_COMPACT_compact_pages_free_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_free_get")]
  public static extern uint DB_COMPACT_compact_pages_free_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_examine_set")]
  public static extern void DB_COMPACT_compact_pages_examine_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_examine_get")]
  public static extern uint DB_COMPACT_compact_pages_examine_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_levels_set")]
  public static extern void DB_COMPACT_compact_levels_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_levels_get")]
  public static extern uint DB_COMPACT_compact_levels_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_deadlock_set")]
  public static extern void DB_COMPACT_compact_deadlock_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_deadlock_get")]
  public static extern uint DB_COMPACT_compact_deadlock_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_truncated_set")]
  public static extern void DB_COMPACT_compact_pages_truncated_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_truncated_get")]
  public static extern uint DB_COMPACT_compact_pages_truncated_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_truncate_set")]
  public static extern void DB_COMPACT_compact_truncate_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_truncate_get")]
  public static extern uint DB_COMPACT_compact_truncate_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_new_DB_COMPACT")]
  public static extern IntPtr new_DB_COMPACT();

  [DllImport(libname, EntryPoint="CSharp_delete_DB_COMPACT")]
  public static extern void delete_DB_COMPACT(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_LSN_file_set")]
  public static extern void DB_LSN_file_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_LSN_file_get")]
  public static extern uint DB_LSN_file_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_LSN_offset_set")]
  public static extern void DB_LSN_offset_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_LSN_offset_get")]
  public static extern uint DB_LSN_offset_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_new_DB_LSN")]
  public static extern IntPtr new_DB_LSN();

  [DllImport(libname, EntryPoint="CSharp_delete_DB_LSN")]
  public static extern void delete_DB_LSN(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_api_internal_set")]
  public static extern void DB_api_internal_set(HandleRef jarg1, BaseDatabase jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_api_internal_get")]
  public static extern BaseDatabase DB_api_internal_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_set_usercopy")]
  public static extern int DB_set_usercopy(HandleRef jarg1, DBTCopyDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_new_DB")]
  public static extern IntPtr new_DB(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_delete_DB")]
  public static extern void delete_DB(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_associate")]
  public static extern int DB_associate(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, BDB_AssociateDelegate jarg4, uint jarg5);

  [DllImport(libname, EntryPoint="CSharp_DB_associate_foreign")]
  public static extern int DB_associate_foreign(HandleRef jarg1, HandleRef jarg2, BDB_AssociateForeignDelegate jarg3, uint jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_close")]
  public static extern int DB_close(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_compact")]
  public static extern int DB_compact(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, uint jarg6, HandleRef jarg7);

  [DllImport(libname, EntryPoint="CSharp_DB_cursor")]
  public static extern IntPtr DB_cursor(HandleRef jarg1, HandleRef jarg2, uint jarg3, ref int jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_del")]
  public static extern int DB_del(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_env")]
  public static extern IntPtr DB_env(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_exists")]
  public static extern int DB_exists(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_get")]
  public static extern int DB_get(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, uint jarg5);

  [DllImport(libname, EntryPoint="CSharp_DB_get_byteswapped")]
  public static extern int DB_get_byteswapped(HandleRef jarg1, ref int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_get_dbname")]
  public static extern int DB_get_dbname(HandleRef jarg1, ref string jarg2, ref string jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_get_multiple")]
  public static extern int DB_get_multiple(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_get_open_flags")]
  public static extern int DB_get_open_flags(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_get_transactional")]
  public static extern int DB_get_transactional(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_get_type")]
  public static extern int DB_get_type(HandleRef jarg1, ref DBTYPE jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_join")]
  public static extern IntPtr DB_join(HandleRef jarg1, IntPtr[] jarg2, uint jarg3, ref int jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_key_range")]
  public static extern int DB_key_range(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, uint jarg5);

  [DllImport(libname, EntryPoint="CSharp_DB_open")]
  public static extern int DB_open(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, int jarg5, uint jarg6, int jarg7);

  [DllImport(libname, EntryPoint="CSharp_DB_pget")]
  public static extern int DB_pget(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, uint jarg6);

  [DllImport(libname, EntryPoint="CSharp_DB_put")]
  public static extern int DB_put(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, uint jarg5);

  [DllImport(libname, EntryPoint="CSharp_DB_remove")]
  public static extern int DB_remove(HandleRef jarg1, string jarg2, string jarg3, uint jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_rename")]
  public static extern int DB_rename(HandleRef jarg1, string jarg2, string jarg3, string jarg4, uint jarg5);

  [DllImport(libname, EntryPoint="CSharp_DB_set_append_recno")]
  public static extern int DB_set_append_recno(HandleRef jarg1, BDB_AppendRecnoDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_bt_compare")]
  public static extern int DB_set_bt_compare(HandleRef jarg1, BDB_CompareDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_bt_compress")]
  public static extern int DB_set_bt_compress(HandleRef jarg1, BDB_CompressDelegate jarg2, BDB_DecompressDelegate jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_get_bt_minkey")]
  public static extern int DB_get_bt_minkey(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_bt_minkey")]
  public static extern int DB_set_bt_minkey(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_bt_prefix")]
  public static extern int DB_set_bt_prefix(HandleRef jarg1, BDB_CompareDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_get_cachesize")]
  public static extern int DB_get_cachesize(HandleRef jarg1, ref uint jarg2, ref uint jarg3, ref int jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_set_cachesize")]
  public static extern int DB_set_cachesize(HandleRef jarg1, uint jarg2, uint jarg3, int jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_set_dup_compare")]
  public static extern int DB_set_dup_compare(HandleRef jarg1, BDB_CompareDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_get_encrypt_flags")]
  public static extern int DB_get_encrypt_flags(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_encrypt")]
  public static extern int DB_set_encrypt(HandleRef jarg1, string jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_set_errcall")]
  public static extern void DB_set_errcall(HandleRef jarg1, BDB_ErrcallDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_feedback")]
  public static extern int DB_set_feedback(HandleRef jarg1, BDB_DbFeedbackDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_get_flags")]
  public static extern int DB_get_flags(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_flags")]
  public static extern int DB_set_flags(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_h_compare")]
  public static extern int DB_set_h_compare(HandleRef jarg1, BDB_CompareDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_get_h_ffactor")]
  public static extern int DB_get_h_ffactor(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_h_ffactor")]
  public static extern int DB_set_h_ffactor(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_h_hash")]
  public static extern int DB_set_h_hash(HandleRef jarg1, BDB_HashDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_get_h_nelem")]
  public static extern int DB_get_h_nelem(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_h_nelem")]
  public static extern int DB_set_h_nelem(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_get_lorder")]
  public static extern int DB_get_lorder(HandleRef jarg1, ref int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_lorder")]
  public static extern int DB_set_lorder(HandleRef jarg1, int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_get_pagesize")]
  public static extern int DB_get_pagesize(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_pagesize")]
  public static extern int DB_set_pagesize(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_get_priority")]
  public static extern int DB_get_priority(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_priority")]
  public static extern int DB_set_priority(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_get_q_extentsize")]
  public static extern int DB_get_q_extentsize(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_q_extentsize")]
  public static extern int DB_set_q_extentsize(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_get_re_delim")]
  public static extern int DB_get_re_delim(HandleRef jarg1, ref int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_re_delim")]
  public static extern int DB_set_re_delim(HandleRef jarg1, int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_get_re_len")]
  public static extern int DB_get_re_len(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_re_len")]
  public static extern int DB_set_re_len(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_get_re_pad")]
  public static extern int DB_get_re_pad(HandleRef jarg1, ref int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_re_pad")]
  public static extern int DB_set_re_pad(HandleRef jarg1, int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_get_re_source")]
  public static extern int DB_get_re_source(HandleRef jarg1, ref string jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_set_re_source")]
  public static extern int DB_set_re_source(HandleRef jarg1, string jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_stat")]
  public static extern IntPtr DB_stat(HandleRef jarg1, HandleRef jarg2, uint jarg3, ref int jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_stat_print")]
  public static extern int DB_stat_print(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_sync")]
  public static extern int DB_sync(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_truncate")]
  public static extern int DB_truncate(HandleRef jarg1, HandleRef jarg2, ref uint jarg3, uint jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_upgrade")]
  public static extern int DB_upgrade(HandleRef jarg1, string jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_verify")]
  public static extern int DB_verify(HandleRef jarg1, string jarg2, string jarg3, System.IO.TextWriter jarg4, BDB_FileWriteDelegate jarg5, uint jarg6);

  [DllImport(libname, EntryPoint="CSharp_DBC_close")]
  public static extern int DBC_close(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DBC_cmp")]
  public static extern int DBC_cmp(HandleRef jarg1, HandleRef jarg2, ref int jarg3, uint jarg4);

  [DllImport(libname, EntryPoint="CSharp_DBC_count")]
  public static extern int DBC_count(HandleRef jarg1, ref uint jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DBC_del")]
  public static extern int DBC_del(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DBC_dup")]
  public static extern IntPtr DBC_dup(HandleRef jarg1, uint jarg2, ref int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DBC_get")]
  public static extern int DBC_get(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4);

  [DllImport(libname, EntryPoint="CSharp_DBC_pget")]
  public static extern int DBC_pget(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, uint jarg5);

  [DllImport(libname, EntryPoint="CSharp_DBC_put")]
  public static extern int DBC_put(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4);

  [DllImport(libname, EntryPoint="CSharp_DBC_set_priority")]
  public static extern int DBC_set_priority(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_new_DBC")]
  public static extern IntPtr new_DBC();

  [DllImport(libname, EntryPoint="CSharp_delete_DBC")]
  public static extern void delete_DBC(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DBT_dlen_set")]
  public static extern void DBT_dlen_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DBT_dlen_get")]
  public static extern uint DBT_dlen_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DBT_doff_set")]
  public static extern void DBT_doff_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DBT_doff_get")]
  public static extern uint DBT_doff_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DBT_flags_set")]
  public static extern void DBT_flags_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DBT_flags_get")]
  public static extern uint DBT_flags_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DBT_size_set")]
  public static extern void DBT_size_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DBT_size_get")]
  public static extern uint DBT_size_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DBT_ulen_set")]
  public static extern void DBT_ulen_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DBT_ulen_get")]
  public static extern uint DBT_ulen_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DBT_data_set")]
  public static extern void DBT_data_set(HandleRef jarg1, IntPtr jarg2);

  [DllImport(libname, EntryPoint="CSharp_DBT_data_get")]
  public static extern IntPtr DBT_data_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DBT_app_data_set")]
  public static extern void DBT_app_data_set(HandleRef jarg1, DatabaseEntry jarg2);

  [DllImport(libname, EntryPoint="CSharp_DBT_app_data_get")]
  public static extern DatabaseEntry DBT_app_data_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_new_DBT")]
  public static extern IntPtr new_DBT();

  [DllImport(libname, EntryPoint="CSharp_delete_DBT")]
  public static extern void delete_DBT(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_eid_set")]
  public static extern void DB_REPMGR_SITE_eid_set(HandleRef jarg1, int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_eid_get")]
  public static extern int DB_REPMGR_SITE_eid_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_host_set")]
  public static extern void DB_REPMGR_SITE_host_set(HandleRef jarg1, string jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_host_get")]
  public static extern string DB_REPMGR_SITE_host_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_port_set")]
  public static extern void DB_REPMGR_SITE_port_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_port_get")]
  public static extern uint DB_REPMGR_SITE_port_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_status_set")]
  public static extern void DB_REPMGR_SITE_status_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_status_get")]
  public static extern uint DB_REPMGR_SITE_status_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_new_DB_REPMGR_SITE")]
  public static extern IntPtr new_DB_REPMGR_SITE();

  [DllImport(libname, EntryPoint="CSharp_delete_DB_REPMGR_SITE")]
  public static extern void delete_DB_REPMGR_SITE(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_TXN_abort")]
  public static extern int DB_TXN_abort(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_TXN_commit")]
  public static extern int DB_TXN_commit(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_TXN_discard")]
  public static extern int DB_TXN_discard(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_TXN_id")]
  public static extern uint DB_TXN_id(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_TXN_prepare")]
  public static extern int DB_TXN_prepare(HandleRef jarg1, byte[] jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_TXN_get_name")]
  public static extern int DB_TXN_get_name(HandleRef jarg1, ref string jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_TXN_set_name")]
  public static extern int DB_TXN_set_name(HandleRef jarg1, string jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_TXN_set_timeout")]
  public static extern int DB_TXN_set_timeout(HandleRef jarg1, uint jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_new_DB_TXN")]
  public static extern IntPtr new_DB_TXN();

  [DllImport(libname, EntryPoint="CSharp_delete_DB_TXN")]
  public static extern void delete_DB_TXN(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_api2_internal_set")]
  public static extern void DB_ENV_api2_internal_set(HandleRef jarg1, DatabaseEnvironment jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_api2_internal_get")]
  public static extern DatabaseEnvironment DB_ENV_api2_internal_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_usercopy")]
  public static extern int DB_ENV_set_usercopy(HandleRef jarg1, DBTCopyDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_new_DB_ENV")]
  public static extern IntPtr new_DB_ENV(uint jarg1);

  [DllImport(libname, EntryPoint="CSharp_delete_DB_ENV")]
  public static extern void delete_DB_ENV(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_cdsgroup_begin")]
  public static extern IntPtr DB_ENV_cdsgroup_begin(HandleRef jarg1, ref int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_close")]
  public static extern int DB_ENV_close(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_dbremove")]
  public static extern int DB_ENV_dbremove(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, uint jarg5);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_dbrename")]
  public static extern int DB_ENV_dbrename(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, string jarg5, uint jarg6);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_failchk")]
  public static extern int DB_ENV_failchk(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_fileid_reset")]
  public static extern int DB_ENV_fileid_reset(HandleRef jarg1, string jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_home")]
  public static extern int DB_ENV_get_home(HandleRef jarg1, ref string jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_detect")]
  public static extern int DB_ENV_lock_detect(HandleRef jarg1, uint jarg2, uint jarg3, ref uint jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_get")]
  public static extern IntPtr DB_ENV_lock_get(HandleRef jarg1, uint jarg2, uint jarg3, HandleRef jarg4, int jarg5, ref int jarg6);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_id")]
  public static extern int DB_ENV_lock_id(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_id_free")]
  public static extern int DB_ENV_lock_id_free(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_put")]
  public static extern int DB_ENV_lock_put(HandleRef jarg1, HandleRef jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_stat")]
  public static extern IntPtr DB_ENV_lock_stat(HandleRef jarg1, uint jarg2, ref int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_stat_print")]
  public static extern int DB_ENV_lock_stat_print(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_vec")]
  public static extern int DB_ENV_lock_vec(HandleRef jarg1, uint jarg2, uint jarg3, IntPtr[] jarg4, int jarg5, HandleRef jarg6);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_archive")]
  public static extern IntPtr DB_ENV_log_archive(HandleRef jarg1, uint jarg2, ref int jarg3, ref int jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_file")]
  public static extern int DB_ENV_log_file(HandleRef jarg1, HandleRef jarg2, IntPtr jarg3, uint jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_flush")]
  public static extern int DB_ENV_log_flush(HandleRef jarg1, HandleRef jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_put")]
  public static extern int DB_ENV_log_put(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_get_config")]
  public static extern int DB_ENV_log_get_config(HandleRef jarg1, uint jarg2, ref int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_set_config")]
  public static extern int DB_ENV_log_set_config(HandleRef jarg1, uint jarg2, int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_printf")]
  public static extern int DB_ENV_log_printf(HandleRef jarg1, HandleRef jarg2, string jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_stat")]
  public static extern IntPtr DB_ENV_log_stat(HandleRef jarg1, uint jarg2, ref int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_stat_print")]
  public static extern int DB_ENV_log_stat_print(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_lsn_reset")]
  public static extern int DB_ENV_lsn_reset(HandleRef jarg1, string jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_memp_stat")]
  public static extern IntPtr DB_ENV_memp_stat(HandleRef jarg1, ref IntPtr jarg2, uint jarg3, ref int jarg4, ref int jarg5);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_memp_stat_print")]
  public static extern int DB_ENV_memp_stat_print(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_memp_sync")]
  public static extern int DB_ENV_memp_sync(HandleRef jarg1, HandleRef jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_memp_trickle")]
  public static extern int DB_ENV_memp_trickle(HandleRef jarg1, int jarg2, ref int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_alloc")]
  public static extern int DB_ENV_mutex_alloc(HandleRef jarg1, uint jarg2, ref uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_free")]
  public static extern int DB_ENV_mutex_free(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_lock")]
  public static extern int DB_ENV_mutex_lock(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_stat")]
  public static extern IntPtr DB_ENV_mutex_stat(HandleRef jarg1, uint jarg2, ref int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_stat_print")]
  public static extern int DB_ENV_mutex_stat_print(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_unlock")]
  public static extern int DB_ENV_mutex_unlock(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_get_align")]
  public static extern int DB_ENV_mutex_get_align(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_set_align")]
  public static extern int DB_ENV_mutex_set_align(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_get_increment")]
  public static extern int DB_ENV_mutex_get_increment(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_set_increment")]
  public static extern int DB_ENV_mutex_set_increment(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_get_max")]
  public static extern int DB_ENV_mutex_get_max(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_set_max")]
  public static extern int DB_ENV_mutex_set_max(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_get_tas_spins")]
  public static extern int DB_ENV_mutex_get_tas_spins(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_set_tas_spins")]
  public static extern int DB_ENV_mutex_set_tas_spins(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_open")]
  public static extern int DB_ENV_open(HandleRef jarg1, string jarg2, uint jarg3, int jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_open_flags")]
  public static extern int DB_ENV_get_open_flags(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_remove")]
  public static extern int DB_ENV_remove(HandleRef jarg1, string jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_add_remote_site")]
  public static extern int DB_ENV_repmgr_add_remote_site(HandleRef jarg1, string jarg2, uint jarg3, ref int jarg4, uint jarg5);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_set_ack_policy")]
  public static extern int DB_ENV_repmgr_set_ack_policy(HandleRef jarg1, int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_get_ack_policy")]
  public static extern int DB_ENV_repmgr_get_ack_policy(HandleRef jarg1, ref int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_set_local_site")]
  public static extern int DB_ENV_repmgr_set_local_site(HandleRef jarg1, string jarg2, uint jarg3, uint jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_site_list")]
  public static extern IntPtr DB_ENV_repmgr_site_list(HandleRef jarg1, ref uint jarg2, ref uint jarg3, ref int jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_start")]
  public static extern int DB_ENV_repmgr_start(HandleRef jarg1, int jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_stat")]
  public static extern IntPtr DB_ENV_repmgr_stat(HandleRef jarg1, uint jarg2, ref int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_stat_print")]
  public static extern int DB_ENV_repmgr_stat_print(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_elect")]
  public static extern int DB_ENV_rep_elect(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_process_message")]
  public static extern int DB_ENV_rep_process_message(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, int jarg4, HandleRef jarg5);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_start")]
  public static extern int DB_ENV_rep_start(HandleRef jarg1, HandleRef jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_stat")]
  public static extern IntPtr DB_ENV_rep_stat(HandleRef jarg1, uint jarg2, ref int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_stat_print")]
  public static extern int DB_ENV_rep_stat_print(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_sync")]
  public static extern int DB_ENV_rep_sync(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_config")]
  public static extern int DB_ENV_rep_set_config(HandleRef jarg1, uint jarg2, int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_get_config")]
  public static extern int DB_ENV_rep_get_config(HandleRef jarg1, uint jarg2, ref int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_clockskew")]
  public static extern int DB_ENV_rep_set_clockskew(HandleRef jarg1, uint jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_get_clockskew")]
  public static extern int DB_ENV_rep_get_clockskew(HandleRef jarg1, ref uint jarg2, ref uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_limit")]
  public static extern int DB_ENV_rep_set_limit(HandleRef jarg1, uint jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_get_limit")]
  public static extern int DB_ENV_rep_get_limit(HandleRef jarg1, ref uint jarg2, ref uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_nsites")]
  public static extern int DB_ENV_rep_set_nsites(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_get_nsites")]
  public static extern int DB_ENV_rep_get_nsites(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_priority")]
  public static extern int DB_ENV_rep_set_priority(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_get_priority")]
  public static extern int DB_ENV_rep_get_priority(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_request")]
  public static extern int DB_ENV_rep_set_request(HandleRef jarg1, uint jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_get_request")]
  public static extern int DB_ENV_rep_get_request(HandleRef jarg1, ref uint jarg2, ref uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_timeout")]
  public static extern int DB_ENV_rep_set_timeout(HandleRef jarg1, int jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_get_timeout")]
  public static extern int DB_ENV_rep_get_timeout(HandleRef jarg1, int jarg2, ref uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_transport")]
  public static extern int DB_ENV_rep_set_transport(HandleRef jarg1, int jarg2, BDB_RepTransportDelegate jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_cachesize")]
  public static extern int DB_ENV_get_cachesize(HandleRef jarg1, ref uint jarg2, ref uint jarg3, ref int jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_cachesize")]
  public static extern int DB_ENV_set_cachesize(HandleRef jarg1, uint jarg2, uint jarg3, int jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_cache_max")]
  public static extern int DB_ENV_get_cache_max(HandleRef jarg1, ref uint jarg2, ref uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_cache_max")]
  public static extern int DB_ENV_set_cache_max(HandleRef jarg1, uint jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_data_dirs")]
  public static extern IntPtr DB_ENV_get_data_dirs(HandleRef jarg1, ref int jarg2, ref int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_add_data_dir")]
  public static extern int DB_ENV_add_data_dir(HandleRef jarg1, string jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_create_dir")]
  public static extern int DB_ENV_set_create_dir(HandleRef jarg1, string jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_encrypt_flags")]
  public static extern int DB_ENV_get_encrypt_flags(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_encrypt")]
  public static extern int DB_ENV_set_encrypt(HandleRef jarg1, string jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_errcall")]
  public static extern void DB_ENV_set_errcall(HandleRef jarg1, BDB_ErrcallDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_event_notify")]
  public static extern int DB_ENV_set_event_notify(HandleRef jarg1, BDB_EventNotifyDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_feedback")]
  public static extern int DB_ENV_set_feedback(HandleRef jarg1, BDB_EnvFeedbackDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_flags")]
  public static extern int DB_ENV_get_flags(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_flags")]
  public static extern int DB_ENV_set_flags(HandleRef jarg1, uint jarg2, int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_intermediate_dir_mode")]
  public static extern int DB_ENV_get_intermediate_dir_mode(HandleRef jarg1, ref string jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_intermediate_dir_mode")]
  public static extern int DB_ENV_set_intermediate_dir_mode(HandleRef jarg1, string jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_isalive")]
  public static extern int DB_ENV_set_isalive(HandleRef jarg1, BDB_IsAliveDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lg_bsize")]
  public static extern int DB_ENV_get_lg_bsize(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lg_bsize")]
  public static extern int DB_ENV_set_lg_bsize(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lg_dir")]
  public static extern int DB_ENV_get_lg_dir(HandleRef jarg1, ref string jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lg_dir")]
  public static extern int DB_ENV_set_lg_dir(HandleRef jarg1, string jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lg_filemode")]
  public static extern int DB_ENV_get_lg_filemode(HandleRef jarg1, ref int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lg_filemode")]
  public static extern int DB_ENV_set_lg_filemode(HandleRef jarg1, int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lg_max")]
  public static extern int DB_ENV_get_lg_max(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lg_max")]
  public static extern int DB_ENV_set_lg_max(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lg_regionmax")]
  public static extern int DB_ENV_get_lg_regionmax(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lg_regionmax")]
  public static extern int DB_ENV_set_lg_regionmax(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lk_conflicts_nmodes")]
  public static extern int DB_ENV_get_lk_conflicts_nmodes(HandleRef jarg1, ref int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lk_conflicts")]
  public static extern int DB_ENV_get_lk_conflicts(HandleRef jarg1, byte[,] jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lk_conflicts")]
  public static extern int DB_ENV_set_lk_conflicts(HandleRef jarg1, byte[,] jarg2, int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lk_detect")]
  public static extern int DB_ENV_get_lk_detect(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lk_detect")]
  public static extern int DB_ENV_set_lk_detect(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lk_max_locks")]
  public static extern int DB_ENV_get_lk_max_locks(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lk_max_locks")]
  public static extern int DB_ENV_set_lk_max_locks(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lk_max_lockers")]
  public static extern int DB_ENV_get_lk_max_lockers(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lk_max_lockers")]
  public static extern int DB_ENV_set_lk_max_lockers(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lk_max_objects")]
  public static extern int DB_ENV_get_lk_max_objects(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lk_max_objects")]
  public static extern int DB_ENV_set_lk_max_objects(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lk_partitions")]
  public static extern int DB_ENV_get_lk_partitions(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lk_partitions")]
  public static extern int DB_ENV_set_lk_partitions(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_mp_max_openfd")]
  public static extern int DB_ENV_get_mp_max_openfd(HandleRef jarg1, ref int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_mp_max_openfd")]
  public static extern int DB_ENV_set_mp_max_openfd(HandleRef jarg1, int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_mp_max_write")]
  public static extern int DB_ENV_get_mp_max_write(HandleRef jarg1, ref int jarg2, ref uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_mp_max_write")]
  public static extern int DB_ENV_set_mp_max_write(HandleRef jarg1, int jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_mp_mmapsize")]
  public static extern int DB_ENV_get_mp_mmapsize(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_mp_mmapsize")]
  public static extern int DB_ENV_set_mp_mmapsize(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_thread_count")]
  public static extern int DB_ENV_get_thread_count(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_thread_count")]
  public static extern int DB_ENV_set_thread_count(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_thread_id")]
  public static extern int DB_ENV_set_thread_id(HandleRef jarg1, BDB_ThreadIDDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_thread_id_string")]
  public static extern int DB_ENV_set_thread_id_string(HandleRef jarg1, BDB_ThreadNameDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_timeout")]
  public static extern int DB_ENV_get_timeout(HandleRef jarg1, ref uint jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_timeout")]
  public static extern int DB_ENV_set_timeout(HandleRef jarg1, uint jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_tmp_dir")]
  public static extern int DB_ENV_get_tmp_dir(HandleRef jarg1, ref string jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_tmp_dir")]
  public static extern int DB_ENV_set_tmp_dir(HandleRef jarg1, string jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_tx_max")]
  public static extern int DB_ENV_get_tx_max(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_tx_max")]
  public static extern int DB_ENV_set_tx_max(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_tx_timestamp")]
  public static extern int DB_ENV_get_tx_timestamp(HandleRef jarg1, ref long jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_tx_timestamp")]
  public static extern int DB_ENV_set_tx_timestamp(HandleRef jarg1, ref long jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_verbose")]
  public static extern int DB_ENV_get_verbose(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_verbose")]
  public static extern int DB_ENV_set_verbose(HandleRef jarg1, uint jarg2, int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_stat_print")]
  public static extern int DB_ENV_stat_print(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_txn_begin")]
  public static extern IntPtr DB_ENV_txn_begin(HandleRef jarg1, HandleRef jarg2, uint jarg3, ref int jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_txn_checkpoint")]
  public static extern int DB_ENV_txn_checkpoint(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_txn_recover")]
  public static extern int DB_ENV_txn_recover(HandleRef jarg1, IntPtr jarg2, uint jarg3, ref uint jarg4, uint jarg5);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_txn_stat")]
  public static extern IntPtr DB_ENV_txn_stat(HandleRef jarg1, uint jarg2, ref uint jarg3, ref int jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_txn_stat_print")]
  public static extern int DB_ENV_txn_stat_print(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_KEY_RANGE_less_set")]
  public static extern void DB_KEY_RANGE_less_set(HandleRef jarg1, double jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_KEY_RANGE_less_get")]
  public static extern double DB_KEY_RANGE_less_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_KEY_RANGE_equal_set")]
  public static extern void DB_KEY_RANGE_equal_set(HandleRef jarg1, double jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_KEY_RANGE_equal_get")]
  public static extern double DB_KEY_RANGE_equal_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_KEY_RANGE_greater_set")]
  public static extern void DB_KEY_RANGE_greater_set(HandleRef jarg1, double jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_KEY_RANGE_greater_get")]
  public static extern double DB_KEY_RANGE_greater_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_new_DB_KEY_RANGE")]
  public static extern IntPtr new_DB_KEY_RANGE();

  [DllImport(libname, EntryPoint="CSharp_delete_DB_KEY_RANGE")]
  public static extern void delete_DB_KEY_RANGE(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCK_off_set")]
  public static extern void DB_LOCK_off_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCK_off_get")]
  public static extern uint DB_LOCK_off_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCK_ndx_set")]
  public static extern void DB_LOCK_ndx_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCK_ndx_get")]
  public static extern uint DB_LOCK_ndx_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCK_gen_set")]
  public static extern void DB_LOCK_gen_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCK_gen_get")]
  public static extern uint DB_LOCK_gen_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCK_mode_set")]
  public static extern void DB_LOCK_mode_set(HandleRef jarg1, int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCK_mode_get")]
  public static extern int DB_LOCK_mode_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_new_DB_LOCK")]
  public static extern IntPtr new_DB_LOCK();

  [DllImport(libname, EntryPoint="CSharp_delete_DB_LOCK")]
  public static extern void delete_DB_LOCK(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_op_set")]
  public static extern void DB_LOCKREQ_op_set(HandleRef jarg1, int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_op_get")]
  public static extern int DB_LOCKREQ_op_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_mode_set")]
  public static extern void DB_LOCKREQ_mode_set(HandleRef jarg1, int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_mode_get")]
  public static extern int DB_LOCKREQ_mode_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_timeout_set")]
  public static extern void DB_LOCKREQ_timeout_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_timeout_get")]
  public static extern uint DB_LOCKREQ_timeout_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_obj_set")]
  public static extern void DB_LOCKREQ_obj_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_obj_get")]
  public static extern IntPtr DB_LOCKREQ_obj_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_lck_set")]
  public static extern void DB_LOCKREQ_lck_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_lck_get")]
  public static extern IntPtr DB_LOCKREQ_lck_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_new_DB_LOCKREQ")]
  public static extern IntPtr new_DB_LOCKREQ();

  [DllImport(libname, EntryPoint="CSharp_delete_DB_LOCKREQ")]
  public static extern void delete_DB_LOCKREQ(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_db_strerror")]
  public static extern string db_strerror(int jarg1);

  [DllImport(libname, EntryPoint="CSharp_log_compare")]
  public static extern int log_compare(HandleRef jarg1, HandleRef jarg2);

  [DllImport(libname, EntryPoint="CSharp___os_ufree")]
  public static extern void __os_ufree(HandleRef jarg1, IntPtr jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_PREPLIST_txn_set")]
  public static extern void DB_PREPLIST_txn_set(HandleRef jarg1, HandleRef jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_PREPLIST_txn_get")]
  public static extern IntPtr DB_PREPLIST_txn_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_PREPLIST_gid_set")]
  public static extern void DB_PREPLIST_gid_set(HandleRef jarg1, byte[] jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_PREPLIST_gid_get")]
  public static extern byte[] DB_PREPLIST_gid_get(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_new_DB_PREPLIST")]
  public static extern IntPtr new_DB_PREPLIST();

  [DllImport(libname, EntryPoint="CSharp_delete_DB_PREPLIST")]
  public static extern void delete_DB_PREPLIST(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_new_DB_SEQUENCE")]
  public static extern IntPtr new_DB_SEQUENCE(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_delete_DB_SEQUENCE")]
  public static extern void delete_DB_SEQUENCE(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_close")]
  public static extern int DB_SEQUENCE_close(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_get")]
  public static extern int DB_SEQUENCE_get(HandleRef jarg1, HandleRef jarg2, int jarg3, ref Int64 jarg4, uint jarg5);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_get_db")]
  public static extern IntPtr DB_SEQUENCE_get_db(HandleRef jarg1);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_get_key")]
  public static extern int DB_SEQUENCE_get_key(HandleRef jarg1, HandleRef jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_initial_value")]
  public static extern int DB_SEQUENCE_initial_value(HandleRef jarg1, Int64 jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_open")]
  public static extern int DB_SEQUENCE_open(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_remove")]
  public static extern int DB_SEQUENCE_remove(HandleRef jarg1, HandleRef jarg2, uint jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_get_cachesize")]
  public static extern int DB_SEQUENCE_get_cachesize(HandleRef jarg1, ref int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_set_cachesize")]
  public static extern int DB_SEQUENCE_set_cachesize(HandleRef jarg1, int jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_get_flags")]
  public static extern int DB_SEQUENCE_get_flags(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_set_flags")]
  public static extern int DB_SEQUENCE_set_flags(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_get_range")]
  public static extern int DB_SEQUENCE_get_range(HandleRef jarg1, ref Int64 jarg2, ref Int64 jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_set_range")]
  public static extern int DB_SEQUENCE_set_range(HandleRef jarg1, Int64 jarg2, Int64 jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_stat")]
  public static extern IntPtr DB_SEQUENCE_stat(HandleRef jarg1, uint jarg2, ref int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_stat_print")]
  public static extern int DB_SEQUENCE_stat_print(HandleRef jarg1, uint jarg2);

#if DEBUG
	private const string libname = "libdb_csharp" + DbConstants.DB_VERSION_MAJOR_STR + DbConstants.DB_VERSION_MINOR_STR + "d";
#else
	private const string libname = "libdb_csharp" + DbConstants.DB_VERSION_MAJOR_STR + DbConstants.DB_VERSION_MINOR_STR;
#endif

}

}
