mdb_env_get_path function

int mdb_env_get_path(
  1. Pointer<MDB_env> env,
  2. Pointer<Pointer<Char>> path
)

@brief Return the path that was used in #mdb_env_open().

@paramin env An environment handle returned by #mdb_env_create() @paramout path Address of a string pointer to contain the path. This is the actual string in the environment, not a copy. It should not be altered in any way. @return A non-zero error value on failure and 0 on success. Some possible errors are:

  • EINVAL - an invalid parameter was specified.

Implementation

@ffi.FfiNative<
    ffi.Int Function(ffi.Pointer<MDB_env>,
        ffi.Pointer<ffi.Pointer<ffi.Char>>)>('mdb_env_get_path')
external int mdb_env_get_path(
  ffi.Pointer<MDB_env> env,
  ffi.Pointer<ffi.Pointer<ffi.Char>> path,
);