Archive-Libarchive

 view release on metacpan or  search on metacpan

lib/Archive/Libarchive/API.pm  view on Meta::CPAN

=head1 Archive::Libarchive::DiskWrite

=over 4

=item Main documentation and examples: L<Archive::Libarchive::DiskWrite>

=item Parent class: L<Archive::Libarchive::ArchiveWrite>

=back

=head2 disk_gid

 # archive_write_disk_gid
 my $sint64_1 = $dw->disk_gid($string, $sint64_2);

=head2 disk_set_options

 # archive_write_disk_set_options
 my $int1 = $dw->disk_set_options($int2);

=head2 disk_set_skip_file

 # archive_write_disk_set_skip_file
 my $int = $dw->disk_set_skip_file($sint64_1, $sint64_2);

lib/Archive/Libarchive/API.pm  view on Meta::CPAN

This returns the type of file for the entry.  This will be a dualvar where the string
is one of C<mt>, C<reg>, C<lnx>, C<sock>, C<chr>, C<blk>, C<dir> or C<ifo>, and
integer values will match the corresponding C<AE_IF> prefixed constant.  See
L<Archive::Libarchive::API/CONSTANTS> for the full list.

=head2 filetype_is_set

 # archive_entry_filetype_is_set (optional)
 my $int = $e->filetype_is_set;

=head2 gid

 # archive_entry_gid
 my $sint64 = $e->gid;

=head2 gid_is_set

 # archive_entry_gid_is_set (optional)
 my $int = $e->gid_is_set;

=head2 gname

 # archive_entry_gname
 my $string = $e->gname;

=head2 gname_utf8

 # archive_entry_gname_utf8
 my $string_utf8 = $e->gname_utf8;

lib/Archive/Libarchive/API.pm  view on Meta::CPAN

=head2 set_filetype

 # archive_entry_set_filetype
 $e->set_filetype($code);

This sets the type of the file for the entry.  This will accept either a string value
which is one of C<mt>, C<reg>, C<lnx>, C<sock>, C<chr>, C<blk>, C<dir> or C<ifo>,
or an integer constant value with the C<AE_IF> prefix.  See
L<Archive::Libarchive::API/CONSTANTS> for the full list.

=head2 set_gid

 # archive_entry_set_gid
 $e->set_gid($sint64);

=head2 set_gname

 # archive_entry_set_gname
 $e->set_gname($string);

=head2 set_gname_utf8

 # archive_entry_set_gname_utf8
 $e->set_gname_utf8($string);

lib/Archive/Libarchive/API.pm  view on Meta::CPAN

=head2 include_file_time

 # archive_match_include_file_time
 my $int1 = $m->include_file_time($int2, $string);

=head2 include_file_time_w

 # archive_match_include_file_time_w
 my $int1 = $m->include_file_time_w($int2, $wstring);

=head2 include_gid

 # archive_match_include_gid
 my $int = $m->include_gid($sint64);

=head2 include_gname

 # archive_match_include_gname
 my $int = $m->include_gname($string);

=head2 include_gname_w

 # archive_match_include_gname_w
 my $int = $m->include_gname_w($wstring);

lib/Archive/Libarchive/Lib/DiskWrite.pm  view on Meta::CPAN

# Please see maint/README.md for details on updating.


package
  Archive::Libarchive::DiskWrite;

use Archive::Libarchive::Lib;

my $ffi = Archive::Libarchive::Lib->ffi;

$ffi->attach( disk_gid => ['archive_write_disk', 'string', 'sint64'] => 'sint64' );
#$ffi->attach( disk_set_group_lookup => ['archive_write_disk', 'opaque', undef, undef] => 'int' );
$ffi->attach( disk_set_options => ['archive_write_disk', 'int'] => 'int' );
$ffi->attach( disk_set_skip_file => ['archive_write_disk', 'sint64', 'sint64'] => 'int' );
$ffi->attach( disk_set_standard_lookup => ['archive_write_disk'] => 'int' );
#$ffi->attach( disk_set_user_lookup => ['archive_write_disk', 'opaque', undef, undef] => 'int' );
$ffi->attach( disk_uid => ['archive_write_disk', 'string', 'sint64'] => 'sint64' );

1;

__END__

lib/Archive/Libarchive/Lib/Entry.pm  view on Meta::CPAN

$ffi->attach( copy_uname_w => ['archive_entry', 'wstring'] );
$ffi->attach( ctime => ['archive_entry'] => 'time_t' );
$ffi->attach( ctime_is_set => ['archive_entry'] => 'int' );
$ffi->attach( ctime_nsec => ['archive_entry'] => 'long' );
$ffi->attach( dev => ['archive_entry'] => 'dev_t' );
$ffi->attach( dev_is_set => ['archive_entry'] => 'int' );
$ffi->attach( devmajor => ['archive_entry'] => 'dev_t' );
$ffi->attach( devminor => ['archive_entry'] => 'dev_t' );
$ffi->attach( fflags => ['archive_entry', 'ulong*', 'ulong*'] );
$ffi->attach( fflags_text => ['archive_entry'] => 'string' );
$ffi->attach( gid => ['archive_entry'] => 'sint64' );
$ffi->attach( gname => ['archive_entry'] => 'string' );
$ffi->attach( gname_utf8 => ['archive_entry'] => 'string_utf8' );
$ffi->attach( hardlink => ['archive_entry'] => 'string' );
$ffi->attach( hardlink_utf8 => ['archive_entry'] => 'string_utf8' );
$ffi->attach( ino => ['archive_entry'] => 'sint64' );
$ffi->attach( ino64 => ['archive_entry'] => 'sint64' );
$ffi->attach( ino_is_set => ['archive_entry'] => 'int' );
$ffi->attach( is_data_encrypted => ['archive_entry'] => 'int' );
$ffi->attach( is_encrypted => ['archive_entry'] => 'int' );
$ffi->attach( is_metadata_encrypted => ['archive_entry'] => 'int' );

