FFI::Probe::Runner#
Probe runner for FFI
VERSION#
version 2.12
SYNOPSIS#
use FFI::Probe::Runner;
my $runner = FFI::Probe::Runner->new;
$runner->run('foo.so');
DESCRIPTION#
This class executes code in a dynamic library for probing and detecting platform properties.
CONSTRUCTOR#
new#
my $runner = FFI::Probe::Runner->new(%args);
Creates a new instance.
exe
The path to the dlrun wrapper. The default is usually correct.
flags
The flags to pass into
dlopen. The default isRTLD_LAZYon Unix and0on windows..
METHODS#
exe#
my $exe = $runner->exe;
The path to the dlrun wrapper.
flags#
my $flags = $runner->flags;
The flags to pass into dlopen.
verify#
$runner->verify;
Verifies the dlrun wrapper is working. Throws an exception in the event of failure.
run#
$runner->run($dll, @args);
Runs the dlmain function in the given dynamic library, passing in the given arguments. Returns a FFI::Probe::Runner::Result object which contains the results.
COPYRIGHT AND LICENSE#
This software is copyright (c) 2015-2022 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Modules#
FFI::Probe::Runner::Builder- Probe runner builder for FFIFFI::Probe::Runner::Result- The results from a probe run.