//-----------------------------------------------------------------------
// 
//     Copyright (c) Microsoft Corporation.
// 
//-----------------------------------------------------------------------
namespace Microsoft.Isam.Esent.Interop
{
    using System;
    /// 
    /// A multi-purpose callback function used by the database engine to inform
    /// the application of an event involving online defragmentation and cursor
    /// state notifications. 
    /// 
    /// The session for which the callback is being made.
    /// The database for which the callback is being made.
    /// The cursor for which the callback is being made.
    /// The operation for which the callback is being made.
    /// First callback-specific argument.
    /// Second callback-specific argument.
    /// Callback context.
    /// This parameter is not used.
    /// An ESENT error code.
    public delegate JET_err JET_CALLBACK(
        JET_SESID sesid,
        JET_DBID dbid,
        JET_TABLEID tableid,
        JET_cbtyp cbtyp,
        object arg1,
        object arg2,
        IntPtr context,
        IntPtr unused);
}