SealdUtils_ParseSessionIdFromFile method

int SealdUtils_ParseSessionIdFromFile(
  1. Pointer<Utf8> encryptedFilePath,
  2. Pointer<Pointer<Utf8>> result,
  3. Pointer<Pointer<NativeSealdError>> error
)

Takes the path to an encrypted file, and returns the session id.

@param file Path to the encrypted file. @param result A pointer to which to write the response. @param error A pointer to a SealdError* where details will be stored in case of error. @return Error code: -1 if an error happened, 0 for success.

Implementation

int SealdUtils_ParseSessionIdFromFile(
  ffi.Pointer<pkg_ffi.Utf8> encryptedFilePath,
  ffi.Pointer<ffi.Pointer<pkg_ffi.Utf8>> result,
  ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
  return _SealdUtils_ParseSessionIdFromFile(
    encryptedFilePath,
    result,
    error,
  );
}