Udev::FFI - Perl bindings for libudev using ffi.
use Udev::FFI; #get udev version my $udev_version = udev_version(); if(defined $udev_version) { print $udev_version. "\n"; } else { warn "Can't get udev version: $@"; } #create udev context my $udev = Udev::FFI->new() or die "Can't create udev context: $@";
Udev::FFI exposes OO interface to libudev.
See examples folder.
libudev
FFI::Platypus
Ilya Pavlov, <iluxz@mail.ru>
Copyright (C) 2017 by Ilya Pavlov
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
To install Udev::FFI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Udev::FFI
CPAN shell
perl -MCPAN -e shell install Udev::FFI
For more information on module installation, please visit the detailed CPAN module installation guide.