1/* ---------------------------------------------------------------------------- 2 * This file was automatically generated by SWIG (http://www.swig.org). 3 * Version 1.3.38 4 * 5 * Do not make changes to this file unless you know what you are doing--modify 6 * the SWIG interface file instead. 7 * ----------------------------------------------------------------------------- */ 8 9namespace BerkeleyDB.Internal { 10 11using System; 12using System.Runtime.InteropServices; 13 14class libdb_csharpPINVOKE { 15 16 protected class SWIGStringHelper { 17 18 public delegate string SWIGStringDelegate(string message); 19 static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString); 20 21 [DllImport(libname, EntryPoint="SWIGRegisterStringCallback_libdb_csharp")] 22 public static extern void SWIGRegisterStringCallback_libdb_csharp(SWIGStringDelegate stringDelegate); 23 24 static string CreateString(string cString) { 25 return cString; 26 } 27 28 static SWIGStringHelper() { 29 SWIGRegisterStringCallback_libdb_csharp(stringDelegate); 30 } 31 } 32 33 static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper(); 34 35 36 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_fillpercent_set")] 37 public static extern void DB_COMPACT_compact_fillpercent_set(HandleRef jarg1, uint jarg2); 38 39 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_fillpercent_get")] 40 public static extern uint DB_COMPACT_compact_fillpercent_get(HandleRef jarg1); 41 42 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_timeout_set")] 43 public static extern void DB_COMPACT_compact_timeout_set(HandleRef jarg1, uint jarg2); 44 45 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_timeout_get")] 46 public static extern uint DB_COMPACT_compact_timeout_get(HandleRef jarg1); 47 48 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_set")] 49 public static extern void DB_COMPACT_compact_pages_set(HandleRef jarg1, uint jarg2); 50 51 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_get")] 52 public static extern uint DB_COMPACT_compact_pages_get(HandleRef jarg1); 53 54 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_free_set")] 55 public static extern void DB_COMPACT_compact_pages_free_set(HandleRef jarg1, uint jarg2); 56 57 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_free_get")] 58 public static extern uint DB_COMPACT_compact_pages_free_get(HandleRef jarg1); 59 60 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_examine_set")] 61 public static extern void DB_COMPACT_compact_pages_examine_set(HandleRef jarg1, uint jarg2); 62 63 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_examine_get")] 64 public static extern uint DB_COMPACT_compact_pages_examine_get(HandleRef jarg1); 65 66 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_levels_set")] 67 public static extern void DB_COMPACT_compact_levels_set(HandleRef jarg1, uint jarg2); 68 69 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_levels_get")] 70 public static extern uint DB_COMPACT_compact_levels_get(HandleRef jarg1); 71 72 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_deadlock_set")] 73 public static extern void DB_COMPACT_compact_deadlock_set(HandleRef jarg1, uint jarg2); 74 75 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_deadlock_get")] 76 public static extern uint DB_COMPACT_compact_deadlock_get(HandleRef jarg1); 77 78 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_truncated_set")] 79 public static extern void DB_COMPACT_compact_pages_truncated_set(HandleRef jarg1, uint jarg2); 80 81 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_pages_truncated_get")] 82 public static extern uint DB_COMPACT_compact_pages_truncated_get(HandleRef jarg1); 83 84 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_truncate_set")] 85 public static extern void DB_COMPACT_compact_truncate_set(HandleRef jarg1, uint jarg2); 86 87 [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_truncate_get")] 88 public static extern uint DB_COMPACT_compact_truncate_get(HandleRef jarg1); 89 90 [DllImport(libname, EntryPoint="CSharp_new_DB_COMPACT")] 91 public static extern IntPtr new_DB_COMPACT(); 92 93 [DllImport(libname, EntryPoint="CSharp_delete_DB_COMPACT")] 94 public static extern void delete_DB_COMPACT(HandleRef jarg1); 95 96 [DllImport(libname, EntryPoint="CSharp_DB_LSN_file_set")] 97 public static extern void DB_LSN_file_set(HandleRef jarg1, uint jarg2); 98 99 [DllImport(libname, EntryPoint="CSharp_DB_LSN_file_get")] 100 public static extern uint DB_LSN_file_get(HandleRef jarg1); 101 102 [DllImport(libname, EntryPoint="CSharp_DB_LSN_offset_set")] 103 public static extern void DB_LSN_offset_set(HandleRef jarg1, uint jarg2); 104 105 [DllImport(libname, EntryPoint="CSharp_DB_LSN_offset_get")] 106 public static extern uint DB_LSN_offset_get(HandleRef jarg1); 107 108 [DllImport(libname, EntryPoint="CSharp_new_DB_LSN")] 109 public static extern IntPtr new_DB_LSN(); 110 111 [DllImport(libname, EntryPoint="CSharp_delete_DB_LSN")] 112 public static extern void delete_DB_LSN(HandleRef jarg1); 113 114 [DllImport(libname, EntryPoint="CSharp_DB_api_internal_set")] 115 public static extern void DB_api_internal_set(HandleRef jarg1, BaseDatabase jarg2); 116 117 [DllImport(libname, EntryPoint="CSharp_DB_api_internal_get")] 118 public static extern BaseDatabase DB_api_internal_get(HandleRef jarg1); 119 120 [DllImport(libname, EntryPoint="CSharp_DB_set_usercopy")] 121 public static extern int DB_set_usercopy(HandleRef jarg1, DBTCopyDelegate jarg2); 122 123 [DllImport(libname, EntryPoint="CSharp_new_DB")] 124 public static extern IntPtr new_DB(HandleRef jarg1, uint jarg2); 125 126 [DllImport(libname, EntryPoint="CSharp_delete_DB")] 127 public static extern void delete_DB(HandleRef jarg1); 128 129 [DllImport(libname, EntryPoint="CSharp_DB_associate")] 130 public static extern int DB_associate(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, BDB_AssociateDelegate jarg4, uint jarg5); 131 132 [DllImport(libname, EntryPoint="CSharp_DB_associate_foreign")] 133 public static extern int DB_associate_foreign(HandleRef jarg1, HandleRef jarg2, BDB_AssociateForeignDelegate jarg3, uint jarg4); 134 135 [DllImport(libname, EntryPoint="CSharp_DB_close")] 136 public static extern int DB_close(HandleRef jarg1, uint jarg2); 137 138 [DllImport(libname, EntryPoint="CSharp_DB_compact")] 139 public static extern int DB_compact(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, uint jarg6, HandleRef jarg7); 140 141 [DllImport(libname, EntryPoint="CSharp_DB_cursor")] 142 public static extern IntPtr DB_cursor(HandleRef jarg1, HandleRef jarg2, uint jarg3, ref int jarg4); 143 144 [DllImport(libname, EntryPoint="CSharp_DB_del")] 145 public static extern int DB_del(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4); 146 147 [DllImport(libname, EntryPoint="CSharp_DB_env")] 148 public static extern IntPtr DB_env(HandleRef jarg1); 149 150 [DllImport(libname, EntryPoint="CSharp_DB_exists")] 151 public static extern int DB_exists(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4); 152 153 [DllImport(libname, EntryPoint="CSharp_DB_get")] 154 public static extern int DB_get(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, uint jarg5); 155 156 [DllImport(libname, EntryPoint="CSharp_DB_get_byteswapped")] 157 public static extern int DB_get_byteswapped(HandleRef jarg1, ref int jarg2); 158 159 [DllImport(libname, EntryPoint="CSharp_DB_get_dbname")] 160 public static extern int DB_get_dbname(HandleRef jarg1, ref string jarg2, ref string jarg3); 161 162 [DllImport(libname, EntryPoint="CSharp_DB_get_multiple")] 163 public static extern int DB_get_multiple(HandleRef jarg1); 164 165 [DllImport(libname, EntryPoint="CSharp_DB_get_open_flags")] 166 public static extern int DB_get_open_flags(HandleRef jarg1, ref uint jarg2); 167 168 [DllImport(libname, EntryPoint="CSharp_DB_get_transactional")] 169 public static extern int DB_get_transactional(HandleRef jarg1); 170 171 [DllImport(libname, EntryPoint="CSharp_DB_get_type")] 172 public static extern int DB_get_type(HandleRef jarg1, ref DBTYPE jarg2); 173 174 [DllImport(libname, EntryPoint="CSharp_DB_join")] 175 public static extern IntPtr DB_join(HandleRef jarg1, IntPtr[] jarg2, uint jarg3, ref int jarg4); 176 177 [DllImport(libname, EntryPoint="CSharp_DB_key_range")] 178 public static extern int DB_key_range(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, uint jarg5); 179 180 [DllImport(libname, EntryPoint="CSharp_DB_open")] 181 public static extern int DB_open(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, int jarg5, uint jarg6, int jarg7); 182 183 [DllImport(libname, EntryPoint="CSharp_DB_pget")] 184 public static extern int DB_pget(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5, uint jarg6); 185 186 [DllImport(libname, EntryPoint="CSharp_DB_put")] 187 public static extern int DB_put(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, uint jarg5); 188 189 [DllImport(libname, EntryPoint="CSharp_DB_remove")] 190 public static extern int DB_remove(HandleRef jarg1, string jarg2, string jarg3, uint jarg4); 191 192 [DllImport(libname, EntryPoint="CSharp_DB_rename")] 193 public static extern int DB_rename(HandleRef jarg1, string jarg2, string jarg3, string jarg4, uint jarg5); 194 195 [DllImport(libname, EntryPoint="CSharp_DB_set_append_recno")] 196 public static extern int DB_set_append_recno(HandleRef jarg1, BDB_AppendRecnoDelegate jarg2); 197 198 [DllImport(libname, EntryPoint="CSharp_DB_set_bt_compare")] 199 public static extern int DB_set_bt_compare(HandleRef jarg1, BDB_CompareDelegate jarg2); 200 201 [DllImport(libname, EntryPoint="CSharp_DB_set_bt_compress")] 202 public static extern int DB_set_bt_compress(HandleRef jarg1, BDB_CompressDelegate jarg2, BDB_DecompressDelegate jarg3); 203 204 [DllImport(libname, EntryPoint="CSharp_DB_get_bt_minkey")] 205 public static extern int DB_get_bt_minkey(HandleRef jarg1, ref uint jarg2); 206 207 [DllImport(libname, EntryPoint="CSharp_DB_set_bt_minkey")] 208 public static extern int DB_set_bt_minkey(HandleRef jarg1, uint jarg2); 209 210 [DllImport(libname, EntryPoint="CSharp_DB_set_bt_prefix")] 211 public static extern int DB_set_bt_prefix(HandleRef jarg1, BDB_CompareDelegate jarg2); 212 213 [DllImport(libname, EntryPoint="CSharp_DB_get_cachesize")] 214 public static extern int DB_get_cachesize(HandleRef jarg1, ref uint jarg2, ref uint jarg3, ref int jarg4); 215 216 [DllImport(libname, EntryPoint="CSharp_DB_set_cachesize")] 217 public static extern int DB_set_cachesize(HandleRef jarg1, uint jarg2, uint jarg3, int jarg4); 218 219 [DllImport(libname, EntryPoint="CSharp_DB_set_dup_compare")] 220 public static extern int DB_set_dup_compare(HandleRef jarg1, BDB_CompareDelegate jarg2); 221 222 [DllImport(libname, EntryPoint="CSharp_DB_get_encrypt_flags")] 223 public static extern int DB_get_encrypt_flags(HandleRef jarg1, ref uint jarg2); 224 225 [DllImport(libname, EntryPoint="CSharp_DB_set_encrypt")] 226 public static extern int DB_set_encrypt(HandleRef jarg1, string jarg2, uint jarg3); 227 228 [DllImport(libname, EntryPoint="CSharp_DB_set_errcall")] 229 public static extern void DB_set_errcall(HandleRef jarg1, BDB_ErrcallDelegate jarg2); 230 231 [DllImport(libname, EntryPoint="CSharp_DB_set_feedback")] 232 public static extern int DB_set_feedback(HandleRef jarg1, BDB_DbFeedbackDelegate jarg2); 233 234 [DllImport(libname, EntryPoint="CSharp_DB_get_flags")] 235 public static extern int DB_get_flags(HandleRef jarg1, ref uint jarg2); 236 237 [DllImport(libname, EntryPoint="CSharp_DB_set_flags")] 238 public static extern int DB_set_flags(HandleRef jarg1, uint jarg2); 239 240 [DllImport(libname, EntryPoint="CSharp_DB_set_h_compare")] 241 public static extern int DB_set_h_compare(HandleRef jarg1, BDB_CompareDelegate jarg2); 242 243 [DllImport(libname, EntryPoint="CSharp_DB_get_h_ffactor")] 244 public static extern int DB_get_h_ffactor(HandleRef jarg1, ref uint jarg2); 245 246 [DllImport(libname, EntryPoint="CSharp_DB_set_h_ffactor")] 247 public static extern int DB_set_h_ffactor(HandleRef jarg1, uint jarg2); 248 249 [DllImport(libname, EntryPoint="CSharp_DB_set_h_hash")] 250 public static extern int DB_set_h_hash(HandleRef jarg1, BDB_HashDelegate jarg2); 251 252 [DllImport(libname, EntryPoint="CSharp_DB_get_h_nelem")] 253 public static extern int DB_get_h_nelem(HandleRef jarg1, ref uint jarg2); 254 255 [DllImport(libname, EntryPoint="CSharp_DB_set_h_nelem")] 256 public static extern int DB_set_h_nelem(HandleRef jarg1, uint jarg2); 257 258 [DllImport(libname, EntryPoint="CSharp_DB_get_lorder")] 259 public static extern int DB_get_lorder(HandleRef jarg1, ref int jarg2); 260 261 [DllImport(libname, EntryPoint="CSharp_DB_set_lorder")] 262 public static extern int DB_set_lorder(HandleRef jarg1, int jarg2); 263 264 [DllImport(libname, EntryPoint="CSharp_DB_get_pagesize")] 265 public static extern int DB_get_pagesize(HandleRef jarg1, ref uint jarg2); 266 267 [DllImport(libname, EntryPoint="CSharp_DB_set_pagesize")] 268 public static extern int DB_set_pagesize(HandleRef jarg1, uint jarg2); 269 270 [DllImport(libname, EntryPoint="CSharp_DB_get_priority")] 271 public static extern int DB_get_priority(HandleRef jarg1, ref uint jarg2); 272 273 [DllImport(libname, EntryPoint="CSharp_DB_set_priority")] 274 public static extern int DB_set_priority(HandleRef jarg1, uint jarg2); 275 276 [DllImport(libname, EntryPoint="CSharp_DB_get_q_extentsize")] 277 public static extern int DB_get_q_extentsize(HandleRef jarg1, ref uint jarg2); 278 279 [DllImport(libname, EntryPoint="CSharp_DB_set_q_extentsize")] 280 public static extern int DB_set_q_extentsize(HandleRef jarg1, uint jarg2); 281 282 [DllImport(libname, EntryPoint="CSharp_DB_get_re_delim")] 283 public static extern int DB_get_re_delim(HandleRef jarg1, ref int jarg2); 284 285 [DllImport(libname, EntryPoint="CSharp_DB_set_re_delim")] 286 public static extern int DB_set_re_delim(HandleRef jarg1, int jarg2); 287 288 [DllImport(libname, EntryPoint="CSharp_DB_get_re_len")] 289 public static extern int DB_get_re_len(HandleRef jarg1, ref uint jarg2); 290 291 [DllImport(libname, EntryPoint="CSharp_DB_set_re_len")] 292 public static extern int DB_set_re_len(HandleRef jarg1, uint jarg2); 293 294 [DllImport(libname, EntryPoint="CSharp_DB_get_re_pad")] 295 public static extern int DB_get_re_pad(HandleRef jarg1, ref int jarg2); 296 297 [DllImport(libname, EntryPoint="CSharp_DB_set_re_pad")] 298 public static extern int DB_set_re_pad(HandleRef jarg1, int jarg2); 299 300 [DllImport(libname, EntryPoint="CSharp_DB_get_re_source")] 301 public static extern int DB_get_re_source(HandleRef jarg1, ref string jarg2); 302 303 [DllImport(libname, EntryPoint="CSharp_DB_set_re_source")] 304 public static extern int DB_set_re_source(HandleRef jarg1, string jarg2); 305 306 [DllImport(libname, EntryPoint="CSharp_DB_stat")] 307 public static extern IntPtr DB_stat(HandleRef jarg1, HandleRef jarg2, uint jarg3, ref int jarg4); 308 309 [DllImport(libname, EntryPoint="CSharp_DB_stat_print")] 310 public static extern int DB_stat_print(HandleRef jarg1, uint jarg2); 311 312 [DllImport(libname, EntryPoint="CSharp_DB_sync")] 313 public static extern int DB_sync(HandleRef jarg1, uint jarg2); 314 315 [DllImport(libname, EntryPoint="CSharp_DB_truncate")] 316 public static extern int DB_truncate(HandleRef jarg1, HandleRef jarg2, ref uint jarg3, uint jarg4); 317 318 [DllImport(libname, EntryPoint="CSharp_DB_upgrade")] 319 public static extern int DB_upgrade(HandleRef jarg1, string jarg2, uint jarg3); 320 321 [DllImport(libname, EntryPoint="CSharp_DB_verify")] 322 public static extern int DB_verify(HandleRef jarg1, string jarg2, string jarg3, System.IO.TextWriter jarg4, BDB_FileWriteDelegate jarg5, uint jarg6); 323 324 [DllImport(libname, EntryPoint="CSharp_DBC_close")] 325 public static extern int DBC_close(HandleRef jarg1); 326 327 [DllImport(libname, EntryPoint="CSharp_DBC_cmp")] 328 public static extern int DBC_cmp(HandleRef jarg1, HandleRef jarg2, ref int jarg3, uint jarg4); 329 330 [DllImport(libname, EntryPoint="CSharp_DBC_count")] 331 public static extern int DBC_count(HandleRef jarg1, ref uint jarg2, uint jarg3); 332 333 [DllImport(libname, EntryPoint="CSharp_DBC_del")] 334 public static extern int DBC_del(HandleRef jarg1, uint jarg2); 335 336 [DllImport(libname, EntryPoint="CSharp_DBC_dup")] 337 public static extern IntPtr DBC_dup(HandleRef jarg1, uint jarg2, ref int jarg3); 338 339 [DllImport(libname, EntryPoint="CSharp_DBC_get")] 340 public static extern int DBC_get(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4); 341 342 [DllImport(libname, EntryPoint="CSharp_DBC_pget")] 343 public static extern int DBC_pget(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, uint jarg5); 344 345 [DllImport(libname, EntryPoint="CSharp_DBC_put")] 346 public static extern int DBC_put(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4); 347 348 [DllImport(libname, EntryPoint="CSharp_DBC_set_priority")] 349 public static extern int DBC_set_priority(HandleRef jarg1, uint jarg2); 350 351 [DllImport(libname, EntryPoint="CSharp_new_DBC")] 352 public static extern IntPtr new_DBC(); 353 354 [DllImport(libname, EntryPoint="CSharp_delete_DBC")] 355 public static extern void delete_DBC(HandleRef jarg1); 356 357 [DllImport(libname, EntryPoint="CSharp_DBT_dlen_set")] 358 public static extern void DBT_dlen_set(HandleRef jarg1, uint jarg2); 359 360 [DllImport(libname, EntryPoint="CSharp_DBT_dlen_get")] 361 public static extern uint DBT_dlen_get(HandleRef jarg1); 362 363 [DllImport(libname, EntryPoint="CSharp_DBT_doff_set")] 364 public static extern void DBT_doff_set(HandleRef jarg1, uint jarg2); 365 366 [DllImport(libname, EntryPoint="CSharp_DBT_doff_get")] 367 public static extern uint DBT_doff_get(HandleRef jarg1); 368 369 [DllImport(libname, EntryPoint="CSharp_DBT_flags_set")] 370 public static extern void DBT_flags_set(HandleRef jarg1, uint jarg2); 371 372 [DllImport(libname, EntryPoint="CSharp_DBT_flags_get")] 373 public static extern uint DBT_flags_get(HandleRef jarg1); 374 375 [DllImport(libname, EntryPoint="CSharp_DBT_size_set")] 376 public static extern void DBT_size_set(HandleRef jarg1, uint jarg2); 377 378 [DllImport(libname, EntryPoint="CSharp_DBT_size_get")] 379 public static extern uint DBT_size_get(HandleRef jarg1); 380 381 [DllImport(libname, EntryPoint="CSharp_DBT_ulen_set")] 382 public static extern void DBT_ulen_set(HandleRef jarg1, uint jarg2); 383 384 [DllImport(libname, EntryPoint="CSharp_DBT_ulen_get")] 385 public static extern uint DBT_ulen_get(HandleRef jarg1); 386 387 [DllImport(libname, EntryPoint="CSharp_DBT_data_set")] 388 public static extern void DBT_data_set(HandleRef jarg1, IntPtr jarg2); 389 390 [DllImport(libname, EntryPoint="CSharp_DBT_data_get")] 391 public static extern IntPtr DBT_data_get(HandleRef jarg1); 392 393 [DllImport(libname, EntryPoint="CSharp_DBT_app_data_set")] 394 public static extern void DBT_app_data_set(HandleRef jarg1, DatabaseEntry jarg2); 395 396 [DllImport(libname, EntryPoint="CSharp_DBT_app_data_get")] 397 public static extern DatabaseEntry DBT_app_data_get(HandleRef jarg1); 398 399 [DllImport(libname, EntryPoint="CSharp_new_DBT")] 400 public static extern IntPtr new_DBT(); 401 402 [DllImport(libname, EntryPoint="CSharp_delete_DBT")] 403 public static extern void delete_DBT(HandleRef jarg1); 404 405 [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_eid_set")] 406 public static extern void DB_REPMGR_SITE_eid_set(HandleRef jarg1, int jarg2); 407 408 [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_eid_get")] 409 public static extern int DB_REPMGR_SITE_eid_get(HandleRef jarg1); 410 411 [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_host_set")] 412 public static extern void DB_REPMGR_SITE_host_set(HandleRef jarg1, string jarg2); 413 414 [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_host_get")] 415 public static extern string DB_REPMGR_SITE_host_get(HandleRef jarg1); 416 417 [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_port_set")] 418 public static extern void DB_REPMGR_SITE_port_set(HandleRef jarg1, uint jarg2); 419 420 [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_port_get")] 421 public static extern uint DB_REPMGR_SITE_port_get(HandleRef jarg1); 422 423 [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_status_set")] 424 public static extern void DB_REPMGR_SITE_status_set(HandleRef jarg1, uint jarg2); 425 426 [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_status_get")] 427 public static extern uint DB_REPMGR_SITE_status_get(HandleRef jarg1); 428 429 [DllImport(libname, EntryPoint="CSharp_new_DB_REPMGR_SITE")] 430 public static extern IntPtr new_DB_REPMGR_SITE(); 431 432 [DllImport(libname, EntryPoint="CSharp_delete_DB_REPMGR_SITE")] 433 public static extern void delete_DB_REPMGR_SITE(HandleRef jarg1); 434 435 [DllImport(libname, EntryPoint="CSharp_DB_TXN_abort")] 436 public static extern int DB_TXN_abort(HandleRef jarg1); 437 438 [DllImport(libname, EntryPoint="CSharp_DB_TXN_commit")] 439 public static extern int DB_TXN_commit(HandleRef jarg1, uint jarg2); 440 441 [DllImport(libname, EntryPoint="CSharp_DB_TXN_discard")] 442 public static extern int DB_TXN_discard(HandleRef jarg1, uint jarg2); 443 444 [DllImport(libname, EntryPoint="CSharp_DB_TXN_id")] 445 public static extern uint DB_TXN_id(HandleRef jarg1); 446 447 [DllImport(libname, EntryPoint="CSharp_DB_TXN_prepare")] 448 public static extern int DB_TXN_prepare(HandleRef jarg1, byte[] jarg2); 449 450 [DllImport(libname, EntryPoint="CSharp_DB_TXN_get_name")] 451 public static extern int DB_TXN_get_name(HandleRef jarg1, ref string jarg2); 452 453 [DllImport(libname, EntryPoint="CSharp_DB_TXN_set_name")] 454 public static extern int DB_TXN_set_name(HandleRef jarg1, string jarg2); 455 456 [DllImport(libname, EntryPoint="CSharp_DB_TXN_set_timeout")] 457 public static extern int DB_TXN_set_timeout(HandleRef jarg1, uint jarg2, uint jarg3); 458 459 [DllImport(libname, EntryPoint="CSharp_new_DB_TXN")] 460 public static extern IntPtr new_DB_TXN(); 461 462 [DllImport(libname, EntryPoint="CSharp_delete_DB_TXN")] 463 public static extern void delete_DB_TXN(HandleRef jarg1); 464 465 [DllImport(libname, EntryPoint="CSharp_DB_ENV_api2_internal_set")] 466 public static extern void DB_ENV_api2_internal_set(HandleRef jarg1, DatabaseEnvironment jarg2); 467 468 [DllImport(libname, EntryPoint="CSharp_DB_ENV_api2_internal_get")] 469 public static extern DatabaseEnvironment DB_ENV_api2_internal_get(HandleRef jarg1); 470 471 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_usercopy")] 472 public static extern int DB_ENV_set_usercopy(HandleRef jarg1, DBTCopyDelegate jarg2); 473 474 [DllImport(libname, EntryPoint="CSharp_new_DB_ENV")] 475 public static extern IntPtr new_DB_ENV(uint jarg1); 476 477 [DllImport(libname, EntryPoint="CSharp_delete_DB_ENV")] 478 public static extern void delete_DB_ENV(HandleRef jarg1); 479 480 [DllImport(libname, EntryPoint="CSharp_DB_ENV_cdsgroup_begin")] 481 public static extern IntPtr DB_ENV_cdsgroup_begin(HandleRef jarg1, ref int jarg2); 482 483 [DllImport(libname, EntryPoint="CSharp_DB_ENV_close")] 484 public static extern int DB_ENV_close(HandleRef jarg1, uint jarg2); 485 486 [DllImport(libname, EntryPoint="CSharp_DB_ENV_dbremove")] 487 public static extern int DB_ENV_dbremove(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, uint jarg5); 488 489 [DllImport(libname, EntryPoint="CSharp_DB_ENV_dbrename")] 490 public static extern int DB_ENV_dbrename(HandleRef jarg1, HandleRef jarg2, string jarg3, string jarg4, string jarg5, uint jarg6); 491 492 [DllImport(libname, EntryPoint="CSharp_DB_ENV_failchk")] 493 public static extern int DB_ENV_failchk(HandleRef jarg1, uint jarg2); 494 495 [DllImport(libname, EntryPoint="CSharp_DB_ENV_fileid_reset")] 496 public static extern int DB_ENV_fileid_reset(HandleRef jarg1, string jarg2, uint jarg3); 497 498 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_home")] 499 public static extern int DB_ENV_get_home(HandleRef jarg1, ref string jarg2); 500 501 [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_detect")] 502 public static extern int DB_ENV_lock_detect(HandleRef jarg1, uint jarg2, uint jarg3, ref uint jarg4); 503 504 [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_get")] 505 public static extern IntPtr DB_ENV_lock_get(HandleRef jarg1, uint jarg2, uint jarg3, HandleRef jarg4, int jarg5, ref int jarg6); 506 507 [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_id")] 508 public static extern int DB_ENV_lock_id(HandleRef jarg1, ref uint jarg2); 509 510 [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_id_free")] 511 public static extern int DB_ENV_lock_id_free(HandleRef jarg1, uint jarg2); 512 513 [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_put")] 514 public static extern int DB_ENV_lock_put(HandleRef jarg1, HandleRef jarg2); 515 516 [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_stat")] 517 public static extern IntPtr DB_ENV_lock_stat(HandleRef jarg1, uint jarg2, ref int jarg3); 518 519 [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_stat_print")] 520 public static extern int DB_ENV_lock_stat_print(HandleRef jarg1, uint jarg2); 521 522 [DllImport(libname, EntryPoint="CSharp_DB_ENV_lock_vec")] 523 public static extern int DB_ENV_lock_vec(HandleRef jarg1, uint jarg2, uint jarg3, IntPtr[] jarg4, int jarg5, HandleRef jarg6); 524 525 [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_archive")] 526 public static extern IntPtr DB_ENV_log_archive(HandleRef jarg1, uint jarg2, ref int jarg3, ref int jarg4); 527 528 [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_file")] 529 public static extern int DB_ENV_log_file(HandleRef jarg1, HandleRef jarg2, IntPtr jarg3, uint jarg4); 530 531 [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_flush")] 532 public static extern int DB_ENV_log_flush(HandleRef jarg1, HandleRef jarg2); 533 534 [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_put")] 535 public static extern int DB_ENV_log_put(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4); 536 537 [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_get_config")] 538 public static extern int DB_ENV_log_get_config(HandleRef jarg1, uint jarg2, ref int jarg3); 539 540 [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_set_config")] 541 public static extern int DB_ENV_log_set_config(HandleRef jarg1, uint jarg2, int jarg3); 542 543 [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_printf")] 544 public static extern int DB_ENV_log_printf(HandleRef jarg1, HandleRef jarg2, string jarg3); 545 546 [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_stat")] 547 public static extern IntPtr DB_ENV_log_stat(HandleRef jarg1, uint jarg2, ref int jarg3); 548 549 [DllImport(libname, EntryPoint="CSharp_DB_ENV_log_stat_print")] 550 public static extern int DB_ENV_log_stat_print(HandleRef jarg1, uint jarg2); 551 552 [DllImport(libname, EntryPoint="CSharp_DB_ENV_lsn_reset")] 553 public static extern int DB_ENV_lsn_reset(HandleRef jarg1, string jarg2, uint jarg3); 554 555 [DllImport(libname, EntryPoint="CSharp_DB_ENV_memp_stat")] 556 public static extern IntPtr DB_ENV_memp_stat(HandleRef jarg1, ref IntPtr jarg2, uint jarg3, ref int jarg4, ref int jarg5); 557 558 [DllImport(libname, EntryPoint="CSharp_DB_ENV_memp_stat_print")] 559 public static extern int DB_ENV_memp_stat_print(HandleRef jarg1, uint jarg2); 560 561 [DllImport(libname, EntryPoint="CSharp_DB_ENV_memp_sync")] 562 public static extern int DB_ENV_memp_sync(HandleRef jarg1, HandleRef jarg2); 563 564 [DllImport(libname, EntryPoint="CSharp_DB_ENV_memp_trickle")] 565 public static extern int DB_ENV_memp_trickle(HandleRef jarg1, int jarg2, ref int jarg3); 566 567 [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_alloc")] 568 public static extern int DB_ENV_mutex_alloc(HandleRef jarg1, uint jarg2, ref uint jarg3); 569 570 [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_free")] 571 public static extern int DB_ENV_mutex_free(HandleRef jarg1, uint jarg2); 572 573 [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_lock")] 574 public static extern int DB_ENV_mutex_lock(HandleRef jarg1, uint jarg2); 575 576 [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_stat")] 577 public static extern IntPtr DB_ENV_mutex_stat(HandleRef jarg1, uint jarg2, ref int jarg3); 578 579 [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_stat_print")] 580 public static extern int DB_ENV_mutex_stat_print(HandleRef jarg1, uint jarg2); 581 582 [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_unlock")] 583 public static extern int DB_ENV_mutex_unlock(HandleRef jarg1, uint jarg2); 584 585 [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_get_align")] 586 public static extern int DB_ENV_mutex_get_align(HandleRef jarg1, ref uint jarg2); 587 588 [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_set_align")] 589 public static extern int DB_ENV_mutex_set_align(HandleRef jarg1, uint jarg2); 590 591 [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_get_increment")] 592 public static extern int DB_ENV_mutex_get_increment(HandleRef jarg1, ref uint jarg2); 593 594 [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_set_increment")] 595 public static extern int DB_ENV_mutex_set_increment(HandleRef jarg1, uint jarg2); 596 597 [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_get_max")] 598 public static extern int DB_ENV_mutex_get_max(HandleRef jarg1, ref uint jarg2); 599 600 [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_set_max")] 601 public static extern int DB_ENV_mutex_set_max(HandleRef jarg1, uint jarg2); 602 603 [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_get_tas_spins")] 604 public static extern int DB_ENV_mutex_get_tas_spins(HandleRef jarg1, ref uint jarg2); 605 606 [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_set_tas_spins")] 607 public static extern int DB_ENV_mutex_set_tas_spins(HandleRef jarg1, uint jarg2); 608 609 [DllImport(libname, EntryPoint="CSharp_DB_ENV_open")] 610 public static extern int DB_ENV_open(HandleRef jarg1, string jarg2, uint jarg3, int jarg4); 611 612 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_open_flags")] 613 public static extern int DB_ENV_get_open_flags(HandleRef jarg1, ref uint jarg2); 614 615 [DllImport(libname, EntryPoint="CSharp_DB_ENV_remove")] 616 public static extern int DB_ENV_remove(HandleRef jarg1, string jarg2, uint jarg3); 617 618 [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_add_remote_site")] 619 public static extern int DB_ENV_repmgr_add_remote_site(HandleRef jarg1, string jarg2, uint jarg3, ref int jarg4, uint jarg5); 620 621 [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_set_ack_policy")] 622 public static extern int DB_ENV_repmgr_set_ack_policy(HandleRef jarg1, int jarg2); 623 624 [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_get_ack_policy")] 625 public static extern int DB_ENV_repmgr_get_ack_policy(HandleRef jarg1, ref int jarg2); 626 627 [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_set_local_site")] 628 public static extern int DB_ENV_repmgr_set_local_site(HandleRef jarg1, string jarg2, uint jarg3, uint jarg4); 629 630 [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_site_list")] 631 public static extern IntPtr DB_ENV_repmgr_site_list(HandleRef jarg1, ref uint jarg2, ref uint jarg3, ref int jarg4); 632 633 [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_start")] 634 public static extern int DB_ENV_repmgr_start(HandleRef jarg1, int jarg2, uint jarg3); 635 636 [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_stat")] 637 public static extern IntPtr DB_ENV_repmgr_stat(HandleRef jarg1, uint jarg2, ref int jarg3); 638 639 [DllImport(libname, EntryPoint="CSharp_DB_ENV_repmgr_stat_print")] 640 public static extern int DB_ENV_repmgr_stat_print(HandleRef jarg1, uint jarg2); 641 642 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_elect")] 643 public static extern int DB_ENV_rep_elect(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4); 644 645 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_process_message")] 646 public static extern int DB_ENV_rep_process_message(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, int jarg4, HandleRef jarg5); 647 648 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_start")] 649 public static extern int DB_ENV_rep_start(HandleRef jarg1, HandleRef jarg2, uint jarg3); 650 651 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_stat")] 652 public static extern IntPtr DB_ENV_rep_stat(HandleRef jarg1, uint jarg2, ref int jarg3); 653 654 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_stat_print")] 655 public static extern int DB_ENV_rep_stat_print(HandleRef jarg1, uint jarg2); 656 657 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_sync")] 658 public static extern int DB_ENV_rep_sync(HandleRef jarg1, uint jarg2); 659 660 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_config")] 661 public static extern int DB_ENV_rep_set_config(HandleRef jarg1, uint jarg2, int jarg3); 662 663 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_get_config")] 664 public static extern int DB_ENV_rep_get_config(HandleRef jarg1, uint jarg2, ref int jarg3); 665 666 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_clockskew")] 667 public static extern int DB_ENV_rep_set_clockskew(HandleRef jarg1, uint jarg2, uint jarg3); 668 669 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_get_clockskew")] 670 public static extern int DB_ENV_rep_get_clockskew(HandleRef jarg1, ref uint jarg2, ref uint jarg3); 671 672 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_limit")] 673 public static extern int DB_ENV_rep_set_limit(HandleRef jarg1, uint jarg2, uint jarg3); 674 675 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_get_limit")] 676 public static extern int DB_ENV_rep_get_limit(HandleRef jarg1, ref uint jarg2, ref uint jarg3); 677 678 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_nsites")] 679 public static extern int DB_ENV_rep_set_nsites(HandleRef jarg1, uint jarg2); 680 681 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_get_nsites")] 682 public static extern int DB_ENV_rep_get_nsites(HandleRef jarg1, ref uint jarg2); 683 684 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_priority")] 685 public static extern int DB_ENV_rep_set_priority(HandleRef jarg1, uint jarg2); 686 687 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_get_priority")] 688 public static extern int DB_ENV_rep_get_priority(HandleRef jarg1, ref uint jarg2); 689 690 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_request")] 691 public static extern int DB_ENV_rep_set_request(HandleRef jarg1, uint jarg2, uint jarg3); 692 693 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_get_request")] 694 public static extern int DB_ENV_rep_get_request(HandleRef jarg1, ref uint jarg2, ref uint jarg3); 695 696 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_timeout")] 697 public static extern int DB_ENV_rep_set_timeout(HandleRef jarg1, int jarg2, uint jarg3); 698 699 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_get_timeout")] 700 public static extern int DB_ENV_rep_get_timeout(HandleRef jarg1, int jarg2, ref uint jarg3); 701 702 [DllImport(libname, EntryPoint="CSharp_DB_ENV_rep_set_transport")] 703 public static extern int DB_ENV_rep_set_transport(HandleRef jarg1, int jarg2, BDB_RepTransportDelegate jarg3); 704 705 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_cachesize")] 706 public static extern int DB_ENV_get_cachesize(HandleRef jarg1, ref uint jarg2, ref uint jarg3, ref int jarg4); 707 708 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_cachesize")] 709 public static extern int DB_ENV_set_cachesize(HandleRef jarg1, uint jarg2, uint jarg3, int jarg4); 710 711 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_cache_max")] 712 public static extern int DB_ENV_get_cache_max(HandleRef jarg1, ref uint jarg2, ref uint jarg3); 713 714 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_cache_max")] 715 public static extern int DB_ENV_set_cache_max(HandleRef jarg1, uint jarg2, uint jarg3); 716 717 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_data_dirs")] 718 public static extern IntPtr DB_ENV_get_data_dirs(HandleRef jarg1, ref int jarg2, ref int jarg3); 719 720 [DllImport(libname, EntryPoint="CSharp_DB_ENV_add_data_dir")] 721 public static extern int DB_ENV_add_data_dir(HandleRef jarg1, string jarg2); 722 723 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_create_dir")] 724 public static extern int DB_ENV_set_create_dir(HandleRef jarg1, string jarg2); 725 726 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_encrypt_flags")] 727 public static extern int DB_ENV_get_encrypt_flags(HandleRef jarg1, ref uint jarg2); 728 729 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_encrypt")] 730 public static extern int DB_ENV_set_encrypt(HandleRef jarg1, string jarg2, uint jarg3); 731 732 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_errcall")] 733 public static extern void DB_ENV_set_errcall(HandleRef jarg1, BDB_ErrcallDelegate jarg2); 734 735 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_event_notify")] 736 public static extern int DB_ENV_set_event_notify(HandleRef jarg1, BDB_EventNotifyDelegate jarg2); 737 738 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_feedback")] 739 public static extern int DB_ENV_set_feedback(HandleRef jarg1, BDB_EnvFeedbackDelegate jarg2); 740 741 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_flags")] 742 public static extern int DB_ENV_get_flags(HandleRef jarg1, ref uint jarg2); 743 744 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_flags")] 745 public static extern int DB_ENV_set_flags(HandleRef jarg1, uint jarg2, int jarg3); 746 747 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_intermediate_dir_mode")] 748 public static extern int DB_ENV_get_intermediate_dir_mode(HandleRef jarg1, ref string jarg2); 749 750 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_intermediate_dir_mode")] 751 public static extern int DB_ENV_set_intermediate_dir_mode(HandleRef jarg1, string jarg2); 752 753 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_isalive")] 754 public static extern int DB_ENV_set_isalive(HandleRef jarg1, BDB_IsAliveDelegate jarg2); 755 756 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lg_bsize")] 757 public static extern int DB_ENV_get_lg_bsize(HandleRef jarg1, ref uint jarg2); 758 759 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lg_bsize")] 760 public static extern int DB_ENV_set_lg_bsize(HandleRef jarg1, uint jarg2); 761 762 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lg_dir")] 763 public static extern int DB_ENV_get_lg_dir(HandleRef jarg1, ref string jarg2); 764 765 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lg_dir")] 766 public static extern int DB_ENV_set_lg_dir(HandleRef jarg1, string jarg2); 767 768 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lg_filemode")] 769 public static extern int DB_ENV_get_lg_filemode(HandleRef jarg1, ref int jarg2); 770 771 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lg_filemode")] 772 public static extern int DB_ENV_set_lg_filemode(HandleRef jarg1, int jarg2); 773 774 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lg_max")] 775 public static extern int DB_ENV_get_lg_max(HandleRef jarg1, ref uint jarg2); 776 777 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lg_max")] 778 public static extern int DB_ENV_set_lg_max(HandleRef jarg1, uint jarg2); 779 780 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lg_regionmax")] 781 public static extern int DB_ENV_get_lg_regionmax(HandleRef jarg1, ref uint jarg2); 782 783 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lg_regionmax")] 784 public static extern int DB_ENV_set_lg_regionmax(HandleRef jarg1, uint jarg2); 785 786 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lk_conflicts_nmodes")] 787 public static extern int DB_ENV_get_lk_conflicts_nmodes(HandleRef jarg1, ref int jarg2); 788 789 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lk_conflicts")] 790 public static extern int DB_ENV_get_lk_conflicts(HandleRef jarg1, byte[,] jarg2); 791 792 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lk_conflicts")] 793 public static extern int DB_ENV_set_lk_conflicts(HandleRef jarg1, byte[,] jarg2, int jarg3); 794 795 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lk_detect")] 796 public static extern int DB_ENV_get_lk_detect(HandleRef jarg1, ref uint jarg2); 797 798 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lk_detect")] 799 public static extern int DB_ENV_set_lk_detect(HandleRef jarg1, uint jarg2); 800 801 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lk_max_locks")] 802 public static extern int DB_ENV_get_lk_max_locks(HandleRef jarg1, ref uint jarg2); 803 804 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lk_max_locks")] 805 public static extern int DB_ENV_set_lk_max_locks(HandleRef jarg1, uint jarg2); 806 807 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lk_max_lockers")] 808 public static extern int DB_ENV_get_lk_max_lockers(HandleRef jarg1, ref uint jarg2); 809 810 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lk_max_lockers")] 811 public static extern int DB_ENV_set_lk_max_lockers(HandleRef jarg1, uint jarg2); 812 813 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lk_max_objects")] 814 public static extern int DB_ENV_get_lk_max_objects(HandleRef jarg1, ref uint jarg2); 815 816 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lk_max_objects")] 817 public static extern int DB_ENV_set_lk_max_objects(HandleRef jarg1, uint jarg2); 818 819 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_lk_partitions")] 820 public static extern int DB_ENV_get_lk_partitions(HandleRef jarg1, ref uint jarg2); 821 822 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_lk_partitions")] 823 public static extern int DB_ENV_set_lk_partitions(HandleRef jarg1, uint jarg2); 824 825 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_mp_max_openfd")] 826 public static extern int DB_ENV_get_mp_max_openfd(HandleRef jarg1, ref int jarg2); 827 828 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_mp_max_openfd")] 829 public static extern int DB_ENV_set_mp_max_openfd(HandleRef jarg1, int jarg2); 830 831 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_mp_max_write")] 832 public static extern int DB_ENV_get_mp_max_write(HandleRef jarg1, ref int jarg2, ref uint jarg3); 833 834 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_mp_max_write")] 835 public static extern int DB_ENV_set_mp_max_write(HandleRef jarg1, int jarg2, uint jarg3); 836 837 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_mp_mmapsize")] 838 public static extern int DB_ENV_get_mp_mmapsize(HandleRef jarg1, ref uint jarg2); 839 840 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_mp_mmapsize")] 841 public static extern int DB_ENV_set_mp_mmapsize(HandleRef jarg1, uint jarg2); 842 843 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_thread_count")] 844 public static extern int DB_ENV_get_thread_count(HandleRef jarg1, ref uint jarg2); 845 846 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_thread_count")] 847 public static extern int DB_ENV_set_thread_count(HandleRef jarg1, uint jarg2); 848 849 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_thread_id")] 850 public static extern int DB_ENV_set_thread_id(HandleRef jarg1, BDB_ThreadIDDelegate jarg2); 851 852 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_thread_id_string")] 853 public static extern int DB_ENV_set_thread_id_string(HandleRef jarg1, BDB_ThreadNameDelegate jarg2); 854 855 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_timeout")] 856 public static extern int DB_ENV_get_timeout(HandleRef jarg1, ref uint jarg2, uint jarg3); 857 858 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_timeout")] 859 public static extern int DB_ENV_set_timeout(HandleRef jarg1, uint jarg2, uint jarg3); 860 861 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_tmp_dir")] 862 public static extern int DB_ENV_get_tmp_dir(HandleRef jarg1, ref string jarg2); 863 864 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_tmp_dir")] 865 public static extern int DB_ENV_set_tmp_dir(HandleRef jarg1, string jarg2); 866 867 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_tx_max")] 868 public static extern int DB_ENV_get_tx_max(HandleRef jarg1, ref uint jarg2); 869 870 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_tx_max")] 871 public static extern int DB_ENV_set_tx_max(HandleRef jarg1, uint jarg2); 872 873 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_tx_timestamp")] 874 public static extern int DB_ENV_get_tx_timestamp(HandleRef jarg1, ref long jarg2); 875 876 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_tx_timestamp")] 877 public static extern int DB_ENV_set_tx_timestamp(HandleRef jarg1, ref long jarg2); 878 879 [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_verbose")] 880 public static extern int DB_ENV_get_verbose(HandleRef jarg1, ref uint jarg2); 881 882 [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_verbose")] 883 public static extern int DB_ENV_set_verbose(HandleRef jarg1, uint jarg2, int jarg3); 884 885 [DllImport(libname, EntryPoint="CSharp_DB_ENV_stat_print")] 886 public static extern int DB_ENV_stat_print(HandleRef jarg1, uint jarg2); 887 888 [DllImport(libname, EntryPoint="CSharp_DB_ENV_txn_begin")] 889 public static extern IntPtr DB_ENV_txn_begin(HandleRef jarg1, HandleRef jarg2, uint jarg3, ref int jarg4); 890 891 [DllImport(libname, EntryPoint="CSharp_DB_ENV_txn_checkpoint")] 892 public static extern int DB_ENV_txn_checkpoint(HandleRef jarg1, uint jarg2, uint jarg3, uint jarg4); 893 894 [DllImport(libname, EntryPoint="CSharp_DB_ENV_txn_recover")] 895 public static extern int DB_ENV_txn_recover(HandleRef jarg1, IntPtr jarg2, uint jarg3, ref uint jarg4, uint jarg5); 896 897 [DllImport(libname, EntryPoint="CSharp_DB_ENV_txn_stat")] 898 public static extern IntPtr DB_ENV_txn_stat(HandleRef jarg1, uint jarg2, ref uint jarg3, ref int jarg4); 899 900 [DllImport(libname, EntryPoint="CSharp_DB_ENV_txn_stat_print")] 901 public static extern int DB_ENV_txn_stat_print(HandleRef jarg1, uint jarg2); 902 903 [DllImport(libname, EntryPoint="CSharp_DB_KEY_RANGE_less_set")] 904 public static extern void DB_KEY_RANGE_less_set(HandleRef jarg1, double jarg2); 905 906 [DllImport(libname, EntryPoint="CSharp_DB_KEY_RANGE_less_get")] 907 public static extern double DB_KEY_RANGE_less_get(HandleRef jarg1); 908 909 [DllImport(libname, EntryPoint="CSharp_DB_KEY_RANGE_equal_set")] 910 public static extern void DB_KEY_RANGE_equal_set(HandleRef jarg1, double jarg2); 911 912 [DllImport(libname, EntryPoint="CSharp_DB_KEY_RANGE_equal_get")] 913 public static extern double DB_KEY_RANGE_equal_get(HandleRef jarg1); 914 915 [DllImport(libname, EntryPoint="CSharp_DB_KEY_RANGE_greater_set")] 916 public static extern void DB_KEY_RANGE_greater_set(HandleRef jarg1, double jarg2); 917 918 [DllImport(libname, EntryPoint="CSharp_DB_KEY_RANGE_greater_get")] 919 public static extern double DB_KEY_RANGE_greater_get(HandleRef jarg1); 920 921 [DllImport(libname, EntryPoint="CSharp_new_DB_KEY_RANGE")] 922 public static extern IntPtr new_DB_KEY_RANGE(); 923 924 [DllImport(libname, EntryPoint="CSharp_delete_DB_KEY_RANGE")] 925 public static extern void delete_DB_KEY_RANGE(HandleRef jarg1); 926 927 [DllImport(libname, EntryPoint="CSharp_DB_LOCK_off_set")] 928 public static extern void DB_LOCK_off_set(HandleRef jarg1, uint jarg2); 929 930 [DllImport(libname, EntryPoint="CSharp_DB_LOCK_off_get")] 931 public static extern uint DB_LOCK_off_get(HandleRef jarg1); 932 933 [DllImport(libname, EntryPoint="CSharp_DB_LOCK_ndx_set")] 934 public static extern void DB_LOCK_ndx_set(HandleRef jarg1, uint jarg2); 935 936 [DllImport(libname, EntryPoint="CSharp_DB_LOCK_ndx_get")] 937 public static extern uint DB_LOCK_ndx_get(HandleRef jarg1); 938 939 [DllImport(libname, EntryPoint="CSharp_DB_LOCK_gen_set")] 940 public static extern void DB_LOCK_gen_set(HandleRef jarg1, uint jarg2); 941 942 [DllImport(libname, EntryPoint="CSharp_DB_LOCK_gen_get")] 943 public static extern uint DB_LOCK_gen_get(HandleRef jarg1); 944 945 [DllImport(libname, EntryPoint="CSharp_DB_LOCK_mode_set")] 946 public static extern void DB_LOCK_mode_set(HandleRef jarg1, int jarg2); 947 948 [DllImport(libname, EntryPoint="CSharp_DB_LOCK_mode_get")] 949 public static extern int DB_LOCK_mode_get(HandleRef jarg1); 950 951 [DllImport(libname, EntryPoint="CSharp_new_DB_LOCK")] 952 public static extern IntPtr new_DB_LOCK(); 953 954 [DllImport(libname, EntryPoint="CSharp_delete_DB_LOCK")] 955 public static extern void delete_DB_LOCK(HandleRef jarg1); 956 957 [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_op_set")] 958 public static extern void DB_LOCKREQ_op_set(HandleRef jarg1, int jarg2); 959 960 [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_op_get")] 961 public static extern int DB_LOCKREQ_op_get(HandleRef jarg1); 962 963 [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_mode_set")] 964 public static extern void DB_LOCKREQ_mode_set(HandleRef jarg1, int jarg2); 965 966 [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_mode_get")] 967 public static extern int DB_LOCKREQ_mode_get(HandleRef jarg1); 968 969 [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_timeout_set")] 970 public static extern void DB_LOCKREQ_timeout_set(HandleRef jarg1, uint jarg2); 971 972 [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_timeout_get")] 973 public static extern uint DB_LOCKREQ_timeout_get(HandleRef jarg1); 974 975 [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_obj_set")] 976 public static extern void DB_LOCKREQ_obj_set(HandleRef jarg1, HandleRef jarg2); 977 978 [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_obj_get")] 979 public static extern IntPtr DB_LOCKREQ_obj_get(HandleRef jarg1); 980 981 [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_lck_set")] 982 public static extern void DB_LOCKREQ_lck_set(HandleRef jarg1, HandleRef jarg2); 983 984 [DllImport(libname, EntryPoint="CSharp_DB_LOCKREQ_lck_get")] 985 public static extern IntPtr DB_LOCKREQ_lck_get(HandleRef jarg1); 986 987 [DllImport(libname, EntryPoint="CSharp_new_DB_LOCKREQ")] 988 public static extern IntPtr new_DB_LOCKREQ(); 989 990 [DllImport(libname, EntryPoint="CSharp_delete_DB_LOCKREQ")] 991 public static extern void delete_DB_LOCKREQ(HandleRef jarg1); 992 993 [DllImport(libname, EntryPoint="CSharp_db_strerror")] 994 public static extern string db_strerror(int jarg1); 995 996 [DllImport(libname, EntryPoint="CSharp_log_compare")] 997 public static extern int log_compare(HandleRef jarg1, HandleRef jarg2); 998 999 [DllImport(libname, EntryPoint="CSharp___os_ufree")] 1000 public static extern void __os_ufree(HandleRef jarg1, IntPtr jarg2); 1001 1002 [DllImport(libname, EntryPoint="CSharp_DB_PREPLIST_txn_set")] 1003 public static extern void DB_PREPLIST_txn_set(HandleRef jarg1, HandleRef jarg2); 1004 1005 [DllImport(libname, EntryPoint="CSharp_DB_PREPLIST_txn_get")] 1006 public static extern IntPtr DB_PREPLIST_txn_get(HandleRef jarg1); 1007 1008 [DllImport(libname, EntryPoint="CSharp_DB_PREPLIST_gid_set")] 1009 public static extern void DB_PREPLIST_gid_set(HandleRef jarg1, byte[] jarg2); 1010 1011 [DllImport(libname, EntryPoint="CSharp_DB_PREPLIST_gid_get")] 1012 public static extern byte[] DB_PREPLIST_gid_get(HandleRef jarg1); 1013 1014 [DllImport(libname, EntryPoint="CSharp_new_DB_PREPLIST")] 1015 public static extern IntPtr new_DB_PREPLIST(); 1016 1017 [DllImport(libname, EntryPoint="CSharp_delete_DB_PREPLIST")] 1018 public static extern void delete_DB_PREPLIST(HandleRef jarg1); 1019 1020 [DllImport(libname, EntryPoint="CSharp_new_DB_SEQUENCE")] 1021 public static extern IntPtr new_DB_SEQUENCE(HandleRef jarg1, uint jarg2); 1022 1023 [DllImport(libname, EntryPoint="CSharp_delete_DB_SEQUENCE")] 1024 public static extern void delete_DB_SEQUENCE(HandleRef jarg1); 1025 1026 [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_close")] 1027 public static extern int DB_SEQUENCE_close(HandleRef jarg1, uint jarg2); 1028 1029 [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_get")] 1030 public static extern int DB_SEQUENCE_get(HandleRef jarg1, HandleRef jarg2, int jarg3, ref Int64 jarg4, uint jarg5); 1031 1032 [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_get_db")] 1033 public static extern IntPtr DB_SEQUENCE_get_db(HandleRef jarg1); 1034 1035 [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_get_key")] 1036 public static extern int DB_SEQUENCE_get_key(HandleRef jarg1, HandleRef jarg2); 1037 1038 [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_initial_value")] 1039 public static extern int DB_SEQUENCE_initial_value(HandleRef jarg1, Int64 jarg2); 1040 1041 [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_open")] 1042 public static extern int DB_SEQUENCE_open(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, uint jarg4); 1043 1044 [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_remove")] 1045 public static extern int DB_SEQUENCE_remove(HandleRef jarg1, HandleRef jarg2, uint jarg3); 1046 1047 [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_get_cachesize")] 1048 public static extern int DB_SEQUENCE_get_cachesize(HandleRef jarg1, ref int jarg2); 1049 1050 [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_set_cachesize")] 1051 public static extern int DB_SEQUENCE_set_cachesize(HandleRef jarg1, int jarg2); 1052 1053 [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_get_flags")] 1054 public static extern int DB_SEQUENCE_get_flags(HandleRef jarg1, ref uint jarg2); 1055 1056 [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_set_flags")] 1057 public static extern int DB_SEQUENCE_set_flags(HandleRef jarg1, uint jarg2); 1058 1059 [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_get_range")] 1060 public static extern int DB_SEQUENCE_get_range(HandleRef jarg1, ref Int64 jarg2, ref Int64 jarg3); 1061 1062 [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_set_range")] 1063 public static extern int DB_SEQUENCE_set_range(HandleRef jarg1, Int64 jarg2, Int64 jarg3); 1064 1065 [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_stat")] 1066 public static extern IntPtr DB_SEQUENCE_stat(HandleRef jarg1, uint jarg2, ref int jarg3); 1067 1068 [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_stat_print")] 1069 public static extern int DB_SEQUENCE_stat_print(HandleRef jarg1, uint jarg2); 1070 1071#if DEBUG 1072 private const string libname = "libdb_csharp" + DbConstants.DB_VERSION_MAJOR_STR + DbConstants.DB_VERSION_MINOR_STR + "d"; 1073#else 1074 private const string libname = "libdb_csharp" + DbConstants.DB_VERSION_MAJOR_STR + DbConstants.DB_VERSION_MINOR_STR; 1075#endif 1076 1077} 1078 1079} 1080