Browse Source

hacking in some more api

test_fixup
Richard Young 3 years ago
parent
commit
1d1a212df1
3 changed files with 1700 additions and 1572 deletions
  1. +29
    -2
      libarchive/_libarchive.i
  2. +241
    -319
      libarchive/_libarchive.py
  3. +1430
    -1251
      libarchive/_libarchive_wrap.c

+ 29
- 2
libarchive/_libarchive.i View File

@@ -72,8 +72,6 @@


typedef unsigned short mode_t; typedef unsigned short mode_t;


# Everything below is from the archive.h and archive_entry.h files.
# I excluded functions declarations that are not needed.


/* CONFIGURATION */ /* CONFIGURATION */


@@ -276,6 +274,33 @@ extern __LA_INT64_T archive_entry_size(struct archive_entry *);
extern time_t archive_entry_mtime(struct archive_entry *); extern time_t archive_entry_mtime(struct archive_entry *);
extern __LA_MODE_T archive_entry_filetype(struct archive_entry *); extern __LA_MODE_T archive_entry_filetype(struct archive_entry *);
extern __LA_MODE_T archive_entry_perm(struct archive_entry *); extern __LA_MODE_T archive_entry_perm(struct archive_entry *);
extern const char *archive_entry_symlink(struct archive_entry *);
//extern const char *archive_entry_symlink_utf8(struct archive_entry *);

extern void archive_entry_set_link(struct archive_entry *, const char *);
//extern void archive_entry_set_link_utf8(struct archive_entry *, const char *);
//extern int archive_entry_symlink_type(struct archive_entry *);
extern const wchar_t *archive_entry_symlink_w(struct archive_entry *);

//__LA_DECL void archive_entry_copy_link(struct archive_entry *, const char *);
//__LA_DECL void archive_entry_copy_link_w(struct archive_entry *, const wchar_t *);

/* The names for symlink modes here correspond to an old BSD
* command-line argument convention: -L, -P, -H */
/* Follow all symlinks. */
extern int archive_read_disk_set_symlink_logical(struct archive *);
/* Follow no symlinks. */
extern int archive_read_disk_set_symlink_physical(struct archive *);
/* Follow symlink initially, then not. */
extern int archive_read_disk_set_symlink_hybrid(struct archive *);


extern void archive_entry_set_symlink(struct archive_entry *, const char *);
//extern void archive_entry_set_symlink_type(struct archive_entry *, int);
//extern void archive_entry_set_symlink_utf8(struct archive_entry *, const char *);
extern void archive_entry_copy_symlink(struct archive_entry *, const char *);
extern void archive_entry_copy_symlink_w(struct archive_entry *, const wchar_t *);
//extern int archive_entry_update_symlink_utf8(struct archive_entry *, const char *);


/* writing */ /* writing */
extern void archive_entry_set_pathname(struct archive_entry *, const char *); extern void archive_entry_set_pathname(struct archive_entry *, const char *);
@@ -283,6 +308,8 @@ extern void archive_entry_set_size(struct archive_entry *, __LA_INT64_T);
extern void archive_entry_set_mtime(struct archive_entry *, time_t, long); extern void archive_entry_set_mtime(struct archive_entry *, time_t, long);
extern void archive_entry_set_filetype(struct archive_entry *, unsigned int); extern void archive_entry_set_filetype(struct archive_entry *, unsigned int);
extern void archive_entry_set_perm(struct archive_entry *, __LA_MODE_T); extern void archive_entry_set_perm(struct archive_entry *, __LA_MODE_T);
//extern void archive_entry_set_link(struct archive_entry *, __LA_MODE_T);
//extern void archive_entry_set_symlink(struct archive_entry *, __LA_MODE_T);




/* ERROR HANDLING */ /* ERROR HANDLING */


+ 241
- 319
libarchive/_libarchive.py View File

@@ -1,420 +1,345 @@
# This file was automatically generated by SWIG (http://www.swig.org). # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.4
# Version 4.0.2
# #
# Do not make changes to this file unless you know what you are doing--modify # Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead. # the SWIG interface file instead.


from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise RuntimeError("Python 2.7 or later required")



