blob: 8b94f2b337757420ab82d71704e566fa9d6a208c [file] [log] [blame]
// AUTO GENERATED FILE, DO NOT EDIT.
//
// Generated by `package:ffigen`.
import 'dart:ffi' as ffi;
class Bindings {
/// Holds the symbol lookup function.
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
_lookup;
/// The symbols are looked up in [dynamicLibrary].
Bindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup;
/// The symbols are looked up with [lookup].
Bindings.fromLookup(
ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
lookup)
: _lookup = lookup;
/// Just a test function
/// heres another line
int noParam() {
return _noParam();
}
late final _noParam_ptr =
_lookup<ffi.NativeFunction<ffi.Int32 Function()>>('noParam');
late final _noParam = _noParam_ptr.asFunction<int Function()>();
int withPrimitiveParam(
int a,
int b,
) {
return _withPrimitiveParam(
a,
b,
);
}
late final _withPrimitiveParam_ptr =
_lookup<ffi.NativeFunction<ffi.Uint8 Function(ffi.Int32, ffi.Uint8)>>(
'withPrimitiveParam');
late final _withPrimitiveParam =
_withPrimitiveParam_ptr.asFunction<int Function(int, int)>();
ffi.Pointer<ffi.Double> withPointerParam(
ffi.Pointer<ffi.Int32> a,
ffi.Pointer<ffi.Pointer<ffi.Uint8>> b,
) {
return _withPointerParam(
a,
b,
);
}
late final _withPointerParam_ptr = _lookup<
ffi.NativeFunction<
ffi.Pointer<ffi.Double> Function(ffi.Pointer<ffi.Int32>,
ffi.Pointer<ffi.Pointer<ffi.Uint8>>)>>('withPointerParam');
late final _withPointerParam = _withPointerParam_ptr.asFunction<
ffi.Pointer<ffi.Double> Function(
ffi.Pointer<ffi.Int32>, ffi.Pointer<ffi.Pointer<ffi.Uint8>>)>();
}