lib/Archive/Libarchive/Lib/Entry.pm  view on Meta::CPAN

$ffi->attach( rdev => ['archive_entry'] => 'dev_t' );
$ffi->attach( rdevmajor => ['archive_entry'] => 'dev_t' );
$ffi->attach( rdevminor => ['archive_entry'] => 'dev_t' );
$ffi->attach( set_atime => ['archive_entry', 'time_t', 'long'] );
$ffi->attach( set_birthtime => ['archive_entry', 'time_t', 'long'] );
$ffi->attach( set_ctime => ['archive_entry', 'time_t', 'long'] );
$ffi->attach( set_dev => ['archive_entry', 'dev_t'] );
$ffi->attach( set_devmajor => ['archive_entry', 'dev_t'] );
$ffi->attach( set_devminor => ['archive_entry', 'dev_t'] );
$ffi->attach( set_fflags => ['archive_entry', 'ulong', 'ulong'] );
$ffi->attach( set_gid => ['archive_entry', 'sint64'] );
$ffi->attach( set_gname => ['archive_entry', 'string'] );
$ffi->attach( set_gname_utf8 => ['archive_entry', 'string'] );
$ffi->attach( set_hardlink => ['archive_entry', 'string'] );
$ffi->attach( set_hardlink_utf8 => ['archive_entry', 'string'] );
$ffi->attach( set_ino => ['archive_entry', 'sint64'] );
$ffi->attach( set_ino64 => ['archive_entry', 'sint64'] );
$ffi->attach( set_is_data_encrypted => ['archive_entry', 'char'] );
$ffi->attach( set_is_metadata_encrypted => ['archive_entry', 'char'] );
$ffi->attach( set_link => ['archive_entry', 'string'] );
$ffi->attach( set_link_utf8 => ['archive_entry', 'string'] );

lib/Archive/Libarchive/Lib/Entry.pm  view on Meta::CPAN

$ffi->attach( xattr_reset => ['archive_entry'] => 'int' );

$ffi->ignore_not_found(1);

$ffi->attach( acl_from_text => ['archive_entry', 'string', 'int'] => 'int' );
$ffi->attach( acl_from_text_w => ['archive_entry', 'wstring', 'int'] => 'int' );
$ffi->attach( acl_to_text => ['archive_entry', 'ssize_t*', 'int'] => 'string' );
$ffi->attach( acl_to_text_w => ['archive_entry', 'ssize_t*', 'int'] => 'wstring' );
$ffi->attach( acl_types => ['archive_entry'] => 'int' );
$ffi->attach( filetype_is_set => ['archive_entry'] => 'int' );
$ffi->attach( gid_is_set => ['archive_entry'] => 'int' );
$ffi->attach( perm_is_set => ['archive_entry'] => 'int' );
$ffi->attach( set_symlink_type => ['archive_entry', 'int'] );
$ffi->attach( symlink_type => ['archive_entry'] => 'int' );
$ffi->attach( uid_is_set => ['archive_entry'] => 'int' );

$ffi->ignore_not_found(0);

1;

__END__

lib/Archive/Libarchive/Lib/Match.pm  view on Meta::CPAN

$ffi->attach( exclude_entry => ['archive_match', 'int', 'archive_entry'] => 'int' );
$ffi->attach( exclude_pattern => ['archive_match', 'string'] => 'int' );
$ffi->attach( exclude_pattern_from_file => ['archive_match', 'string', 'int'] => 'int' );
$ffi->attach( exclude_pattern_from_file_w => ['archive_match', 'wstring', 'int'] => 'int' );
$ffi->attach( exclude_pattern_w => ['archive_match', 'wstring'] => 'int' );
$ffi->attach( excluded => ['archive_match', 'archive_entry'] => 'int' );
$ffi->attach( include_date => ['archive_match', 'int', 'string'] => 'int' );
$ffi->attach( include_date_w => ['archive_match', 'int', 'wstring'] => 'int' );
$ffi->attach( include_file_time => ['archive_match', 'int', 'string'] => 'int' );
$ffi->attach( include_file_time_w => ['archive_match', 'int', 'wstring'] => 'int' );
$ffi->attach( include_gid => ['archive_match', 'sint64'] => 'int' );
$ffi->attach( include_gname => ['archive_match', 'string'] => 'int' );
$ffi->attach( include_gname_w => ['archive_match', 'wstring'] => 'int' );
$ffi->attach( include_pattern => ['archive_match', 'string'] => 'int' );
$ffi->attach( include_pattern_from_file => ['archive_match', 'string', 'int'] => 'int' );
$ffi->attach( include_pattern_from_file_w => ['archive_match', 'wstring', 'int'] => 'int' );
$ffi->attach( include_pattern_w => ['archive_match', 'wstring'] => 'int' );
$ffi->attach( include_time => ['archive_match', 'int', 'time_t', 'long'] => 'int' );
$ffi->attach( include_uid => ['archive_match', 'sint64'] => 'int' );
$ffi->attach( include_uname => ['archive_match', 'string'] => 'int' );
$ffi->attach( include_uname_w => ['archive_match', 'wstring'] => 'int' );



( run in 0.617 second using v1.01-cache-2.11-cpan-5735350b133 )