from sys import version_info
if version_info >= (2,6,0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('__libarchive', [dirname(__file__)])
except ImportError:
import __libarchive
return __libarchive
if fp is not None:
try:
_mod = imp.load_module('__libarchive', fp, pathname, description)
finally:
fp.close()
return _mod
__libarchive = swig_import_helper()
del swig_import_helper
# Import the low-level C/C++ module
if __package__ or "." in __name__:
from . import __libarchive
else: else:
import __libarchive import __libarchive
del version_info

try: try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "thisown"): return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name,None)
if method: return method(self,value)
if (not static):
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)

def _swig_setattr(self,class_type,name,value):
return _swig_setattr_nondynamic(self,class_type,name,value,0)

def _swig_getattr(self,class_type,name):
if (name == "thisown"): return self.this.own()
method = class_type.__swig_getmethods__.get(name,None)
if method: return method(self)
raise AttributeError(name)
import builtins as __builtin__
except ImportError:
import __builtin__


def _swig_repr(self): def _swig_repr(self):
try: strthis = "proxy of " + self.this.__repr__()
except: strthis = ""
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)


try:
_object = object
_newclass = 1
except AttributeError:
class _object : pass
_newclass = 0

def _swig_setattr_nondynamic_instance_variable(set):
def set_instance_attr(self, name, value):
if name == "thisown":
self.this.own(value)
elif name == "this":
set(self, name, value)
elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
set(self, name, value)
else:
raise AttributeError("You cannot add instance attributes to %s" % self)
return set_instance_attr


def _swig_setattr_nondynamic_class_variable(set):
def set_class_attr(cls, name, value):
if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
set(cls, name, value)
else:
raise AttributeError("You cannot add class attributes to %s" % cls)
return set_class_attr


