1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using System.Runtime.InteropServices;
5 
6 namespace BerkeleyDB.Internal {
7     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_AppendRecnoDelegate(IntPtr db, IntPtr data, uint recno)8     internal delegate void BDB_AppendRecnoDelegate(IntPtr db, IntPtr data, uint recno);
9     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_AssociateDelegate(IntPtr db, IntPtr key, IntPtr data, IntPtr result)10     internal delegate int BDB_AssociateDelegate(IntPtr db, IntPtr key, IntPtr data, IntPtr result);
11     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_AssociateForeignDelegate(IntPtr db, IntPtr key, IntPtr data, IntPtr foreign, ref int changed)12     internal delegate int BDB_AssociateForeignDelegate(IntPtr db, IntPtr key, IntPtr data, IntPtr foreign, ref int changed);
13     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_BackupCloseDelegate(IntPtr dbenv, string dbname, IntPtr handle)14     internal delegate int BDB_BackupCloseDelegate(IntPtr dbenv, string dbname, IntPtr handle);
15     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_BackupOpenDelegate(IntPtr dbenv, string dbname, string target, IntPtr handle)16     internal delegate int BDB_BackupOpenDelegate(IntPtr dbenv, string dbname, string target, IntPtr handle);
17     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_BackupWriteDelegate(IntPtr dbenv, uint off_gbytes, uint off_bytes, uint size, IntPtr buf, IntPtr handle)18     internal delegate int BDB_BackupWriteDelegate(IntPtr dbenv, uint off_gbytes, uint off_bytes, uint size, IntPtr buf, IntPtr handle);
19     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_CompareDelegate(IntPtr db, IntPtr dbt1, IntPtr dbt2, IntPtr locp)20     internal delegate int BDB_CompareDelegate(IntPtr db, IntPtr dbt1, IntPtr dbt2, IntPtr locp);
21     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_PrefixCompareDelegate(IntPtr db, IntPtr dbt1, IntPtr dbt2)22     internal delegate uint BDB_PrefixCompareDelegate(IntPtr db, IntPtr dbt1, IntPtr dbt2);
23     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_CompressDelegate(IntPtr db, IntPtr prevKey, IntPtr prevData, IntPtr key, IntPtr data, IntPtr dest)24     internal delegate int BDB_CompressDelegate(IntPtr db, IntPtr prevKey, IntPtr prevData, IntPtr key, IntPtr data, IntPtr dest);
25     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_DbFeedbackDelegate(IntPtr db, int opcode, int percent)26     internal delegate void BDB_DbFeedbackDelegate(IntPtr db, int opcode, int percent);
27     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_DecompressDelegate(IntPtr db, IntPtr prevKey, IntPtr prevData, IntPtr compressed, IntPtr destKey, IntPtr destData)28     internal delegate int BDB_DecompressDelegate(IntPtr db, IntPtr prevKey, IntPtr prevData, IntPtr compressed, IntPtr destKey, IntPtr destData);
29     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_EnvFeedbackDelegate(IntPtr db, int opcode, int percent)30     internal delegate void BDB_EnvFeedbackDelegate(IntPtr db, int opcode, int percent);
31     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_ErrcallDelegate(IntPtr env, string pfx, string msg)32     internal delegate void BDB_ErrcallDelegate(IntPtr env, string pfx, string msg);
33     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_EventNotifyDelegate(IntPtr dbenv, uint eventcode, byte[] event_info)34     internal delegate void BDB_EventNotifyDelegate(IntPtr dbenv, uint eventcode, byte[] event_info);
35     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_FileWriteDelegate(System.IO.TextWriter fs, string buf)36     internal delegate int BDB_FileWriteDelegate(System.IO.TextWriter fs, string buf);
37     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_HashDelegate(IntPtr db, IntPtr data, uint len)38     internal delegate uint BDB_HashDelegate(IntPtr db, IntPtr data, uint len);
39     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_IsAliveDelegate(IntPtr dbenv, int pid, uint tid, uint flags)40     internal delegate int BDB_IsAliveDelegate(IntPtr dbenv, int pid, uint tid, uint flags);
41     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_MessageDispatchDelegate(IntPtr dbenv, IntPtr channel, IntPtr request, uint nrequest, uint cb_flags)42     internal delegate void BDB_MessageDispatchDelegate(IntPtr dbenv, IntPtr channel, IntPtr request, uint nrequest, uint cb_flags);
43     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_MsgcallDelegate(IntPtr env, string pfx, string msg)44     internal delegate void BDB_MsgcallDelegate(IntPtr env, string pfx, string msg);
45     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_ReplicationViewDelegate(IntPtr dbenv, string name, ref int result, uint flags)46     internal delegate int BDB_ReplicationViewDelegate(IntPtr dbenv, string name, ref int result, uint flags);
47     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_PartitionDelegate(IntPtr db, IntPtr key)48     internal delegate uint BDB_PartitionDelegate(IntPtr db, IntPtr key);
49     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_RepTransportDelegate(IntPtr dbenv, IntPtr control, IntPtr rec, IntPtr lsnp, int envid, uint flags)50     internal delegate int BDB_RepTransportDelegate(IntPtr dbenv, IntPtr control, IntPtr rec, IntPtr lsnp, int envid, uint flags);
51     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_ThreadIDDelegate(IntPtr dbenv, IntPtr pid, IntPtr tid)52     internal delegate void BDB_ThreadIDDelegate(IntPtr dbenv, IntPtr pid, IntPtr tid);
53     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
BDB_ThreadNameDelegate(IntPtr dbenv, int pid, uint tid, ref string buf)54     internal delegate string BDB_ThreadNameDelegate(IntPtr dbenv, int pid, uint tid, ref string buf);
55     [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
DBTCopyDelegate(IntPtr dbt, uint offset, IntPtr buf, uint sz, uint flags)56     internal delegate int DBTCopyDelegate(IntPtr dbt, uint offset, IntPtr buf, uint sz, uint flags);
57 }
58