pub unsafe extern "C" fn mdb_set_relctx(
    txn: *mut MDB_txn,
    dbi: MDB_dbi,
    ctx: *mut c_void
) -> c_int
Expand description

@brief Set a context pointer for a #MDB_FIXEDMAP database’s relocation function.

See #mdb_set_relfunc and #MDB_rel_func for more details. @param[in] txn A transaction handle returned by #mdb_txn_begin() @param[in] dbi A database handle returned by #mdb_dbi_open() @param[in] ctx An arbitrary pointer for whatever the application needs. It will be passed to the callback function set by #mdb_set_relfunc as its \b relctx parameter whenever the callback is invoked. @return A non-zero error value on failure and 0 on success. Some possible errors are:

  • EINVAL - an invalid parameter was specified.