You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

413 lines
15 KiB

  1. # This file was automatically generated by SWIG (http://www.swig.org).
  2. # Version 4.0.2
  3. #
  4. # Do not make changes to this file unless you know what you are doing--modify
  5. # the SWIG interface file instead.
  6. from sys import version_info as _swig_python_version_info
  7. if _swig_python_version_info < (2, 7, 0):
  8. raise RuntimeError("Python 2.7 or later required")
  9. # Import the low-level C/C++ module
  10. if __package__ or "." in __name__:
  11. from . import __libarchive
  12. else:
  13. import __libarchive
  14. try:
  15. import builtins as __builtin__
  16. except ImportError:
  17. import __builtin__
  18. def _swig_repr(self):
  19. try:
  20. strthis = "proxy of " + self.this.__repr__()
  21. except __builtin__.Exception:
  22. strthis = ""
  23. return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
  24. def _swig_setattr_nondynamic_instance_variable(set):
  25. def set_instance_attr(self, name, value):
  26. if name == "thisown":
  27. self.this.own(value)
  28. elif name == "this":
  29. set(self, name, value)
  30. elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
  31. set(self, name, value)
  32. else:
  33. raise AttributeError("You cannot add instance attributes to %s" % self)
  34. return set_instance_attr
  35. def _swig_setattr_nondynamic_class_variable(set):
  36. def set_class_attr(cls, name, value):
  37. if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
  38. set(cls, name, value)
  39. else:
  40. raise AttributeError("You cannot add class attributes to %s" % cls)
  41. return set_class_attr
  42. def _swig_add_metaclass(metaclass):
  43. """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
  44. def wrapper(cls):
  45. return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
  46. return wrapper
  47. class _SwigNonDynamicMeta(type):
  48. """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
  49. __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
  50. def archive_read_new():
  51. return __libarchive.archive_read_new()
  52. def archive_read_free(arg1):
  53. return __libarchive.archive_read_free(arg1)
  54. def archive_read_open_filename(arg1, _filename, _block_size):
  55. return __libarchive.archive_read_open_filename(arg1, _filename, _block_size)
  56. def archive_read_open_memory(arg1, buff, size):
  57. return __libarchive.archive_read_open_memory(arg1, buff, size)
  58. def archive_read_open_memory2(a, buff, size, read_size):
  59. return __libarchive.archive_read_open_memory2(a, buff, size, read_size)
  60. def archive_read_open_fd(arg1, _fd, _block_size):
  61. return __libarchive.archive_read_open_fd(arg1, _fd, _block_size)
  62. def archive_read_close(arg1):
  63. return __libarchive.archive_read_close(arg1)
  64. def archive_format(arg1):
  65. return __libarchive.archive_format(arg1)
  66. def archive_read_next_header2(arg1, arg2):
  67. return __libarchive.archive_read_next_header2(arg1, arg2)
  68. def archive_entry_stat(arg1):
  69. return __libarchive.archive_entry_stat(arg1)
  70. def archive_read_header_position(arg1):
  71. return __libarchive.archive_read_header_position(arg1)
  72. def archive_read_data_skip(arg1):
  73. return __libarchive.archive_read_data_skip(arg1)
  74. def archive_read_data_into_fd(arg1, fd):
  75. return __libarchive.archive_read_data_into_fd(arg1, fd)
  76. def archive_read_support_filter_all(arg1):
  77. return __libarchive.archive_read_support_filter_all(arg1)
  78. def archive_read_support_filter_bzip2(arg1):
  79. return __libarchive.archive_read_support_filter_bzip2(arg1)
  80. def archive_read_support_filter_compress(arg1):
  81. return __libarchive.archive_read_support_filter_compress(arg1)
  82. def archive_read_support_filter_gzip(arg1):
  83. return __libarchive.archive_read_support_filter_gzip(arg1)
  84. def archive_read_support_filter_lzip(arg1):
  85. return __libarchive.archive_read_support_filter_lzip(arg1)
  86. def archive_read_support_filter_lzma(arg1):
  87. return __libarchive.archive_read_support_filter_lzma(arg1)
  88. def archive_read_support_filter_none(arg1):
  89. return __libarchive.archive_read_support_filter_none(arg1)
  90. def archive_read_support_filter_rpm(arg1):
  91. return __libarchive.archive_read_support_filter_rpm(arg1)
  92. def archive_read_support_filter_uu(arg1):
  93. return __libarchive.archive_read_support_filter_uu(arg1)
  94. def archive_read_support_filter_xz(arg1):
  95. return __libarchive.archive_read_support_filter_xz(arg1)
  96. def archive_read_support_format_all(arg1):
  97. return __libarchive.archive_read_support_format_all(arg1)
  98. def archive_read_support_format_7zip(arg1):
  99. return __libarchive.archive_read_support_format_7zip(arg1)
  100. def archive_read_support_format_ar(arg1):
  101. return __libarchive.archive_read_support_format_ar(arg1)
  102. def archive_read_support_format_cab(arg1):
  103. return __libarchive.archive_read_support_format_cab(arg1)
  104. def archive_read_support_format_cpio(arg1):
  105. return __libarchive.archive_read_support_format_cpio(arg1)
  106. def archive_read_support_format_empty(arg1):
  107. return __libarchive.archive_read_support_format_empty(arg1)
  108. def archive_read_support_format_gnutar(arg1):
  109. return __libarchive.archive_read_support_format_gnutar(arg1)
  110. def archive_read_support_format_iso9660(arg1):
  111. return __libarchive.archive_read_support_format_iso9660(arg1)
  112. def archive_read_support_format_lha(arg1):
  113. return __libarchive.archive_read_support_format_lha(arg1)
  114. def archive_read_support_format_rar(arg1):
  115. return __libarchive.archive_read_support_format_rar(arg1)
  116. def archive_read_support_format_raw(arg1):
  117. return __libarchive.archive_read_support_format_raw(arg1)
  118. def archive_read_support_format_tar(arg1):
  119. return __libarchive.archive_read_support_format_tar(arg1)
  120. def archive_read_support_format_xar(arg1):
  121. return __libarchive.archive_read_support_format_xar(arg1)
  122. def archive_read_support_format_zip(arg1):
  123. return __libarchive.archive_read_support_format_zip(arg1)
  124. def archive_write_new():
  125. return __libarchive.archive_write_new()
  126. def archive_write_free(arg1):
  127. return __libarchive.archive_write_free(arg1)
  128. def archive_write_open(arg1, arg2, arg3, arg4, arg5):
  129. return __libarchive.archive_write_open(arg1, arg2, arg3, arg4, arg5)
  130. def archive_write_open_fd(arg1, _fd):
  131. return __libarchive.archive_write_open_fd(arg1, _fd)
  132. def archive_write_open_filename(arg1, _file):
  133. return __libarchive.archive_write_open_filename(arg1, _file)
  134. def archive_write_open_filename_w(arg1, _file):
  135. return __libarchive.archive_write_open_filename_w(arg1, _file)
  136. def archive_write_open_memory(arg1, _buffer, _buffSize, _used):
  137. return __libarchive.archive_write_open_memory(arg1, _buffer, _buffSize, _used)
  138. def archive_write_close(arg1):
  139. return __libarchive.archive_write_close(arg1)
  140. def archive_write_header(arg1, arg2):
  141. return __libarchive.archive_write_header(arg1, arg2)
  142. def archive_write_finish_entry(arg1):
  143. return __libarchive.archive_write_finish_entry(arg1)
  144. def archive_write_add_filter_bzip2(arg1):
  145. return __libarchive.archive_write_add_filter_bzip2(arg1)
  146. def archive_write_add_filter_compress(arg1):
  147. return __libarchive.archive_write_add_filter_compress(arg1)
  148. def archive_write_add_filter_gzip(arg1):
  149. return __libarchive.archive_write_add_filter_gzip(arg1)
  150. def archive_write_add_filter_lzip(arg1):
  151. return __libarchive.archive_write_add_filter_lzip(arg1)
  152. def archive_write_add_filter_lzma(arg1):
  153. return __libarchive.archive_write_add_filter_lzma(arg1)
  154. def archive_write_add_filter_none(arg1):
  155. return __libarchive.archive_write_add_filter_none(arg1)
  156. def archive_write_add_filter_xz(arg1):
  157. return __libarchive.archive_write_add_filter_xz(arg1)
  158. def archive_write_set_format(arg1, format_code):
  159. return __libarchive.archive_write_set_format(arg1, format_code)
  160. def archive_write_set_format_by_name(arg1, name):
  161. return __libarchive.archive_write_set_format_by_name(arg1, name)
  162. def archive_write_set_format_ar_bsd(arg1):
  163. return __libarchive.archive_write_set_format_ar_bsd(arg1)
  164. def archive_write_set_format_ar_svr4(arg1):
  165. return __libarchive.archive_write_set_format_ar_svr4(arg1)
  166. def archive_write_set_format_cpio(arg1):
  167. return __libarchive.archive_write_set_format_cpio(arg1)
  168. def archive_write_set_format_cpio_newc(arg1):
  169. return __libarchive.archive_write_set_format_cpio_newc(arg1)
  170. def archive_write_set_format_gnutar(arg1):
  171. return __libarchive.archive_write_set_format_gnutar(arg1)
  172. def archive_write_set_format_iso9660(arg1):
  173. return __libarchive.archive_write_set_format_iso9660(arg1)
  174. def archive_write_set_format_pax(arg1):
  175. return __libarchive.archive_write_set_format_pax(arg1)
  176. def archive_write_set_format_pax_restricted(arg1):
  177. return __libarchive.archive_write_set_format_pax_restricted(arg1)
  178. def archive_write_set_format_shar(arg1):
  179. return __libarchive.archive_write_set_format_shar(arg1)
  180. def archive_write_set_format_shar_dump(arg1):
  181. return __libarchive.archive_write_set_format_shar_dump(arg1)
  182. def archive_write_set_format_ustar(arg1):
  183. return __libarchive.archive_write_set_format_ustar(arg1)
  184. def archive_write_set_format_xar(arg1):
  185. return __libarchive.archive_write_set_format_xar(arg1)
  186. def archive_write_set_format_zip(arg1):
  187. return __libarchive.archive_write_set_format_zip(arg1)
  188. def archive_entry_new():
  189. return __libarchive.archive_entry_new()
  190. def archive_entry_free(arg1):
  191. return __libarchive.archive_entry_free(arg1)
  192. def archive_entry_pathname(arg1):
  193. return __libarchive.archive_entry_pathname(arg1)
  194. def archive_entry_pathname_w(arg1):
  195. return __libarchive.archive_entry_pathname_w(arg1)
  196. def archive_entry_size(arg1):
  197. return __libarchive.archive_entry_size(arg1)
  198. def archive_entry_mtime(arg1):
  199. return __libarchive.archive_entry_mtime(arg1)
  200. def archive_entry_filetype(arg1):
  201. return __libarchive.archive_entry_filetype(arg1)
  202. def archive_entry_perm(arg1):
  203. return __libarchive.archive_entry_perm(arg1)
  204. def archive_entry_symlink(arg1):
  205. return __libarchive.archive_entry_symlink(arg1)
  206. def archive_entry_set_link(arg1, arg2):
  207. return __libarchive.archive_entry_set_link(arg1, arg2)
  208. def archive_entry_symlink_w(arg1):
  209. return __libarchive.archive_entry_symlink_w(arg1)
  210. def archive_read_disk_set_symlink_logical(arg1):
  211. return __libarchive.archive_read_disk_set_symlink_logical(arg1)
  212. def archive_read_disk_set_symlink_physical(arg1):
  213. return __libarchive.archive_read_disk_set_symlink_physical(arg1)
  214. def archive_read_disk_set_symlink_hybrid(arg1):
  215. return __libarchive.archive_read_disk_set_symlink_hybrid(arg1)
  216. def archive_entry_set_symlink(arg1, arg2):
  217. return __libarchive.archive_entry_set_symlink(arg1, arg2)
  218. def archive_entry_copy_symlink(arg1, arg2):
  219. return __libarchive.archive_entry_copy_symlink(arg1, arg2)
  220. def archive_entry_copy_symlink_w(arg1, arg2):
  221. return __libarchive.archive_entry_copy_symlink_w(arg1, arg2)
  222. def archive_entry_set_pathname(arg1, arg2):
  223. return __libarchive.archive_entry_set_pathname(arg1, arg2)
  224. def archive_entry_set_size(arg1, arg2):
  225. return __libarchive.archive_entry_set_size(arg1, arg2)
  226. def archive_entry_set_mtime(arg1, arg2, arg3):
  227. return __libarchive.archive_entry_set_mtime(arg1, arg2, arg3)
  228. def archive_entry_set_filetype(arg1, arg2):
  229. return __libarchive.archive_entry_set_filetype(arg1, arg2)
  230. def archive_entry_set_perm(arg1, arg2):
  231. return __libarchive.archive_entry_set_perm(arg1, arg2)
  232. def archive_errno(arg1):
  233. return __libarchive.archive_errno(arg1)
  234. def archive_error_string(arg1):
  235. return __libarchive.archive_error_string(arg1)
  236. ARCHIVE_VERSION_NUMBER = __libarchive.ARCHIVE_VERSION_NUMBER
  237. ARCHIVE_VERSION_STRING = __libarchive.ARCHIVE_VERSION_STRING
  238. ARCHIVE_EOF = __libarchive.ARCHIVE_EOF
  239. ARCHIVE_OK = __libarchive.ARCHIVE_OK
  240. ARCHIVE_RETRY = __libarchive.ARCHIVE_RETRY
  241. ARCHIVE_WARN = __libarchive.ARCHIVE_WARN
  242. ARCHIVE_FAILED = __libarchive.ARCHIVE_FAILED
  243. ARCHIVE_FATAL = __libarchive.ARCHIVE_FATAL
  244. ARCHIVE_FILTER_NONE = __libarchive.ARCHIVE_FILTER_NONE
  245. ARCHIVE_FILTER_GZIP = __libarchive.ARCHIVE_FILTER_GZIP
  246. ARCHIVE_FILTER_BZIP2 = __libarchive.ARCHIVE_FILTER_BZIP2
  247. ARCHIVE_FILTER_COMPRESS = __libarchive.ARCHIVE_FILTER_COMPRESS
  248. ARCHIVE_FILTER_PROGRAM = __libarchive.ARCHIVE_FILTER_PROGRAM
  249. ARCHIVE_FILTER_LZMA = __libarchive.ARCHIVE_FILTER_LZMA
  250. ARCHIVE_FILTER_XZ = __libarchive.ARCHIVE_FILTER_XZ
  251. ARCHIVE_FILTER_UU = __libarchive.ARCHIVE_FILTER_UU
  252. ARCHIVE_FILTER_RPM = __libarchive.ARCHIVE_FILTER_RPM
  253. ARCHIVE_FILTER_LZIP = __libarchive.ARCHIVE_FILTER_LZIP
  254. ARCHIVE_FORMAT_BASE_MASK = __libarchive.ARCHIVE_FORMAT_BASE_MASK
  255. ARCHIVE_FORMAT_CPIO = __libarchive.ARCHIVE_FORMAT_CPIO
  256. ARCHIVE_FORMAT_CPIO_POSIX = __libarchive.ARCHIVE_FORMAT_CPIO_POSIX
  257. ARCHIVE_FORMAT_CPIO_BIN_LE = __libarchive.ARCHIVE_FORMAT_CPIO_BIN_LE
  258. ARCHIVE_FORMAT_CPIO_BIN_BE = __libarchive.ARCHIVE_FORMAT_CPIO_BIN_BE
  259. ARCHIVE_FORMAT_CPIO_SVR4_NOCRC = __libarchive.ARCHIVE_FORMAT_CPIO_SVR4_NOCRC
  260. ARCHIVE_FORMAT_CPIO_SVR4_CRC = __libarchive.ARCHIVE_FORMAT_CPIO_SVR4_CRC
  261. ARCHIVE_FORMAT_CPIO_AFIO_LARGE = __libarchive.ARCHIVE_FORMAT_CPIO_AFIO_LARGE
  262. ARCHIVE_FORMAT_SHAR = __libarchive.ARCHIVE_FORMAT_SHAR
  263. ARCHIVE_FORMAT_SHAR_BASE = __libarchive.ARCHIVE_FORMAT_SHAR_BASE
  264. ARCHIVE_FORMAT_SHAR_DUMP = __libarchive.ARCHIVE_FORMAT_SHAR_DUMP
  265. ARCHIVE_FORMAT_TAR = __libarchive.ARCHIVE_FORMAT_TAR
  266. ARCHIVE_FORMAT_TAR_USTAR = __libarchive.ARCHIVE_FORMAT_TAR_USTAR
  267. ARCHIVE_FORMAT_TAR_PAX_INTERCHANGE = __libarchive.ARCHIVE_FORMAT_TAR_PAX_INTERCHANGE
  268. ARCHIVE_FORMAT_TAR_PAX_RESTRICTED = __libarchive.ARCHIVE_FORMAT_TAR_PAX_RESTRICTED
  269. ARCHIVE_FORMAT_TAR_GNUTAR = __libarchive.ARCHIVE_FORMAT_TAR_GNUTAR
  270. ARCHIVE_FORMAT_ISO9660 = __libarchive.ARCHIVE_FORMAT_ISO9660
  271. ARCHIVE_FORMAT_ISO9660_ROCKRIDGE = __libarchive.ARCHIVE_FORMAT_ISO9660_ROCKRIDGE
  272. ARCHIVE_FORMAT_ZIP = __libarchive.ARCHIVE_FORMAT_ZIP
  273. ARCHIVE_FORMAT_EMPTY = __libarchive.ARCHIVE_FORMAT_EMPTY
  274. ARCHIVE_FORMAT_AR = __libarchive.ARCHIVE_FORMAT_AR
  275. ARCHIVE_FORMAT_AR_GNU = __libarchive.ARCHIVE_FORMAT_AR_GNU
  276. ARCHIVE_FORMAT_AR_BSD = __libarchive.ARCHIVE_FORMAT_AR_BSD
  277. ARCHIVE_FORMAT_MTREE = __libarchive.ARCHIVE_FORMAT_MTREE
  278. ARCHIVE_FORMAT_RAW = __libarchive.ARCHIVE_FORMAT_RAW
  279. ARCHIVE_FORMAT_XAR = __libarchive.ARCHIVE_FORMAT_XAR
  280. ARCHIVE_FORMAT_LHA = __libarchive.ARCHIVE_FORMAT_LHA
  281. ARCHIVE_FORMAT_CAB = __libarchive.ARCHIVE_FORMAT_CAB
  282. ARCHIVE_FORMAT_RAR = __libarchive.ARCHIVE_FORMAT_RAR
  283. ARCHIVE_FORMAT_7ZIP = __libarchive.ARCHIVE_FORMAT_7ZIP
  284. ARCHIVE_EXTRACT_OWNER = __libarchive.ARCHIVE_EXTRACT_OWNER
  285. ARCHIVE_EXTRACT_PERM = __libarchive.ARCHIVE_EXTRACT_PERM
  286. ARCHIVE_EXTRACT_TIME = __libarchive.ARCHIVE_EXTRACT_TIME
  287. ARCHIVE_EXTRACT_NO_OVERWRITE = __libarchive.ARCHIVE_EXTRACT_NO_OVERWRITE
  288. ARCHIVE_EXTRACT_UNLINK = __libarchive.ARCHIVE_EXTRACT_UNLINK
  289. ARCHIVE_EXTRACT_ACL = __libarchive.ARCHIVE_EXTRACT_ACL
  290. ARCHIVE_EXTRACT_FFLAGS = __libarchive.ARCHIVE_EXTRACT_FFLAGS
  291. ARCHIVE_EXTRACT_XATTR = __libarchive.ARCHIVE_EXTRACT_XATTR
  292. ARCHIVE_EXTRACT_SECURE_SYMLINKS = __libarchive.ARCHIVE_EXTRACT_SECURE_SYMLINKS
  293. ARCHIVE_EXTRACT_SECURE_NODOTDOT = __libarchive.ARCHIVE_EXTRACT_SECURE_NODOTDOT
  294. ARCHIVE_EXTRACT_NO_AUTODIR = __libarchive.ARCHIVE_EXTRACT_NO_AUTODIR
  295. ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER = __libarchive.ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER
  296. ARCHIVE_EXTRACT_SPARSE = __libarchive.ARCHIVE_EXTRACT_SPARSE
  297. ARCHIVE_EXTRACT_MAC_METADATA = __libarchive.ARCHIVE_EXTRACT_MAC_METADATA
  298. def archive_read_data_into_str(archive, len):
  299. return __libarchive.archive_read_data_into_str(archive, len)
  300. def archive_write_data_from_str(archive, str):
  301. return __libarchive.archive_write_data_from_str(archive, str)