// ignore_for_file: always_specify_types // ignore_for_file: camel_case_types // ignore_for_file: non_constant_identifier_names // AUTO GENERATED FILE, DO NOT EDIT. // // Generated by `package:ffigen`. import 'dart:ffi' as ffi; /// Bindings for `src/stockfish.h`. /// /// Regenerate bindings with `dart run ffigen --config ffigen.yaml`. /// class StockfishChessEngineBindings { /// Holds the symbol lookup function. final ffi.Pointer Function(String symbolName) _lookup; /// The symbols are looked up in [dynamicLibrary]. StockfishChessEngineBindings(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. StockfishChessEngineBindings.fromLookup( ffi.Pointer Function(String symbolName) lookup) : _lookup = lookup; int stockfish_init() { return _stockfish_init(); } late final _stockfish_initPtr = _lookup>('stockfish_init'); late final _stockfish_init = _stockfish_initPtr.asFunction(); int stockfish_main() { return _stockfish_main(); } late final _stockfish_mainPtr = _lookup>('stockfish_main'); late final _stockfish_main = _stockfish_mainPtr.asFunction(); int stockfish_stdin_write( ffi.Pointer data, ) { return _stockfish_stdin_write( data, ); } late final _stockfish_stdin_writePtr = _lookup)>>( 'stockfish_stdin_write'); late final _stockfish_stdin_write = _stockfish_stdin_writePtr .asFunction)>(); ffi.Pointer stockfish_stdout_read() { return _stockfish_stdout_read(); } late final _stockfish_stdout_readPtr = _lookup Function()>>( 'stockfish_stdout_read'); late final _stockfish_stdout_read = _stockfish_stdout_readPtr.asFunction Function()>(); } typedef ssize_t = __ssize_t; typedef __ssize_t = ffi.Long;