summaryrefslogtreecommitdiff
path: root/lang/csharp/src/Internal/libdb_csharpPINVOKE.cs
blob: 6be15c654c4c1dd9963a96edc07b44726c6989a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 2.0.12
 *
 * 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();


  static libdb_csharpPINVOKE() {
  }


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

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

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

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

  [DllImport(libname, EntryPoint="CSharp_new_DB_CHANNEL")]
  public static extern IntPtr new_DB_CHANNEL();

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

  [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_empty_buckets_set")]
  public static extern void DB_COMPACT_compact_empty_buckets_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_COMPACT_compact_empty_buckets_get")]
  public static extern uint DB_COMPACT_compact_empty_buckets_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_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, out IntPtr jarg2, out IntPtr 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_get_blob_dir")]
  public static extern int DB_get_blob_dir(HandleRef jarg1, out IntPtr jarg2);

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

  [DllImport(libname, EntryPoint="CSharp_DB_get_blob_sub_dir")]
  public static extern int DB_get_blob_sub_dir(HandleRef jarg1, out IntPtr jarg2);

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

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

  [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_PrefixCompareDelegate 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_get_heapsize")]
  public static extern int DB_get_heapsize(HandleRef jarg1, ref uint jarg2, ref uint jarg3);

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

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

  [DllImport(libname, EntryPoint="CSharp_DB_set_heap_regionsize")]
  public static extern int DB_set_heap_regionsize(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_lk_exclusive")]
  public static extern int DB_get_lk_exclusive(HandleRef jarg1, ref int jarg2, ref int jarg3);

  [DllImport(libname, EntryPoint="CSharp_DB_set_lk_exclusive")]
  public static extern int DB_set_lk_exclusive(HandleRef jarg1, int 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_set_msgcall")]
  public static extern void DB_set_msgcall(HandleRef jarg1, BDB_MsgcallDelegate jarg2);

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

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

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

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

  [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, out IntPtr 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_db_stream")]
  public static extern IntPtr DBC_db_stream(HandleRef jarg1, uint jarg2, ref int 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_get_priority")]
  public static extern int DBC_get_priority(HandleRef jarg1, ref uint jarg2);

  [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_DB_TXN_TOKEN_buf_set")]
  public static extern void DB_TXN_TOKEN_buf_set(HandleRef jarg1, byte[] jarg2);

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

  [DllImport(libname, EntryPoint="CSharp_new_DB_TXN_TOKEN")]
  public static extern IntPtr new_DB_TXN_TOKEN();

  [DllImport(libname, EntryPoint="CSharp_delete_DB_TXN_TOKEN")]
  public static extern void delete_DB_TXN_TOKEN(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_SITE_close")]
  public static extern int DB_SITE_close(HandleRef jarg1);

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

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

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

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

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

  [DllImport(libname, EntryPoint="CSharp_new_DB_SITE")]
  public static extern IntPtr new_DB_SITE();

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

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

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

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

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

  [DllImport(libname, EntryPoint="CSharp_new_DB_STREAM")]
  public static extern IntPtr new_DB_STREAM();

  [DllImport(libname, EntryPoint="CSharp_delete_DB_STREAM")]
  public static extern void delete_DB_STREAM(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_DB_REPMGR_SITE_flags_set")]
  public static extern void DB_REPMGR_SITE_flags_set(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_REPMGR_SITE_flags_get")]
  public static extern uint DB_REPMGR_SITE_flags_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_is_commit_token_enabled")]
  public static extern int DB_TXN_is_commit_token_enabled(HandleRef jarg1);

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

  [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, out IntPtr 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_get_priority")]
  public static extern int DB_TXN_get_priority(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_TXN_set_priority")]
  public static extern int DB_TXN_set_priority(HandleRef jarg1, uint 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_backup")]
  public static extern int DB_ENV_backup(HandleRef jarg1, string jarg2, uint jarg3);

  [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_dbbackup")]
  public static extern int DB_ENV_dbbackup(HandleRef jarg1, string jarg2, string jarg3, uint jarg4);

  [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, out IntPtr jarg2);

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

  [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_init")]
  public static extern int DB_ENV_mutex_get_init(HandleRef jarg1, ref uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_mutex_set_init")]
  public static extern int DB_ENV_mutex_set_init(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_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_get_incoming_queue_max")]
  public static extern int DB_ENV_repmgr_get_incoming_queue_max(HandleRef jarg1, ref uint jarg2, ref uint jarg3);

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

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

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

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

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

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

  [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_rep_set_view")]
  public static extern int DB_ENV_rep_set_view(HandleRef jarg1, BDB_ReplicationViewDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_backup_callbacks")]
  public static extern int DB_ENV_set_backup_callbacks(HandleRef jarg1, BDB_BackupOpenDelegate jarg2, BDB_BackupWriteDelegate jarg3, BDB_BackupCloseDelegate jarg4);

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

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

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_blob_dir")]
  public static extern int DB_ENV_get_blob_dir(HandleRef jarg1, out IntPtr jarg2);

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

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

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_blob_threshold")]
  public static extern int DB_ENV_set_blob_threshold(HandleRef jarg1, uint jarg2, uint 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, out IntPtr 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, out IntPtr 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_log_verify")]
  public static extern int DB_ENV_log_verify(HandleRef jarg1, string jarg2, uint jarg3, string jarg4, string jarg5, long jarg6, long jarg7, uint jarg8, uint jarg9, uint jarg10, uint jarg11, int jarg12, int jarg13);

  [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_lk_tablesize")]
  public static extern int DB_ENV_get_lk_tablesize(HandleRef jarg1, ref uint jarg2);

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

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

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

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

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

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_get_metadata_dir")]
  public static extern int DB_ENV_get_metadata_dir(HandleRef jarg1, out IntPtr jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_metadata_dir")]
  public static extern int DB_ENV_set_metadata_dir(HandleRef jarg1, string 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_set_msgcall")]
  public static extern void DB_ENV_set_msgcall(HandleRef jarg1, BDB_MsgcallDelegate jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_ENV_set_msgfile")]
  public static extern int DB_ENV_set_msgfile(HandleRef jarg1, string 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, out IntPtr 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, int jarg3, ref long 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___os_umalloc")]
  public static extern IntPtr __os_umalloc(HandleRef jarg1, uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_alloc_dbt_arr")]
  public static extern uint alloc_dbt_arr(HandleRef jarg1, int jarg2, out IntPtr jarg3);

  [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, uint 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 uint jarg2);

  [DllImport(libname, EntryPoint="CSharp_DB_SEQUENCE_set_cachesize")]
  public static extern int DB_SEQUENCE_set_cachesize(HandleRef jarg1, uint 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

}

}