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.
 
 
 
 
 

479 lines
20 KiB

  1. # This file was automatically generated by SWIG (http://www.swig.org).
  2. # Version 2.0.4
  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
  7. if version_info >= (2,6,0):
  8. def swig_import_helper():
  9. from os.path import dirname
  10. import imp
  11. fp = None
  12. try:
  13. fp, pathname, description = imp.find_module('__libarchive', [dirname(__file__)])
  14. except ImportError:
  15. import __libarchive
  16. return __libarchive
  17. if fp is not None:
  18. try:
  19. _mod = imp.load_module('__libarchive', fp, pathname, description)
  20. finally:
  21. fp.close()
  22. return _mod
  23. __libarchive = swig_import_helper()
  24. del swig_import_helper
  25. else:
  26. import __libarchive
  27. del version_info
  28. try:
  29. _swig_property = property
  30. except NameError:
  31. pass # Python < 2.2 doesn't have 'property'.
  32. def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
  33. if (name == "thisown"): return self.this.own(value)
  34. if (name == "this"):
  35. if type(value).__name__ == 'SwigPyObject':
  36. self.__dict__[name] = value
  37. return
  38. method = class_type.__swig_setmethods__.get(name,None)
  39. if method: return method(self,value)
  40. if (not static):
  41. self.__dict__[name] = value
  42. else:
  43. raise AttributeError("You cannot add attributes to %s" % self)
  44. def _swig_setattr(self,class_type,name,value):
  45. return _swig_setattr_nondynamic(self,class_type,name,value,0)
  46. def _swig_getattr(self,class_type,name):
  47. if (name == "thisown"): return self.this.own()
  48. method = class_type.__swig_getmethods__.get(name,None)
  49. if method: return method(self)
  50. raise AttributeError(name)
  51. def _swig_repr(self):
  52. try: strthis = "proxy of " + self.this.__repr__()
  53. except: strthis = ""
  54. return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
  55. try:
  56. _object = object
  57. _newclass = 1
  58. except AttributeError:
  59. class _object : pass
  60. _newclass = 0
  61. def archive_read_new():
  62. return __libarchive.archive_read_new()
  63. archive_read_new = __libarchive.archive_read_new
  64. def archive_read_free(*args):
  65. return __libarchive.archive_read_free(*args)
  66. archive_read_free = __libarchive.archive_read_free
  67. def archive_read_open_filename(*args):
  68. return __libarchive.archive_read_open_filename(*args)
  69. archive_read_open_filename = __libarchive.archive_read_open_filename
  70. def archive_read_open_memory(*args):
  71. return __libarchive.archive_read_open_memory(*args)
  72. archive_read_open_memory = __libarchive.archive_read_open_memory
  73. def archive_read_open_memory2(*args):
  74. return __libarchive.archive_read_open_memory2(*args)
  75. archive_read_open_memory2 = __libarchive.archive_read_open_memory2
  76. def archive_read_open_fd(*args):
  77. return __libarchive.archive_read_open_fd(*args)
  78. archive_read_open_fd = __libarchive.archive_read_open_fd
  79. def archive_read_close(*args):
  80. return __libarchive.archive_read_close(*args)
  81. archive_read_close = __libarchive.archive_read_close
  82. def archive_format(*args):
  83. return __libarchive.archive_format(*args)
  84. archive_format = __libarchive.archive_format
  85. def archive_read_next_header2(*args):
  86. return __libarchive.archive_read_next_header2(*args)
  87. archive_read_next_header2 = __libarchive.archive_read_next_header2
  88. def archive_entry_stat(*args):
  89. return __libarchive.archive_entry_stat(*args)
  90. archive_entry_stat = __libarchive.archive_entry_stat
  91. def archive_read_header_position(*args):
  92. return __libarchive.archive_read_header_position(*args)
  93. archive_read_header_position = __libarchive.archive_read_header_position
  94. def archive_read_data_skip(*args):
  95. return __libarchive.archive_read_data_skip(*args)
  96. archive_read_data_skip = __libarchive.archive_read_data_skip
  97. def archive_read_data_into_fd(*args):
  98. return __libarchive.archive_read_data_into_fd(*args)
  99. archive_read_data_into_fd = __libarchive.archive_read_data_into_fd
  100. def archive_read_support_filter_all(*args):
  101. return __libarchive.archive_read_support_filter_all(*args)
  102. archive_read_support_filter_all = __libarchive.archive_read_support_filter_all
  103. def archive_read_support_filter_bzip2(*args):
  104. return __libarchive.archive_read_support_filter_bzip2(*args)
  105. archive_read_support_filter_bzip2 = __libarchive.archive_read_support_filter_bzip2
  106. def archive_read_support_filter_compress(*args):
  107. return __libarchive.archive_read_support_filter_compress(*args)
  108. archive_read_support_filter_compress = __libarchive.archive_read_support_filter_compress
  109. def archive_read_support_filter_gzip(*args):
  110. return __libarchive.archive_read_support_filter_gzip(*args)
  111. archive_read_support_filter_gzip = __libarchive.archive_read_support_filter_gzip
  112. def archive_read_support_filter_lzip(*args):
  113. return __libarchive.archive_read_support_filter_lzip(*args)
  114. archive_read_support_filter_lzip = __libarchive.archive_read_support_filter_lzip
  115. def archive_read_support_filter_lzma(*args):
  116. return __libarchive.archive_read_support_filter_lzma(*args)
  117. archive_read_support_filter_lzma = __libarchive.archive_read_support_filter_lzma
  118. def archive_read_support_filter_none(*args):
  119. return __libarchive.archive_read_support_filter_none(*args)
  120. archive_read_support_filter_none = __libarchive.archive_read_support_filter_none
  121. def archive_read_support_filter_rpm(*args):
  122. return __libarchive.archive_read_support_filter_rpm(*args)
  123. archive_read_support_filter_rpm = __libarchive.archive_read_support_filter_rpm
  124. def archive_read_support_filter_uu(*args):
  125. return __libarchive.archive_read_support_filter_uu(*args)
  126. archive_read_support_filter_uu = __libarchive.archive_read_support_filter_uu
  127. def archive_read_support_filter_xz(*args):
  128. return __libarchive.archive_read_support_filter_xz(*args)
  129. archive_read_support_filter_xz = __libarchive.archive_read_support_filter_xz
  130. def archive_read_support_format_all(*args):
  131. return __libarchive.archive_read_support_format_all(*args)
  132. archive_read_support_format_all = __libarchive.archive_read_support_format_all
  133. def archive_read_support_format_7zip(*args):
  134. return __libarchive.archive_read_support_format_7zip(*args)
  135. archive_read_support_format_7zip = __libarchive.archive_read_support_format_7zip
  136. def archive_read_support_format_ar(*args):
  137. return __libarchive.archive_read_support_format_ar(*args)
  138. archive_read_support_format_ar = __libarchive.archive_read_support_format_ar
  139. def archive_read_support_format_cab(*args):
  140. return __libarchive.archive_read_support_format_cab(*args)
  141. archive_read_support_format_cab = __libarchive.archive_read_support_format_cab
  142. def archive_read_support_format_cpio(*args):
  143. return __libarchive.archive_read_support_format_cpio(*args)
  144. archive_read_support_format_cpio = __libarchive.archive_read_support_format_cpio
  145. def archive_read_support_format_empty(*args):
  146. return __libarchive.archive_read_support_format_empty(*args)
  147. archive_read_support_format_empty = __libarchive.archive_read_support_format_empty
  148. def archive_read_support_format_gnutar(*args):
  149. return __libarchive.archive_read_support_format_gnutar(*args)
  150. archive_read_support_format_gnutar = __libarchive.archive_read_support_format_gnutar
  151. def archive_read_support_format_iso9660(*args):
  152. return __libarchive.archive_read_support_format_iso9660(*args)
  153. archive_read_support_format_iso9660 = __libarchive.archive_read_support_format_iso9660
  154. def archive_read_support_format_lha(*args):
  155. return __libarchive.archive_read_support_format_lha(*args)
  156. archive_read_support_format_lha = __libarchive.archive_read_support_format_lha
  157. def archive_read_support_format_rar(*args):
  158. return __libarchive.archive_read_support_format_rar(*args)
  159. archive_read_support_format_rar = __libarchive.archive_read_support_format_rar
  160. def archive_read_support_format_raw(*args):
  161. return __libarchive.archive_read_support_format_raw(*args)
  162. archive_read_support_format_raw = __libarchive.archive_read_support_format_raw
  163. def archive_read_support_format_tar(*args):
  164. return __libarchive.archive_read_support_format_tar(*args)
  165. archive_read_support_format_tar = __libarchive.archive_read_support_format_tar
  166. def archive_read_support_format_xar(*args):
  167. return __libarchive.archive_read_support_format_xar(*args)
  168. archive_read_support_format_xar = __libarchive.archive_read_support_format_xar
  169. def archive_read_support_format_zip(*args):
  170. return __libarchive.archive_read_support_format_zip(*args)
  171. archive_read_support_format_zip = __libarchive.archive_read_support_format_zip
  172. def archive_write_new():
  173. return __libarchive.archive_write_new()
  174. archive_write_new = __libarchive.archive_write_new
  175. def archive_write_free(*args):
  176. return __libarchive.archive_write_free(*args)
  177. archive_write_free = __libarchive.archive_write_free
  178. def archive_write_open(*args):
  179. return __libarchive.archive_write_open(*args)
  180. archive_write_open = __libarchive.archive_write_open
  181. def archive_write_open_fd(*args):
  182. return __libarchive.archive_write_open_fd(*args)
  183. archive_write_open_fd = __libarchive.archive_write_open_fd
  184. def archive_write_open_filename(*args):
  185. return __libarchive.archive_write_open_filename(*args)
  186. archive_write_open_filename = __libarchive.archive_write_open_filename
  187. def archive_write_open_filename_w(*args):
  188. return __libarchive.archive_write_open_filename_w(*args)
  189. archive_write_open_filename_w = __libarchive.archive_write_open_filename_w
  190. def archive_write_open_memory(*args):
  191. return __libarchive.archive_write_open_memory(*args)
  192. archive_write_open_memory = __libarchive.archive_write_open_memory
  193. def archive_write_close(*args):
  194. return __libarchive.archive_write_close(*args)
  195. archive_write_close = __libarchive.archive_write_close
  196. def archive_write_header(*args):
  197. return __libarchive.archive_write_header(*args)
  198. archive_write_header = __libarchive.archive_write_header
  199. def archive_write_finish_entry(*args):
  200. return __libarchive.archive_write_finish_entry(*args)
  201. archive_write_finish_entry = __libarchive.archive_write_finish_entry
  202. def archive_write_add_filter_bzip2(*args):
  203. return __libarchive.archive_write_add_filter_bzip2(*args)
  204. archive_write_add_filter_bzip2 = __libarchive.archive_write_add_filter_bzip2
  205. def archive_write_add_filter_compress(*args):
  206. return __libarchive.archive_write_add_filter_compress(*args)
  207. archive_write_add_filter_compress = __libarchive.archive_write_add_filter_compress
  208. def archive_write_add_filter_gzip(*args):
  209. return __libarchive.archive_write_add_filter_gzip(*args)
  210. archive_write_add_filter_gzip = __libarchive.archive_write_add_filter_gzip
  211. def archive_write_add_filter_lzip(*args):
  212. return __libarchive.archive_write_add_filter_lzip(*args)
  213. archive_write_add_filter_lzip = __libarchive.archive_write_add_filter_lzip
  214. def archive_write_add_filter_lzma(*args):
  215. return __libarchive.archive_write_add_filter_lzma(*args)
  216. archive_write_add_filter_lzma = __libarchive.archive_write_add_filter_lzma
  217. def archive_write_add_filter_none(*args):
  218. return __libarchive.archive_write_add_filter_none(*args)
  219. archive_write_add_filter_none = __libarchive.archive_write_add_filter_none
  220. def archive_write_add_filter_xz(*args):
  221. return __libarchive.archive_write_add_filter_xz(*args)
  222. archive_write_add_filter_xz = __libarchive.archive_write_add_filter_xz
  223. def archive_write_set_format(*args):
  224. return __libarchive.archive_write_set_format(*args)
  225. archive_write_set_format = __libarchive.archive_write_set_format
  226. def archive_write_set_format_by_name(*args):
  227. return __libarchive.archive_write_set_format_by_name(*args)
  228. archive_write_set_format_by_name = __libarchive.archive_write_set_format_by_name
  229. def archive_write_set_format_ar_bsd(*args):
  230. return __libarchive.archive_write_set_format_ar_bsd(*args)
  231. archive_write_set_format_ar_bsd = __libarchive.archive_write_set_format_ar_bsd
  232. def archive_write_set_format_ar_svr4(*args):
  233. return __libarchive.archive_write_set_format_ar_svr4(*args)
  234. archive_write_set_format_ar_svr4 = __libarchive.archive_write_set_format_ar_svr4
  235. def archive_write_set_format_cpio(*args):
  236. return __libarchive.archive_write_set_format_cpio(*args)
  237. archive_write_set_format_cpio = __libarchive.archive_write_set_format_cpio
  238. def archive_write_set_format_cpio_newc(*args):
  239. return __libarchive.archive_write_set_format_cpio_newc(*args)
  240. archive_write_set_format_cpio_newc = __libarchive.archive_write_set_format_cpio_newc
  241. def archive_write_set_format_gnutar(*args):
  242. return __libarchive.archive_write_set_format_gnutar(*args)
  243. archive_write_set_format_gnutar = __libarchive.archive_write_set_format_gnutar
  244. def archive_write_set_format_iso9660(*args):
  245. return __libarchive.archive_write_set_format_iso9660(*args)
  246. archive_write_set_format_iso9660 = __libarchive.archive_write_set_format_iso9660
  247. def archive_write_set_format_pax(*args):
  248. return __libarchive.archive_write_set_format_pax(*args)
  249. archive_write_set_format_pax = __libarchive.archive_write_set_format_pax
  250. def archive_write_set_format_pax_restricted(*args):
  251. return __libarchive.archive_write_set_format_pax_restricted(*args)
  252. archive_write_set_format_pax_restricted = __libarchive.archive_write_set_format_pax_restricted
  253. def archive_write_set_format_shar(*args):
  254. return __libarchive.archive_write_set_format_shar(*args)
  255. archive_write_set_format_shar = __libarchive.archive_write_set_format_shar
  256. def archive_write_set_format_shar_dump(*args):
  257. return __libarchive.archive_write_set_format_shar_dump(*args)
  258. archive_write_set_format_shar_dump = __libarchive.archive_write_set_format_shar_dump
  259. def archive_write_set_format_ustar(*args):
  260. return __libarchive.archive_write_set_format_ustar(*args)
  261. archive_write_set_format_ustar = __libarchive.archive_write_set_format_ustar
  262. def archive_write_set_format_xar(*args):
  263. return __libarchive.archive_write_set_format_xar(*args)
  264. archive_write_set_format_xar = __libarchive.archive_write_set_format_xar
  265. def archive_write_set_format_zip(*args):
  266. return __libarchive.archive_write_set_format_zip(*args)
  267. archive_write_set_format_zip = __libarchive.archive_write_set_format_zip
  268. def archive_entry_new():
  269. return __libarchive.archive_entry_new()
  270. archive_entry_new = __libarchive.archive_entry_new
  271. def archive_entry_free(*args):
  272. return __libarchive.archive_entry_free(*args)
  273. archive_entry_free = __libarchive.archive_entry_free
  274. def archive_entry_pathname(*args):
  275. return __libarchive.archive_entry_pathname(*args)
  276. archive_entry_pathname = __libarchive.archive_entry_pathname
  277. def archive_entry_pathname_w(*args):
  278. return __libarchive.archive_entry_pathname_w(*args)
  279. archive_entry_pathname_w = __libarchive.archive_entry_pathname_w
  280. def archive_entry_size(*args):
  281. return __libarchive.archive_entry_size(*args)
  282. archive_entry_size = __libarchive.archive_entry_size
  283. def archive_entry_mtime(*args):
  284. return __libarchive.archive_entry_mtime(*args)
  285. archive_entry_mtime = __libarchive.archive_entry_mtime
  286. def archive_entry_filetype(*args):
  287. return __libarchive.archive_entry_filetype(*args)
  288. archive_entry_filetype = __libarchive.archive_entry_filetype
  289. def archive_entry_perm(*args):
  290. return __libarchive.archive_entry_perm(*args)
  291. archive_entry_perm = __libarchive.archive_entry_perm
  292. def archive_entry_set_pathname(*args):
  293. return __libarchive.archive_entry_set_pathname(*args)
  294. archive_entry_set_pathname = __libarchive.archive_entry_set_pathname
  295. def archive_entry_set_size(*args):
  296. return __libarchive.archive_entry_set_size(*args)
  297. archive_entry_set_size = __libarchive.archive_entry_set_size
  298. def archive_entry_set_mtime(*args):
  299. return __libarchive.archive_entry_set_mtime(*args)
  300. archive_entry_set_mtime = __libarchive.archive_entry_set_mtime
  301. def archive_entry_set_filetype(*args):
  302. return __libarchive.archive_entry_set_filetype(*args)
  303. archive_entry_set_filetype = __libarchive.archive_entry_set_filetype
  304. def archive_entry_set_perm(*args):
  305. return __libarchive.archive_entry_set_perm(*args)
  306. archive_entry_set_perm = __libarchive.archive_entry_set_perm
  307. def archive_errno(*args):
  308. return __libarchive.archive_errno(*args)
  309. archive_errno = __libarchive.archive_errno
  310. def archive_error_string(*args):
  311. return __libarchive.archive_error_string(*args)
  312. archive_error_string = __libarchive.archive_error_string
  313. ARCHIVE_VERSION_NUMBER = __libarchive.ARCHIVE_VERSION_NUMBER
  314. ARCHIVE_VERSION_STRING = __libarchive.ARCHIVE_VERSION_STRING
  315. ARCHIVE_EOF = __libarchive.ARCHIVE_EOF
  316. ARCHIVE_OK = __libarchive.ARCHIVE_OK
  317. ARCHIVE_RETRY = __libarchive.ARCHIVE_RETRY
  318. ARCHIVE_WARN = __libarchive.ARCHIVE_WARN
  319. ARCHIVE_FAILED = __libarchive.ARCHIVE_FAILED
  320. ARCHIVE_FATAL = __libarchive.ARCHIVE_FATAL
  321. ARCHIVE_FILTER_NONE = __libarchive.ARCHIVE_FILTER_NONE
  322. ARCHIVE_FILTER_GZIP = __libarchive.ARCHIVE_FILTER_GZIP
  323. ARCHIVE_FILTER_BZIP2 = __libarchive.ARCHIVE_FILTER_BZIP2
  324. ARCHIVE_FILTER_COMPRESS = __libarchive.ARCHIVE_FILTER_COMPRESS
  325. ARCHIVE_FILTER_PROGRAM = __libarchive.ARCHIVE_FILTER_PROGRAM
  326. ARCHIVE_FILTER_LZMA = __libarchive.ARCHIVE_FILTER_LZMA
  327. ARCHIVE_FILTER_XZ = __libarchive.ARCHIVE_FILTER_XZ
  328. ARCHIVE_FILTER_UU = __libarchive.ARCHIVE_FILTER_UU
  329. ARCHIVE_FILTER_RPM = __libarchive.ARCHIVE_FILTER_RPM
  330. ARCHIVE_FILTER_LZIP = __libarchive.ARCHIVE_FILTER_LZIP
  331. ARCHIVE_FORMAT_BASE_MASK = __libarchive.ARCHIVE_FORMAT_BASE_MASK
  332. ARCHIVE_FORMAT_CPIO = __libarchive.ARCHIVE_FORMAT_CPIO
  333. ARCHIVE_FORMAT_CPIO_POSIX = __libarchive.ARCHIVE_FORMAT_CPIO_POSIX
  334. ARCHIVE_FORMAT_CPIO_BIN_LE = __libarchive.ARCHIVE_FORMAT_CPIO_BIN_LE
  335. ARCHIVE_FORMAT_CPIO_BIN_BE = __libarchive.ARCHIVE_FORMAT_CPIO_BIN_BE
  336. ARCHIVE_FORMAT_CPIO_SVR4_NOCRC = __libarchive.ARCHIVE_FORMAT_CPIO_SVR4_NOCRC
  337. ARCHIVE_FORMAT_CPIO_SVR4_CRC = __libarchive.ARCHIVE_FORMAT_CPIO_SVR4_CRC
  338. ARCHIVE_FORMAT_CPIO_AFIO_LARGE = __libarchive.ARCHIVE_FORMAT_CPIO_AFIO_LARGE
  339. ARCHIVE_FORMAT_SHAR = __libarchive.ARCHIVE_FORMAT_SHAR
  340. ARCHIVE_FORMAT_SHAR_BASE = __libarchive.ARCHIVE_FORMAT_SHAR_BASE
  341. ARCHIVE_FORMAT_SHAR_DUMP = __libarchive.ARCHIVE_FORMAT_SHAR_DUMP
  342. ARCHIVE_FORMAT_TAR = __libarchive.ARCHIVE_FORMAT_TAR
  343. ARCHIVE_FORMAT_TAR_USTAR = __libarchive.ARCHIVE_FORMAT_TAR_USTAR
  344. ARCHIVE_FORMAT_TAR_PAX_INTERCHANGE = __libarchive.ARCHIVE_FORMAT_TAR_PAX_INTERCHANGE
  345. ARCHIVE_FORMAT_TAR_PAX_RESTRICTED = __libarchive.ARCHIVE_FORMAT_TAR_PAX_RESTRICTED
  346. ARCHIVE_FORMAT_TAR_GNUTAR = __libarchive.ARCHIVE_FORMAT_TAR_GNUTAR
  347. ARCHIVE_FORMAT_ISO9660 = __libarchive.ARCHIVE_FORMAT_ISO9660
  348. ARCHIVE_FORMAT_ISO9660_ROCKRIDGE = __libarchive.ARCHIVE_FORMAT_ISO9660_ROCKRIDGE
  349. ARCHIVE_FORMAT_ZIP = __libarchive.ARCHIVE_FORMAT_ZIP
  350. ARCHIVE_FORMAT_EMPTY = __libarchive.ARCHIVE_FORMAT_EMPTY
  351. ARCHIVE_FORMAT_AR = __libarchive.ARCHIVE_FORMAT_AR
  352. ARCHIVE_FORMAT_AR_GNU = __libarchive.ARCHIVE_FORMAT_AR_GNU
  353. ARCHIVE_FORMAT_AR_BSD = __libarchive.ARCHIVE_FORMAT_AR_BSD
  354. ARCHIVE_FORMAT_MTREE = __libarchive.ARCHIVE_FORMAT_MTREE
  355. ARCHIVE_FORMAT_RAW = __libarchive.ARCHIVE_FORMAT_RAW
  356. ARCHIVE_FORMAT_XAR = __libarchive.ARCHIVE_FORMAT_XAR
  357. ARCHIVE_FORMAT_LHA = __libarchive.ARCHIVE_FORMAT_LHA
  358. ARCHIVE_FORMAT_CAB = __libarchive.ARCHIVE_FORMAT_CAB
  359. ARCHIVE_FORMAT_RAR = __libarchive.ARCHIVE_FORMAT_RAR
  360. ARCHIVE_FORMAT_7ZIP = __libarchive.ARCHIVE_FORMAT_7ZIP
  361. ARCHIVE_EXTRACT_OWNER = __libarchive.ARCHIVE_EXTRACT_OWNER
  362. ARCHIVE_EXTRACT_PERM = __libarchive.ARCHIVE_EXTRACT_PERM
  363. ARCHIVE_EXTRACT_TIME = __libarchive.ARCHIVE_EXTRACT_TIME
  364. ARCHIVE_EXTRACT_NO_OVERWRITE = __libarchive.ARCHIVE_EXTRACT_NO_OVERWRITE
  365. ARCHIVE_EXTRACT_UNLINK = __libarchive.ARCHIVE_EXTRACT_UNLINK
  366. ARCHIVE_EXTRACT_ACL = __libarchive.ARCHIVE_EXTRACT_ACL
  367. ARCHIVE_EXTRACT_FFLAGS = __libarchive.ARCHIVE_EXTRACT_FFLAGS
  368. ARCHIVE_EXTRACT_XATTR = __libarchive.ARCHIVE_EXTRACT_XATTR
  369. ARCHIVE_EXTRACT_SECURE_SYMLINKS = __libarchive.ARCHIVE_EXTRACT_SECURE_SYMLINKS
  370. ARCHIVE_EXTRACT_SECURE_NODOTDOT = __libarchive.ARCHIVE_EXTRACT_SECURE_NODOTDOT
  371. ARCHIVE_EXTRACT_NO_AUTODIR = __libarchive.ARCHIVE_EXTRACT_NO_AUTODIR
  372. ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER = __libarchive.ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER
  373. ARCHIVE_EXTRACT_SPARSE = __libarchive.ARCHIVE_EXTRACT_SPARSE
  374. ARCHIVE_EXTRACT_MAC_METADATA = __libarchive.ARCHIVE_EXTRACT_MAC_METADATA
  375. def archive_read_data_into_str(*args):
  376. return __libarchive.archive_read_data_into_str(*args)
  377. archive_read_data_into_str = __libarchive.archive_read_data_into_str
  378. def archive_write_data_from_str(*args):
  379. return __libarchive.archive_write_data_from_str(*args)
  380. archive_write_data_from_str = __libarchive.archive_write_data_from_str
  381. # This file is compatible with both classic and new-style classes.