mdb_env_set_userctx function

int mdb_env_set_userctx(
  1. Pointer<MDB_env> env,
  2. Pointer<Void> ctx
)

@brief Set application information associated with the #MDB_env.

@paramin env An environment handle returned by #mdb_env_create() @paramin ctx An arbitrary pointer for whatever the application needs. @return A non-zero error value on failure and 0 on success.

Implementation

@ffi.FfiNative<ffi.Int Function(ffi.Pointer<MDB_env>, ffi.Pointer<ffi.Void>)>(
    'mdb_env_set_userctx')
external int mdb_env_set_userctx(
  ffi.Pointer<MDB_env> env,
  ffi.Pointer<ffi.Void> ctx,
);