[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1030613: ITP: libffi-platypus-type-enum-perl -- custom platypus type for dealing with C enumerated types

Package: wnpp
Owner: Mason James <mtj@kohaaloha.com>
Severity: wishlist
X-Debbugs-CC: debian-devel@lists.debian.org, debian-perl@lists.debian.org

* Package name    : libffi-platypus-type-enum-perl
  Version         : 0.06
  Upstream Author : Graham Ollis <plicease@cpan.org>
* URL             : https://metacpan.org/release/FFI-Platypus-Type-Enum
* License         : Artistic or GPL-1+
  Programming Lang: Perl
  Description     : custom platypus type for dealing with C enumerated types

FFI::Platypus::Type::Enum type plugin is a helper for making enumerated types.
It makes the most sense to use this when you have an enumerated type with a
small number of possible values. For a large set of enumerated values or
constants, see: FFI::Platypus::Constant.

This type plugin has two modes:


 In string mode, string representations of the enum values are converted into
 the integer enum values when passed into C, and the enums are converted back
 into strings when coming from C back into Perl. You can also pass in the
 integer values.


 In constant mode, constants are defined in the specified package, and with
 the optional prefix. The string representation or integer constants can be
 passed into C, but the integer constants are returned from C back into Perl.

 In both modes, if you attempt to pass in a value that isn't one of the
 possible enum values, an exception will be thrown.

The package will be maintained under the umbrella of the Debian Perl Group.

Generated with the help of dpt-gen-itp(1) from pkg-perl-tools.

Reply to: