« blib/lib/Archive/Libarchive/Lib/DiskWrite.pm
↑ Summary
blib/lib/Archive/Libarchive/Lib/EntryLinkResolver.pm »
| 1 | package Archive::Libarchive::Lib::Entry; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use 5.020; | ||
| 6 | |||
| 7 | # ABSTRACT: Private class for Arcive::Libarchive | ||
| 8 | our $VERSION = '0.10'; # VERSION | ||
| 9 | |||
| 10 | # NOTE: This document is autogenerated from the template | ||
| 11 | # maint/tt/Code.pm.tt | ||
| 12 | # Please see maint/README.md for details on updating. | ||
| 13 | |||
| 14 | |||
| 15 | package | ||
| 16 | Archive::Libarchive::Entry; | ||
| 17 | |||
| 18 | use Archive::Libarchive::Lib; | ||
| 19 | |||
| 20 | my $ffi = Archive::Libarchive::Lib->ffi; | ||
| 21 | |||
| 22 | $ffi->attach( acl_add_entry => ['archive_entry', 'int', 'int', 'int', 'int', 'string'] => 'int' ); | ||
| 23 | $ffi->attach( acl_add_entry_w => ['archive_entry', 'int', 'int', 'int', 'int', 'wstring'] => 'int' ); | ||
| 24 | $ffi->attach( acl_clear => ['archive_entry'] ); | ||
| 25 | $ffi->attach( acl_count => ['archive_entry', 'int'] => 'int' ); | ||
| 26 | $ffi->attach( acl_next => ['archive_entry', 'int', 'int*', 'int*', 'int*', 'int*', 'string*'] => 'int' ); | ||
| 27 | $ffi->attach( acl_reset => ['archive_entry', 'int'] => 'int' ); | ||
| 28 | $ffi->attach( atime => ['archive_entry'] => 'time_t' ); | ||
| 29 | $ffi->attach( atime_is_set => ['archive_entry'] => 'int' ); | ||
| 30 | $ffi->attach( atime_nsec => ['archive_entry'] => 'long' ); | ||
| 31 | $ffi->attach( birthtime => ['archive_entry'] => 'time_t' ); | ||
| 32 | $ffi->attach( birthtime_is_set => ['archive_entry'] => 'int' ); | ||
| 33 | $ffi->attach( birthtime_nsec => ['archive_entry'] => 'long' ); | ||
| 34 | $ffi->attach( clear => ['archive_entry'] ); | ||
| 35 | $ffi->attach( copy_fflags_text => ['archive_entry', 'string'] => 'string' ); | ||
| 36 | $ffi->attach( copy_fflags_text_w => ['archive_entry', 'wstring'] => 'wstring' ); | ||
| 37 | $ffi->attach( copy_gname => ['archive_entry', 'string'] ); | ||
| 38 | $ffi->attach( copy_gname_w => ['archive_entry', 'wstring'] ); | ||
| 39 | $ffi->attach( copy_hardlink => ['archive_entry', 'string'] ); | ||
| 40 | $ffi->attach( copy_hardlink_w => ['archive_entry', 'wstring'] ); | ||
| 41 | $ffi->attach( copy_link => ['archive_entry', 'string'] ); | ||
| 42 | $ffi->attach( copy_link_w => ['archive_entry', 'wstring'] ); | ||
| 43 | $ffi->attach( copy_pathname => ['archive_entry', 'string'] ); | ||
| 44 | $ffi->attach( copy_pathname_w => ['archive_entry', 'wstring'] ); | ||
| 45 | $ffi->attach( copy_sourcepath => ['archive_entry', 'string'] ); | ||
| 46 | $ffi->attach( copy_sourcepath_w => ['archive_entry', 'wstring'] ); | ||
| 47 | $ffi->attach( copy_symlink => ['archive_entry', 'string'] ); | ||
| 48 | $ffi->attach( copy_symlink_w => ['archive_entry', 'wstring'] ); | ||
| 49 | $ffi->attach( copy_uname => ['archive_entry', 'string'] ); | ||
| 50 | $ffi->attach( copy_uname_w => ['archive_entry', 'wstring'] ); | ||
| 51 | $ffi->attach( ctime => ['archive_entry'] => 'time_t' ); | ||
| 52 | $ffi->attach( ctime_is_set => ['archive_entry'] => 'int' ); | ||
| 53 | $ffi->attach( ctime_nsec => ['archive_entry'] => 'long' ); | ||
| 54 | $ffi->attach( dev => ['archive_entry'] => 'dev_t' ); | ||
| 55 | $ffi->attach( dev_is_set => ['archive_entry'] => 'int' ); | ||
| 56 | $ffi->attach( devmajor => ['archive_entry'] => 'dev_t' ); | ||
| 57 | $ffi->attach( devminor => ['archive_entry'] => 'dev_t' ); | ||
| 58 | $ffi->attach( fflags => ['archive_entry', 'ulong*', 'ulong*'] ); | ||
| 59 | $ffi->attach( fflags_text => ['archive_entry'] => 'string' ); | ||
| 60 | $ffi->attach( gid => ['archive_entry'] => 'sint64' ); | ||
| 61 | $ffi->attach( gname => ['archive_entry'] => 'string' ); | ||
| 62 | $ffi->attach( gname_utf8 => ['archive_entry'] => 'string_utf8' ); | ||
| 63 | $ffi->attach( hardlink => ['archive_entry'] => 'string' ); | ||
| 64 | $ffi->attach( hardlink_utf8 => ['archive_entry'] => 'string_utf8' ); | ||
| 65 | $ffi->attach( ino => ['archive_entry'] => 'sint64' ); | ||
| 66 | $ffi->attach( ino64 => ['archive_entry'] => 'sint64' ); | ||
| 67 | $ffi->attach( ino_is_set => ['archive_entry'] => 'int' ); | ||
| 68 | $ffi->attach( is_data_encrypted => ['archive_entry'] => 'int' ); | ||
| 69 | $ffi->attach( is_encrypted => ['archive_entry'] => 'int' ); | ||
| 70 | $ffi->attach( is_metadata_encrypted => ['archive_entry'] => 'int' ); | ||
| 71 | $ffi->attach( mode => ['archive_entry'] => 'mode_t' ); | ||
| 72 | $ffi->attach( mtime => ['archive_entry'] => 'time_t' ); | ||
| 73 | $ffi->attach( mtime_is_set => ['archive_entry'] => 'int' ); | ||
| 74 | $ffi->attach( mtime_nsec => ['archive_entry'] => 'long' ); | ||
| 75 | $ffi->attach( nlink => ['archive_entry'] => 'uint' ); | ||
| 76 | $ffi->attach( pathname => ['archive_entry'] => 'string' ); | ||
| 77 | $ffi->attach( pathname_utf8 => ['archive_entry'] => 'string_utf8' ); | ||
| 78 | $ffi->attach( perm => ['archive_entry'] => 'mode_t' ); | ||
| 79 | $ffi->attach( rdev => ['archive_entry'] => 'dev_t' ); | ||
| 80 | $ffi->attach( rdevmajor => ['archive_entry'] => 'dev_t' ); | ||
| 81 | $ffi->attach( rdevminor => ['archive_entry'] => 'dev_t' ); | ||
| 82 | $ffi->attach( set_atime => ['archive_entry', 'time_t', 'long'] ); | ||
| 83 | $ffi->attach( set_birthtime => ['archive_entry', 'time_t', 'long'] ); | ||
| 84 | $ffi->attach( set_ctime => ['archive_entry', 'time_t', 'long'] ); | ||
| 85 | $ffi->attach( set_dev => ['archive_entry', 'dev_t'] ); | ||
| 86 | $ffi->attach( set_devmajor => ['archive_entry', 'dev_t'] ); | ||
| 87 | $ffi->attach( set_devminor => ['archive_entry', 'dev_t'] ); | ||
| 88 | $ffi->attach( set_fflags => ['archive_entry', 'ulong', 'ulong'] ); | ||
| 89 | $ffi->attach( set_gid => ['archive_entry', 'sint64'] ); | ||
| 90 | $ffi->attach( set_gname => ['archive_entry', 'string'] ); | ||
| 91 | $ffi->attach( set_gname_utf8 => ['archive_entry', 'string'] ); | ||
| 92 | $ffi->attach( set_hardlink => ['archive_entry', 'string'] ); | ||
| 93 | $ffi->attach( set_hardlink_utf8 => ['archive_entry', 'string'] ); | ||
| 94 | $ffi->attach( set_ino => ['archive_entry', 'sint64'] ); | ||
| 95 | $ffi->attach( set_ino64 => ['archive_entry', 'sint64'] ); | ||
| 96 | $ffi->attach( set_is_data_encrypted => ['archive_entry', 'char'] ); | ||
| 97 | $ffi->attach( set_is_metadata_encrypted => ['archive_entry', 'char'] ); | ||
| 98 | $ffi->attach( set_link => ['archive_entry', 'string'] ); | ||
| 99 | $ffi->attach( set_link_utf8 => ['archive_entry', 'string'] ); | ||
| 100 | $ffi->attach( set_mode => ['archive_entry', 'mode_t'] ); | ||
| 101 | $ffi->attach( set_mtime => ['archive_entry', 'time_t', 'long'] ); | ||
| 102 | $ffi->attach( set_nlink => ['archive_entry', 'uint'] ); | ||
| 103 | $ffi->attach( set_pathname => ['archive_entry', 'string'] ); | ||
| 104 | $ffi->attach( set_pathname_utf8 => ['archive_entry', 'string'] ); | ||
| 105 | $ffi->attach( set_perm => ['archive_entry', 'mode_t'] ); | ||
| 106 | $ffi->attach( set_rdev => ['archive_entry', 'dev_t'] ); | ||
| 107 | $ffi->attach( set_rdevmajor => ['archive_entry', 'dev_t'] ); | ||
| 108 | $ffi->attach( set_rdevminor => ['archive_entry', 'dev_t'] ); | ||
| 109 | $ffi->attach( set_size => ['archive_entry', 'sint64'] ); | ||
| 110 | $ffi->attach( set_symlink => ['archive_entry', 'string'] ); | ||
| 111 | $ffi->attach( set_symlink_utf8 => ['archive_entry', 'string'] ); | ||
| 112 | $ffi->attach( set_uid => ['archive_entry', 'sint64'] ); | ||
| 113 | $ffi->attach( set_uname => ['archive_entry', 'string'] ); | ||
| 114 | $ffi->attach( set_uname_utf8 => ['archive_entry', 'string'] ); | ||
| 115 | $ffi->attach( size => ['archive_entry'] => 'sint64' ); | ||
| 116 | $ffi->attach( size_is_set => ['archive_entry'] => 'int' ); | ||
| 117 | $ffi->attach( sourcepath => ['archive_entry'] => 'string' ); | ||
| 118 | $ffi->attach( sourcepath_w => ['archive_entry'] => 'wstring' ); | ||
| 119 | $ffi->attach( sparse_add_entry => ['archive_entry', 'sint64', 'sint64'] ); | ||
| 120 | $ffi->attach( sparse_clear => ['archive_entry'] ); | ||
| 121 | $ffi->attach( sparse_count => ['archive_entry'] => 'int' ); | ||
| 122 | $ffi->attach( sparse_next => ['archive_entry', 'sint64*', 'sint64*'] => 'int' ); | ||
| 123 | $ffi->attach( sparse_reset => ['archive_entry'] => 'int' ); | ||
| 124 | $ffi->attach( strmode => ['archive_entry'] => 'string' ); | ||
| 125 | $ffi->attach( symlink => ['archive_entry'] => 'string' ); | ||
| 126 | $ffi->attach( symlink_utf8 => ['archive_entry'] => 'string_utf8' ); | ||
| 127 | $ffi->attach( uid => ['archive_entry'] => 'sint64' ); | ||
| 128 | $ffi->attach( uname => ['archive_entry'] => 'string' ); | ||
| 129 | $ffi->attach( uname_utf8 => ['archive_entry'] => 'string_utf8' ); | ||
| 130 | $ffi->attach( unset_atime => ['archive_entry'] ); | ||
| 131 | $ffi->attach( unset_birthtime => ['archive_entry'] ); | ||
| 132 | $ffi->attach( unset_ctime => ['archive_entry'] ); | ||
| 133 | $ffi->attach( unset_mtime => ['archive_entry'] ); | ||
| 134 | $ffi->attach( unset_size => ['archive_entry'] ); | ||
| 135 | $ffi->attach( update_gname_utf8 => ['archive_entry', 'string'] => 'int' ); | ||
| 136 | $ffi->attach( update_hardlink_utf8 => ['archive_entry', 'string'] => 'int' ); | ||
| 137 | $ffi->attach( update_link_utf8 => ['archive_entry', 'string'] => 'int' ); | ||
| 138 | $ffi->attach( update_pathname_utf8 => ['archive_entry', 'string'] => 'int' ); | ||
| 139 | $ffi->attach( update_symlink_utf8 => ['archive_entry', 'string'] => 'int' ); | ||
| 140 | $ffi->attach( update_uname_utf8 => ['archive_entry', 'string'] => 'int' ); | ||
| 141 | $ffi->attach( xattr_clear => ['archive_entry'] ); | ||
| 142 | $ffi->attach( xattr_count => ['archive_entry'] => 'int' ); | ||
| 143 | $ffi->attach( xattr_reset => ['archive_entry'] => 'int' ); | ||
| 144 | |||
| 145 | $ffi->ignore_not_found(1); | ||
| 146 | |||
| 147 | $ffi->attach( acl_from_text => ['archive_entry', 'string', 'int'] => 'int' ); | ||
| 148 | $ffi->attach( acl_from_text_w => ['archive_entry', 'wstring', 'int'] => 'int' ); | ||
| 149 | $ffi->attach( acl_to_text => ['archive_entry', 'ssize_t*', 'int'] => 'string' ); | ||
| 150 | $ffi->attach( acl_to_text_w => ['archive_entry', 'ssize_t*', 'int'] => 'wstring' ); | ||
| 151 | $ffi->attach( acl_types => ['archive_entry'] => 'int' ); | ||
| 152 | $ffi->attach( copy_fflags_text_len => ['archive_entry', 'string', 'size_t'] => 'string' ); | ||
| 153 | $ffi->attach( filetype_is_set => ['archive_entry'] => 'int' ); | ||
| 154 | $ffi->attach( gid_is_set => ['archive_entry'] => 'int' ); | ||
| 155 | $ffi->attach( hardlink_is_set => ['archive_entry'] => 'int' ); | ||
| 156 | $ffi->attach( perm_is_set => ['archive_entry'] => 'int' ); | ||
| 157 | $ffi->attach( rdev_is_set => ['archive_entry'] => 'int' ); | ||
| 158 | #$ffi->attach( set_digest => ['archive_entry', 'int', undef] => 'int' ); | ||
| 159 | $ffi->attach( set_link_to_hardlink => ['archive_entry'] ); | ||
| 160 | $ffi->attach( set_link_to_symlink => ['archive_entry'] ); | ||
| 161 | $ffi->attach( set_symlink_type => ['archive_entry', 'int'] ); | ||
| 162 | $ffi->attach( symlink_type => ['archive_entry'] => 'int' ); | ||
| 163 | $ffi->attach( uid_is_set => ['archive_entry'] => 'int' ); | ||
| 164 | |||
| 165 | $ffi->ignore_not_found(0); | ||
| 166 | |||
| 167 | 1; | ||
| 168 | |||
| 169 | __END__ |