|
NAMEFFI::Probe - System detection and probing for FFI extensions.VERSIONversion 1.56SYNOPSISuse FFI::Probe; my $probe = FFI::Probe->new; $probe->check_header('foo.h'); ... DESCRIPTIONThis class provides an interface for probing for system capabilities. It is used internally as part of the FFI::Platypus build process, but it may also be useful for extensions that use Platypus as well.CONSTRUCTORnewmy $probe = FFI::Probe->new(%args); Creates a new instance.
METHODScheck_headermy $bool = $probe->check_header($header); Checks that the given C header file is available. Stores the result, and returns a true/false value. check_cppcheck_evalmy $bool = $probe>check_eval(%args);
checkcheck_type_intmy $type = $probe->check_type_int($type); check_type_enummy $type = $probe->check_type_enum; check_type_enummy $type = $probe->check_type_enum; check_type_floatmy $type = $probe->check_type_float($type); check_type_pointermy $type = $probe->check_type_pointer; set$probe->set(@key, $value); Used internally to store a value. save$probe->save; Saves the values already detected. datamy $data = $probe->data; Returns a hashref of the data already detected. log$probe->log($string); Sends the given string to the log. log_code$prbe->log_code($string); Sends the given multi-line code block to the log. templatemy $template = $probe->template; Returns the C code template used for "check_eval" and other "check_" methods. AUTHORAuthor: Graham Ollis <plicease@cpan.org>Contributors: Bakkiaraj Murugesan (bakkiaraj) Dylan Cali (calid) pipcet Zaki Mughal (zmughal) Fitz Elliott (felliott) Vickenty Fesunov (vyf) Gregor Herrmann (gregoa) Shlomi Fish (shlomif) Damyan Ivanov Ilya Pavlov (Ilya33) Petr Písař (ppisar) Mohammad S Anwar (MANWAR) Håkon Hægland (hakonhagland, HAKONH) Meredith (merrilymeredith, MHOWARD) Diab Jerius (DJERIUS) Eric Brine (IKEGAMI) szTheory José Joaquín Atria (JJATRIA) Pete Houston (openstrike, HOUSTON) COPYRIGHT AND LICENSEThis software is copyright (c) 2015,2016,2017,2018,2019,2020 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.
Visit the GSP FreeBSD Man Page Interface. |