def _swig_add_metaclass(metaclass):
"""Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
def wrapper(cls):
return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
return wrapper


class _SwigNonDynamicMeta(type):
"""Meta class to enforce nondynamic attributes (no new attributes) for a class"""
__setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)






def archive_read_new(): def archive_read_new():
return __libarchive.archive_read_new()
archive_read_new = __libarchive.archive_read_new
return __libarchive.archive_read_new()


def archive_read_free(*args):
return __libarchive.archive_read_free(*args)
archive_read_free = __libarchive.archive_read_free
def archive_read_free(arg1):
return __libarchive.archive_read_free(arg1)


def archive_read_open_filename(*args):
return __libarchive.archive_read_open_filename(*args)
archive_read_open_filename = __libarchive.archive_read_open_filename
def archive_read_open_filename(arg1, _filename, _block_size):
return __libarchive.archive_read_open_filename(arg1, _filename, _block_size)


def archive_read_open_memory(*args):
return __libarchive.archive_read_open_memory(*args)
archive_read_open_memory = __libarchive.archive_read_open_memory
def archive_read_open_memory(arg1, buff, size):
return __libarchive.archive_read_open_memory(arg1, buff, size)


def archive_read_open_memory2(*args):
return __libarchive.archive_read_open_memory2(*args)
archive_read_open_memory2 = __libarchive.archive_read_open_memory2
def archive_read_open_memory2(a, buff, size, read_size):
return __libarchive.archive_read_open_memory2(a, buff, size, read_size)


def archive_read_open_fd(*args):
return __libarchive.archive_read_open_fd(*args)
archive_read_open_fd = __libarchive.archive_read_open_fd
def archive_read_open_fd(arg1, _fd, _block_size):
return __libarchive.archive_read_open_fd(arg1, _fd, _block_size)


def archive_read_close(*args):
return __libarchive.archive_read_close(*args)
archive_read_close = __libarchive.archive_read_close
def archive_read_close(arg1):
return __libarchive.archive_read_close(arg1)


def archive_format(*args):
return __libarchive.archive_format(*args)
archive_format = __libarchive.archive_format
def archive_format(arg1):
return __libarchive.archive_format(arg1)


def archive_read_next_header2(*args):
return __libarchive.archive_read_next_header2(*args)
archive_read_next_header2 = __libarchive.archive_read_next_header2
def archive_read_next_header2(arg1, arg2):
return __libarchive.archive_read_next_header2(arg1, arg2)


def archive_entry_stat(*args):
return __libarchive.archive_entry_stat(*args)
archive_entry_stat = __libarchive.archive_entry_stat
def archive_entry_stat(arg1):
return __libarchive.archive_entry_stat(arg1)


def archive_read_header_position(*args):
return __libarchive.archive_read_header_position(*args)
archive_read_header_position = __libarchive.archive_read_header_position
def archive_read_header_position(arg1):
return __libarchive.archive_read_header_position(arg1)


def archive_read_data_skip(*args):
return __libarchive.archive_read_data_skip(*args)
archive_read_data_skip = __libarchive.archive_read_data_skip
def archive_read_data_skip(arg1):
return __libarchive.archive_read_data_skip(arg1)


def archive_read_data_into_fd(*args):
return __libarchive.archive_read_data_into_fd(*args)
archive_read_data_into_fd = __libarchive.archive_read_data_into_fd
def archive_read_data_into_fd(arg1, fd):
return __libarchive.archive_read_data_into_fd(arg1, fd)


def archive_read_support_filter_all(*args):
return __libarchive.archive_read_support_filter_all(*args)
archive_read_support_filter_all = __libarchive.archive_read_support_filter_all
def archive_read_support_filter_all(arg1):
return __libarchive.archive_read_support_filter_all(arg1)


def archive_read_support_filter_bzip2(*args):
return __libarchive.archive_read_support_filter_bzip2(*args)
archive_read_support_filter_bzip2 = __libarchive.archive_read_support_filter_bzip2
def archive_read_support_filter_bzip2(arg1):
return __libarchive.archive_read_support_filter_bzip2(arg1)


def archive_read_support_filter_compress(*args):
return __libarchive.archive_read_support_filter_compress(*args)
archive_read_support_filter_compress = __libarchive.archive_read_support_filter_compress
def archive_read_support_filter_compress(arg1):
return __libarchive.archive_read_support_filter_compress(arg1)


def archive_read_support_filter_gzip(*args):
return __libarchive.archive_read_support_filter_gzip(*args)
archive_read_support_filter_gzip = __libarchive.archive_read_support_filter_gzip
def archive_read_support_filter_gzip(arg1):
return __libarchive.archive_read_support_filter_gzip(arg1)


def archive_read_support_filter_lzip(*args):
return __libarchive.archive_read_support_filter_lzip(*args)
archive_read_support_filter_lzip = __libarchive.archive_read_support_filter_lzip
def archive_read_support_filter_lzip(arg1):
return __libarchive.archive_read_support_filter_lzip(arg1)


def archive_read_support_filter_lzma(*args):
return __libarchive.archive_read_support_filter_lzma(*args)
archive_read_support_filter_lzma = __libarchive.archive_read_support_filter_lzma
def archive_read_support_filter_lzma(arg1):
return __libarchive.archive_read_support_filter_lzma(arg1)


def archive_read_support_filter_none(*args):
return __libarchive.archive_read_support_filter_none(*args)
archive_read_support_filter_none = __libarchive.archive_read_support_filter_none
def archive_read_support_filter_none(arg1):
return __libarchive.archive_read_support_filter_none(arg1)


def archive_read_support_filter_rpm(*args):
return __libarchive.archive_read_support_filter_rpm(*args)
archive_read_support_filter_rpm = __libarchive.archive_read_support_filter_rpm
def archive_read_support_filter_rpm(arg1):
return __libarchive.archive_read_support_filter_rpm(arg1)


def archive_read_support_filter_uu(*args):
return __libarchive.archive_read_support_filter_uu(*args)
archive_read_support_filter_uu = __libarchive.archive_read_support_filter_uu
def archive_read_support_filter_uu(arg1):
return __libarchive.archive_read_support_filter_uu(arg1)


def archive_read_support_filter_xz(*args):
return __libarchive.archive_read_support_filter_xz(*args)
archive_read_support_filter_xz = __libarchive.archive_read_support_filter_xz
def archive_read_support_filter_xz(arg1):
return __libarchive.archive_read_support_filter_xz(arg1)


def archive_read_support_format_all(*args):
return __libarchive.archive_read_support_format_all(*args)
archive_read_support_format_all = __libarchive.archive_read_support_format_all
def archive_read_support_format_all(arg1):
return __libarchive.archive_read_support_format_all(arg1)


def archive_read_support_format_7zip(*args):
return __libarchive.archive_read_support_format_7zip(*args)
archive_read_support_format_7zip = __libarchive.archive_read_support_format_7zip
def archive_read_support_format_7zip(arg1):
return __libarchive.archive_read_support_format_7zip(arg1)


def archive_read_support_format_ar(*args):
return __libarchive.archive_read_support_format_ar(*args)
archive_read_support_format_ar = __libarchive.archive_read_support_format_ar
def archive_read_support_format_ar(arg1):
return __libarchive.archive_read_support_format_ar(arg1)


def archive_read_support_format_cab(*args):
return __libarchive.archive_read_support_format_cab(*args)
archive_read_support_format_cab = __libarchive.archive_read_support_format_cab
def archive_read_support_format_cab(arg1):
return __libarchive.archive_read_support_format_cab(arg1)


def archive_read_support_format_cpio(*args):
return __libarchive.archive_read_support_format_cpio(*args)
archive_read_support_format_cpio = __libarchive.archive_read_support_format_cpio
def archive_read_support_format_cpio(arg1):
return __libarchive.archive_read_support_format_cpio(arg1)


def archive_read_support_format_empty(*args):
return __libarchive.archive_read_support_format_empty(*args)
archive_read_support_format_empty = __libarchive.archive_read_support_format_empty
def archive_read_support_format_empty(arg1):
return __libarchive.archive_read_support_format_empty(arg1)


def archive_read_support_format_gnutar(*args):
return __libarchive.archive_read_support_format_gnutar(*args)
archive_read_support_format_gnutar = __libarchive.archive_read_support_format_gnutar
def archive_read_support_format_gnutar(arg1):
return __libarchive.archive_read_support_format_gnutar(arg1)


def archive_read_support_format_iso9660(*args):
return __libarchive.archive_read_support_format_iso9660(*args)
archive_read_support_format_iso9660 = __libarchive.archive_read_support_format_iso9660
def archive_read_support_format_iso9660(arg1):
return __libarchive.archive_read_support_format_iso9660(arg1)


def archive_read_support_format_lha(*args):
return __libarchive.archive_read_support_format_lha(*args)
archive_read_support_format_lha = __libarchive.archive_read_support_format_lha
def archive_read_support_format_lha(arg1):
return __libarchive.archive_read_support_format_lha(arg1)


def archive_read_support_format_rar(*args):
return __libarchive.archive_read_support_format_rar(*args)
archive_read_support_format_rar = __libarchive.archive_read_support_format_rar
def archive_read_support_format_rar(arg1):
return __libarchive.archive_read_support_format_rar(arg1)


def archive_read_support_format_raw(*args):
return __libarchive.archive_read_support_format_raw(*args)
archive_read_support_format_raw = __libarchive.archive_read_support_format_raw
def archive_read_support_format_raw(arg1):
return __libarchive.archive_read_support_format_raw(arg1)


def archive_read_support_format_tar(*args):
return __libarchive.archive_read_support_format_tar(*args)
archive_read_support_format_tar = __libarchive.archive_read_support_format_tar
def archive_read_support_format_tar(arg1):
return __libarchive.archive_read_support_format_tar(arg1)


def archive_read_support_format_xar(*args):
return __libarchive.archive_read_support_format_xar(*args)
archive_read_support_format_xar = __libarchive.archive_read_support_format_xar
def archive_read_support_format_xar(arg1):
return __libarchive.archive_read_support_format_xar(arg1)


def archive_read_support_format_zip(*args):
return __libarchive.archive_read_support_format_zip(*args)
archive_read_support_format_zip = __libarchive.archive_read_support_format_zip
def archive_read_support_format_zip(arg1):
return __libarchive.archive_read_support_format_zip(arg1)


def archive_write_new(): def archive_write_new():
return __libarchive.archive_write_new()
archive_write_new = __libarchive.archive_write_new
return __libarchive.archive_write_new()


def archive_write_free(*args):
return __libarchive.archive_write_free(*args)
archive_write_free = __libarchive.archive_write_free
def archive_write_free(arg1):
return __libarchive.archive_write_free(arg1)


def archive_write_open(*args):
return __libarchive.archive_write_open(*args)
archive_write_open = __libarchive.archive_write_open
def archive_write_open(arg1, arg2, arg3, arg4, arg5):
return __libarchive.archive_write_open(arg1, arg2, arg3, arg4, arg5)


def archive_write_open_fd(*args):
return __libarchive.archive_write_open_fd(*args)
archive_write_open_fd = __libarchive.archive_write_open_fd
def archive_write_open_fd(arg1, _fd):
return __libarchive.archive_write_open_fd(arg1, _fd)


def archive_write_open_filename(*args):
return __libarchive.archive_write_open_filename(*args)
archive_write_open_filename = __libarchive.archive_write_open_filename
def archive_write_open_filename(arg1, _file):
return __libarchive.archive_write_open_filename(arg1, _file)


def archive_write_open_filename_w(*args):
return __libarchive.archive_write_open_filename_w(*args)
archive_write_open_filename_w = __libarchive.archive_write_open_filename_w
def archive_write_open_filename_w(arg1, _file):
return __libarchive.archive_write_open_filename_w(arg1, _file)


def archive_write_open_memory(*args):
return __libarchive.archive_write_open_memory(*args)
archive_write_open_memory = __libarchive.archive_write_open_memory
def archive_write_open_memory(arg1, _buffer, _buffSize, _used):
return __libarchive.archive_write_open_memory(arg1, _buffer, _buffSize, _used)


def archive_write_close(*args):
return __libarchive.archive_write_close(*args)
archive_write_close = __libarchive.archive_write_close
def archive_write_close(arg1):
return __libarchive.archive_write_close(arg1)


def archive_write_header(*args):
return __libarchive.archive_write_header(*args)
archive_write_header = __libarchive.archive_write_header
def archive_write_header(arg1, arg2):
return __libarchive.archive_write_header(arg1, arg2)


def archive_write_finish_entry(*args):
return __libarchive.archive_write_finish_entry(*args)
archive_write_finish_entry = __libarchive.archive_write_finish_entry
def archive_write_finish_entry(arg1):
return __libarchive.archive_write_finish_entry(arg1)


def archive_write_add_filter_bzip2(*args):
return __libarchive.archive_write_add_filter_bzip2(*args)
archive_write_add_filter_bzip2 = __libarchive.archive_write_add_filter_bzip2
def archive_write_add_filter_bzip2(arg1):
return __libarchive.archive_write_add_filter_bzip2(arg1)


def archive_write_add_filter_compress(*args):
return __libarchive.archive_write_add_filter_compress(*args)
archive_write_add_filter_compress = __libarchive.archive_write_add_filter_compress
def archive_write_add_filter_compress(arg1):
return __libarchive.archive_write_add_filter_compress(arg1)


def archive_write_add_filter_gzip(*args):
return __libarchive.archive_write_add_filter_gzip(*args)
archive_write_add_filter_gzip = __libarchive.archive_write_add_filter_gzip
def archive_write_add_filter_gzip(arg1):
return __libarchive.archive_write_add_filter_gzip(arg1)


def archive_write_add_filter_lzip(*args):
return __libarchive.archive_write_add_filter_lzip(*args)
archive_write_add_filter_lzip = __libarchive.archive_write_add_filter_lzip
def archive_write_add_filter_lzip(arg1):
return __libarchive.archive_write_add_filter_lzip(arg1)


def archive_write_add_filter_lzma(*args):
return __libarchive.archive_write_add_filter_lzma(*args)
archive_write_add_filter_lzma = __libarchive.archive_write_add_filter_lzma
def archive_write_add_filter_lzma(arg1):
return __libarchive.archive_write_add_filter_lzma(arg1)


def archive_write_add_filter_none(*args):
return __libarchive.archive_write_add_filter_none(*args)
archive_write_add_filter_none = __libarchive.archive_write_add_filter_none
def archive_write_add_filter_none(arg1):
return __libarchive.archive_write_add_filter_none(arg1)


def archive_write_add_filter_xz(*args):
return __libarchive.archive_write_add_filter_xz(*args)
archive_write_add_filter_xz = __libarchive.archive_write_add_filter_xz
def archive_write_add_filter_xz(arg1):
return __libarchive.archive_write_add_filter_xz(arg1)


def archive_write_set_format(*args):
return __libarchive.archive_write_set_format(*args)
archive_write_set_format = __libarchive.archive_write_set_format
def archive_write_set_format(arg1, format_code):
return __libarchive.archive_write_set_format(arg1, format_code)


def archive_write_set_format_by_name(*args):
return __libarchive.archive_write_set_format_by_name(*args)
archive_write_set_format_by_name = __libarchive.archive_write_set_format_by_name
def archive_write_set_format_by_name(arg1, name):
return __libarchive.archive_write_set_format_by_name(arg1, name)


def archive_write_set_format_ar_bsd(*args):
return __libarchive.archive_write_set_format_ar_bsd(*args)
archive_write_set_format_ar_bsd = __libarchive.archive_write_set_format_ar_bsd
def archive_write_set_format_ar_bsd(arg1):
return __libarchive.archive_write_set_format_ar_bsd(arg1)


def archive_write_set_format_ar_svr4(*args):
return __libarchive.archive_write_set_format_ar_svr4(*args)
archive_write_set_format_ar_svr4 = __libarchive.archive_write_set_format_ar_svr4
def archive_write_set_format_ar_svr4(arg1):
return __libarchive.archive_write_set_format_ar_svr4(arg1)


def archive_write_set_format_cpio(*args):
return __libarchive.archive_write_set_format_cpio(*args)
archive_write_set_format_cpio = __libarchive.archive_write_set_format_cpio
def archive_write_set_format_cpio(arg1):
return __libarchive.archive_write_set_format_cpio(arg1)


def archive_write_set_format_cpio_newc(*args):
return __libarchive.archive_write_set_format_cpio_newc(*args)
archive_write_set_format_cpio_newc = __libarchive.archive_write_set_format_cpio_newc
def archive_write_set_format_cpio_newc(arg1):
return __libarchive.archive_write_set_format_cpio_newc(arg1)


def archive_write_set_format_gnutar(*args):
return __libarchive.archive_write_set_format_gnutar(*args)
archive_write_set_format_gnutar = __libarchive.archive_write_set_format_gnutar
def archive_write_set_format_gnutar(arg1):
return __libarchive.archive_write_set_format_gnutar(arg1)


def archive_write_set_format_iso9660(*args):
return __libarchive.archive_write_set_format_iso9660(*args)
archive_write_set_format_iso9660 = __libarchive.archive_write_set_format_iso9660
def archive_write_set_format_iso9660(arg1):
return __libarchive.archive_write_set_format_iso9660(arg1)


def archive_write_set_format_pax(*args):
return __libarchive.archive_write_set_format_pax(*args)
archive_write_set_format_pax = __libarchive.archive_write_set_format_pax
def archive_write_set_format_pax(arg1):
return __libarchive.archive_write_set_format_pax(arg1)


def archive_write_set_format_pax_restricted(*args):
return __libarchive.archive_write_set_format_pax_restricted(*args)
archive_write_set_format_pax_restricted = __libarchive.archive_write_set_format_pax_restricted
def archive_write_set_format_pax_restricted(arg1):
return __libarchive.archive_write_set_format_pax_restricted(arg1)


def archive_write_set_format_shar(*args):
return __libarchive.archive_write_set_format_shar(*args)
archive_write_set_format_shar = __libarchive.archive_write_set_format_shar
def archive_write_set_format_shar(arg1):
return __libarchive.archive_write_set_format_shar(arg1)


def archive_write_set_format_shar_dump(*args):
return __libarchive.archive_write_set_format_shar_dump(*args)
archive_write_set_format_shar_dump = __libarchive.archive_write_set_format_shar_dump
def archive_write_set_format_shar_dump(arg1):
return __libarchive.archive_write_set_format_shar_dump(arg1)


def archive_write_set_format_ustar(*args):
return __libarchive.archive_write_set_format_ustar(*args)
archive_write_set_format_ustar = __libarchive.archive_write_set_format_ustar
def archive_write_set_format_ustar(arg1):
return __libarchive.archive_write_set_format_ustar(arg1)


def archive_write_set_format_xar(*args):
return __libarchive.archive_write_set_format_xar(*args)
archive_write_set_format_xar = __libarchive.archive_write_set_format_xar
def archive_write_set_format_xar(arg1):
return __libarchive.archive_write_set_format_xar(arg1)


def archive_write_set_format_zip(*args):
return __libarchive.archive_write_set_format_zip(*args)
archive_write_set_format_zip = __libarchive.archive_write_set_format_zip
def archive_write_set_format_zip(arg1):
return __libarchive.archive_write_set_format_zip(arg1)


def archive_entry_new(): def archive_entry_new():
return __libarchive.archive_entry_new()
archive_entry_new = __libarchive.archive_entry_new
return __libarchive.archive_entry_new()

def archive_entry_free(arg1):
return __libarchive.archive_entry_free(arg1)

def archive_entry_pathname(arg1):
return __libarchive.archive_entry_pathname(arg1)

def archive_entry_pathname_w(arg1):
return __libarchive.archive_entry_pathname_w(arg1)

def archive_entry_size(arg1):
return __libarchive.archive_entry_size(arg1)

def archive_entry_mtime(arg1):
return __libarchive.archive_entry_mtime(arg1)

def archive_entry_filetype(arg1):
return __libarchive.archive_entry_filetype(arg1)


def archive_entry_free(*args):
return __libarchive.archive_entry_free(*args)
archive_entry_free = __libarchive.archive_entry_free
def archive_entry_perm(arg1):
return __libarchive.archive_entry_perm(arg1)


def archive_entry_pathname(*args):
return __libarchive.archive_entry_pathname(*args)
archive_entry_pathname = __libarchive.archive_entry_pathname
def archive_entry_symlink(arg1):
return __libarchive.archive_entry_symlink(arg1)


def archive_entry_pathname_w(*args):
return __libarchive.archive_entry_pathname_w(*args)
archive_entry_pathname_w = __libarchive.archive_entry_pathname_w
def archive_entry_set_link(arg1, arg2):
return __libarchive.archive_entry_set_link(arg1, arg2)


def archive_entry_size(*args):
return __libarchive.archive_entry_size(*args)
archive_entry_size = __libarchive.archive_entry_size
def archive_entry_symlink_w(arg1):
return __libarchive.archive_entry_symlink_w(arg1)


def archive_entry_mtime(*args):
return __libarchive.archive_entry_mtime(*args)
archive_entry_mtime = __libarchive.archive_entry_mtime
def archive_read_disk_set_symlink_logical(arg1):
return __libarchive.archive_read_disk_set_symlink_logical(arg1)


def archive_entry_symlink(*args):
return __libarchive.archive_entry_symlink(*args)
archive_entry_symlink = __libarchive.archive_entry_symlink
def archive_read_disk_set_symlink_physical(arg1):
return __libarchive.archive_read_disk_set_symlink_physical(arg1)


def archive_entry_filetype(*args):
return __libarchive.archive_entry_filetype(*args)
archive_entry_filetype = __libarchive.archive_entry_filetype
def archive_read_disk_set_symlink_hybrid(arg1):
return __libarchive.archive_read_disk_set_symlink_hybrid(arg1)


def archive_entry_perm(*args):
return __libarchive.archive_entry_perm(*args)
archive_entry_perm = __libarchive.archive_entry_perm
def archive_entry_set_symlink(arg1, arg2):
return __libarchive.archive_entry_set_symlink(arg1, arg2)


def archive_entry_set_pathname(*args):
return __libarchive.archive_entry_set_pathname(*args)
archive_entry_set_pathname = __libarchive.archive_entry_set_pathname
def archive_entry_copy_symlink(arg1, arg2):
return __libarchive.archive_entry_copy_symlink(arg1, arg2)


def archive_entry_set_size(*args):
return __libarchive.archive_entry_set_size(*args)
archive_entry_set_size = __libarchive.archive_entry_set_size
def archive_entry_copy_symlink_w(arg1, arg2):
return __libarchive.archive_entry_copy_symlink_w(arg1, arg2)


def archive_entry_set_mtime(*args):
return __libarchive.archive_entry_set_mtime(*args)
archive_entry_set_mtime = __libarchive.archive_entry_set_mtime
def archive_entry_set_pathname(arg1, arg2):
return __libarchive.archive_entry_set_pathname(arg1, arg2)


def archive_entry_set_symlink(*args):
return __libarchive.archive_entry_set_symlink (*args)
archive_entry_set_symlink = __libarchive.archive_entry_set_symlink
def archive_entry_set_size(arg1, arg2):
return __libarchive.archive_entry_set_size(arg1, arg2)


def archive_entry_set_link(*args):
return __libarchive.archive_entry_set_link (*args)
archive_entry_set_link = __libarchive.archive_entry_set_link
def archive_entry_set_mtime(arg1, arg2, arg3):
return __libarchive.archive_entry_set_mtime(arg1, arg2, arg3)


def archive_entry_set_filetype(*args):
return __libarchive.archive_entry_set_filetype(*args)
archive_entry_set_filetype = __libarchive.archive_entry_set_filetype
def archive_entry_set_filetype(arg1, arg2):
return __libarchive.archive_entry_set_filetype(arg1, arg2)


def archive_entry_set_perm(*args):
return __libarchive.archive_entry_set_perm(*args)
archive_entry_set_perm = __libarchive.archive_entry_set_perm
def archive_entry_set_perm(arg1, arg2):
return __libarchive.archive_entry_set_perm(arg1, arg2)


def archive_errno(*args):
return __libarchive.archive_errno(*args)
archive_errno = __libarchive.archive_errno
def archive_errno(arg1):
return __libarchive.archive_errno(arg1)


def archive_error_string(*args):
return __libarchive.archive_error_string(*args)
archive_error_string = __libarchive.archive_error_string
def archive_error_string(arg1):
return __libarchive.archive_error_string(arg1)
ARCHIVE_VERSION_NUMBER = __libarchive.ARCHIVE_VERSION_NUMBER ARCHIVE_VERSION_NUMBER = __libarchive.ARCHIVE_VERSION_NUMBER
ARCHIVE_VERSION_STRING = __libarchive.ARCHIVE_VERSION_STRING ARCHIVE_VERSION_STRING = __libarchive.ARCHIVE_VERSION_STRING
ARCHIVE_EOF = __libarchive.ARCHIVE_EOF ARCHIVE_EOF = __libarchive.ARCHIVE_EOF
@@ -478,13 +403,10 @@ ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER = __libarchive.ARCHIVE_EXTRACT_NO_OVERWRITE_N
ARCHIVE_EXTRACT_SPARSE = __libarchive.ARCHIVE_EXTRACT_SPARSE ARCHIVE_EXTRACT_SPARSE = __libarchive.ARCHIVE_EXTRACT_SPARSE
ARCHIVE_EXTRACT_MAC_METADATA = __libarchive.ARCHIVE_EXTRACT_MAC_METADATA ARCHIVE_EXTRACT_MAC_METADATA = __libarchive.ARCHIVE_EXTRACT_MAC_METADATA


def archive_read_data_into_str(*args):
return __libarchive.archive_read_data_into_str(*args)
archive_read_data_into_str = __libarchive.archive_read_data_into_str
def archive_read_data_into_str(archive, len):
return __libarchive.archive_read_data_into_str(archive, len)


def archive_write_data_from_str(*args):
return __libarchive.archive_write_data_from_str(*args)
archive_write_data_from_str = __libarchive.archive_write_data_from_str
# This file is compatible with both classic and new-style classes.
def archive_write_data_from_str(archive, str):
return __libarchive.archive_write_data_from_str(archive, str)





+ 1430
- 1251
libarchive/_libarchive_wrap.c
File diff suppressed because it is too large
View File


Loading…
Cancel
Save