# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.





from sys import version_info
if version_info >= (3,0,0):
    new_instancemethod = lambda func, inst, cls: _gphoto2_filesys.SWIG_PyInstanceMethod_New(func)
else:
    from new import instancemethod as new_instancemethod
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('_gphoto2_filesys', [dirname(__file__)])
        except ImportError:
            import _gphoto2_filesys
            return _gphoto2_filesys
        if fp is not None:
            try:
                _mod = imp.load_module('_gphoto2_filesys', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _gphoto2_filesys = swig_import_helper()
    del swig_import_helper
else:
    import _gphoto2_filesys
del version_info
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)

def _swig_repr(self):
    try: strthis = "proxy of " + self.this.__repr__()
    except: 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_method(set):
    def set_attr(self,name,value):
        if (name == "thisown"): return self.this.own(value)
        if hasattr(self,name) or (name == "this"):
            set(self,name,value)
        else:
            raise AttributeError("You cannot add attributes to %s" % self)
    return set_attr


import gphoto2.gphoto2_context
import gphoto2.gphoto2_list
import gphoto2.gphoto2_file
GP_FILE_INFO_NONE = _gphoto2_filesys.GP_FILE_INFO_NONE
GP_FILE_INFO_TYPE = _gphoto2_filesys.GP_FILE_INFO_TYPE
GP_FILE_INFO_SIZE = _gphoto2_filesys.GP_FILE_INFO_SIZE
GP_FILE_INFO_WIDTH = _gphoto2_filesys.GP_FILE_INFO_WIDTH
GP_FILE_INFO_HEIGHT = _gphoto2_filesys.GP_FILE_INFO_HEIGHT
GP_FILE_INFO_PERMISSIONS = _gphoto2_filesys.GP_FILE_INFO_PERMISSIONS
GP_FILE_INFO_STATUS = _gphoto2_filesys.GP_FILE_INFO_STATUS
GP_FILE_INFO_MTIME = _gphoto2_filesys.GP_FILE_INFO_MTIME
GP_FILE_INFO_ALL = _gphoto2_filesys.GP_FILE_INFO_ALL
GP_FILE_PERM_NONE = _gphoto2_filesys.GP_FILE_PERM_NONE
GP_FILE_PERM_READ = _gphoto2_filesys.GP_FILE_PERM_READ
GP_FILE_PERM_DELETE = _gphoto2_filesys.GP_FILE_PERM_DELETE
GP_FILE_PERM_ALL = _gphoto2_filesys.GP_FILE_PERM_ALL
GP_FILE_STATUS_NOT_DOWNLOADED = _gphoto2_filesys.GP_FILE_STATUS_NOT_DOWNLOADED
GP_FILE_STATUS_DOWNLOADED = _gphoto2_filesys.GP_FILE_STATUS_DOWNLOADED
class CameraFileInfoFile(object):
    """Proxy of C _CameraFileInfoFile struct"""
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
    __repr__ = _swig_repr
    fields = _swig_property(_gphoto2_filesys.CameraFileInfoFile_fields_get)
    status = _swig_property(_gphoto2_filesys.CameraFileInfoFile_status_get)
    size = _swig_property(_gphoto2_filesys.CameraFileInfoFile_size_get)
    type = _swig_property(_gphoto2_filesys.CameraFileInfoFile_type_get)
    width = _swig_property(_gphoto2_filesys.CameraFileInfoFile_width_get)
    height = _swig_property(_gphoto2_filesys.CameraFileInfoFile_height_get)
    permissions = _swig_property(_gphoto2_filesys.CameraFileInfoFile_permissions_get)
    mtime = _swig_property(_gphoto2_filesys.CameraFileInfoFile_mtime_get)
    __swig_destroy__ = _gphoto2_filesys.delete_CameraFileInfoFile
CameraFileInfoFile_swigregister = _gphoto2_filesys.CameraFileInfoFile_swigregister
CameraFileInfoFile_swigregister(CameraFileInfoFile)

class CameraFileInfoPreview(object):
    """Proxy of C _CameraFileInfoPreview struct"""
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
    __repr__ = _swig_repr
    fields = _swig_property(_gphoto2_filesys.CameraFileInfoPreview_fields_get)
    status = _swig_property(_gphoto2_filesys.CameraFileInfoPreview_status_get)
    size = _swig_property(_gphoto2_filesys.CameraFileInfoPreview_size_get)
    type = _swig_property(_gphoto2_filesys.CameraFileInfoPreview_type_get)
    width = _swig_property(_gphoto2_filesys.CameraFileInfoPreview_width_get)
    height = _swig_property(_gphoto2_filesys.CameraFileInfoPreview_height_get)
    __swig_destroy__ = _gphoto2_filesys.delete_CameraFileInfoPreview
CameraFileInfoPreview_swigregister = _gphoto2_filesys.CameraFileInfoPreview_swigregister
CameraFileInfoPreview_swigregister(CameraFileInfoPreview)

class CameraFileInfoAudio(object):
    """Proxy of C _CameraFileInfoAudio struct"""
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
    __repr__ = _swig_repr
    fields = _swig_property(_gphoto2_filesys.CameraFileInfoAudio_fields_get)
    status = _swig_property(_gphoto2_filesys.CameraFileInfoAudio_status_get)
    size = _swig_property(_gphoto2_filesys.CameraFileInfoAudio_size_get)
    type = _swig_property(_gphoto2_filesys.CameraFileInfoAudio_type_get)
    __swig_destroy__ = _gphoto2_filesys.delete_CameraFileInfoAudio
CameraFileInfoAudio_swigregister = _gphoto2_filesys.CameraFileInfoAudio_swigregister
CameraFileInfoAudio_swigregister(CameraFileInfoAudio)

class CameraFileInfo(object):
    """Proxy of C _CameraFileInfo struct"""
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
    __repr__ = _swig_repr
    preview = _swig_property(_gphoto2_filesys.CameraFileInfo_preview_get)
    file = _swig_property(_gphoto2_filesys.CameraFileInfo_file_get)
    audio = _swig_property(_gphoto2_filesys.CameraFileInfo_audio_get)
    __swig_destroy__ = _gphoto2_filesys.delete_CameraFileInfo
CameraFileInfo_swigregister = _gphoto2_filesys.CameraFileInfo_swigregister
CameraFileInfo_swigregister(CameraFileInfo)

GP_STORAGEINFO_BASE = _gphoto2_filesys.GP_STORAGEINFO_BASE
GP_STORAGEINFO_LABEL = _gphoto2_filesys.GP_STORAGEINFO_LABEL
GP_STORAGEINFO_DESCRIPTION = _gphoto2_filesys.GP_STORAGEINFO_DESCRIPTION
GP_STORAGEINFO_ACCESS = _gphoto2_filesys.GP_STORAGEINFO_ACCESS
GP_STORAGEINFO_STORAGETYPE = _gphoto2_filesys.GP_STORAGEINFO_STORAGETYPE
GP_STORAGEINFO_FILESYSTEMTYPE = _gphoto2_filesys.GP_STORAGEINFO_FILESYSTEMTYPE
GP_STORAGEINFO_MAXCAPACITY = _gphoto2_filesys.GP_STORAGEINFO_MAXCAPACITY
GP_STORAGEINFO_FREESPACEKBYTES = _gphoto2_filesys.GP_STORAGEINFO_FREESPACEKBYTES
GP_STORAGEINFO_FREESPACEIMAGES = _gphoto2_filesys.GP_STORAGEINFO_FREESPACEIMAGES
GP_STORAGEINFO_ST_UNKNOWN = _gphoto2_filesys.GP_STORAGEINFO_ST_UNKNOWN
GP_STORAGEINFO_ST_FIXED_ROM = _gphoto2_filesys.GP_STORAGEINFO_ST_FIXED_ROM
GP_STORAGEINFO_ST_REMOVABLE_ROM = _gphoto2_filesys.GP_STORAGEINFO_ST_REMOVABLE_ROM
GP_STORAGEINFO_ST_FIXED_RAM = _gphoto2_filesys.GP_STORAGEINFO_ST_FIXED_RAM
GP_STORAGEINFO_ST_REMOVABLE_RAM = _gphoto2_filesys.GP_STORAGEINFO_ST_REMOVABLE_RAM
GP_STORAGEINFO_AC_READWRITE = _gphoto2_filesys.GP_STORAGEINFO_AC_READWRITE
GP_STORAGEINFO_AC_READONLY = _gphoto2_filesys.GP_STORAGEINFO_AC_READONLY
GP_STORAGEINFO_AC_READONLY_WITH_DELETE = _gphoto2_filesys.GP_STORAGEINFO_AC_READONLY_WITH_DELETE
GP_STORAGEINFO_FST_UNDEFINED = _gphoto2_filesys.GP_STORAGEINFO_FST_UNDEFINED
GP_STORAGEINFO_FST_GENERICFLAT = _gphoto2_filesys.GP_STORAGEINFO_FST_GENERICFLAT
GP_STORAGEINFO_FST_GENERICHIERARCHICAL = _gphoto2_filesys.GP_STORAGEINFO_FST_GENERICHIERARCHICAL
GP_STORAGEINFO_FST_DCF = _gphoto2_filesys.GP_STORAGEINFO_FST_DCF
class CameraStorageInformation(object):
    """Proxy of C _CameraStorageInformation struct"""
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
    __repr__ = _swig_repr
    fields = _swig_property(_gphoto2_filesys.CameraStorageInformation_fields_get)
    basedir = _swig_property(_gphoto2_filesys.CameraStorageInformation_basedir_get)
    label = _swig_property(_gphoto2_filesys.CameraStorageInformation_label_get)
    description = _swig_property(_gphoto2_filesys.CameraStorageInformation_description_get)
    type = _swig_property(_gphoto2_filesys.CameraStorageInformation_type_get)
    fstype = _swig_property(_gphoto2_filesys.CameraStorageInformation_fstype_get)
    access = _swig_property(_gphoto2_filesys.CameraStorageInformation_access_get)
    capacitykbytes = _swig_property(_gphoto2_filesys.CameraStorageInformation_capacitykbytes_get)
    freekbytes = _swig_property(_gphoto2_filesys.CameraStorageInformation_freekbytes_get)
    freeimages = _swig_property(_gphoto2_filesys.CameraStorageInformation_freeimages_get)
    __swig_destroy__ = _gphoto2_filesys.delete_CameraStorageInformation
CameraStorageInformation_swigregister = _gphoto2_filesys.CameraStorageInformation_swigregister
CameraStorageInformation_swigregister(CameraStorageInformation)


def gp_filesystem_new(*args):
  """
    gp_filesystem_new(fs) -> int

    Parameters:
        fs: CameraFilesystem **

    """
  return _gphoto2_filesys.gp_filesystem_new(*args)

def gp_filesystem_free(*args):
  """
    gp_filesystem_free(fs) -> int

    Parameters:
        fs: CameraFilesystem *

    """
  return _gphoto2_filesys.gp_filesystem_free(*args)

def gp_filesystem_append(*args):
  """
    gp_filesystem_append(fs, folder, filename, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        filename: char const *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_append(*args)

def gp_filesystem_set_info_noop(*args):
  """
    gp_filesystem_set_info_noop(fs, folder, filename, info, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        filename: char const *
        info: CameraFileInfo
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_set_info_noop(*args)

def gp_filesystem_set_file_noop(*args):
  """
    gp_filesystem_set_file_noop(fs, folder, filename, type, file, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        filename: char const *
        type: enum CameraFileType
        file: CameraFile *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_set_file_noop(*args)

def gp_filesystem_delete_file_noop(*args):
  """
    gp_filesystem_delete_file_noop(fs, folder, filename, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        filename: char const *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_delete_file_noop(*args)

def gp_filesystem_reset(*args):
  """
    gp_filesystem_reset(fs) -> int

    Parameters:
        fs: CameraFilesystem *

    """
  return _gphoto2_filesys.gp_filesystem_reset(*args)

def gp_filesystem_count(*args):
  """
    gp_filesystem_count(fs, folder, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_count(*args)

def gp_filesystem_name(*args):
  """
    gp_filesystem_name(fs, folder, filenumber, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        filenumber: int
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_name(*args)

def gp_filesystem_get_folder(*args):
  """
    gp_filesystem_get_folder(fs, filename, context) -> int

    Parameters:
        fs: CameraFilesystem *
        filename: char const *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_get_folder(*args)

def gp_filesystem_number(*args):
  """
    gp_filesystem_number(fs, folder, filename, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        filename: char const *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_number(*args)

def gp_filesystem_list_files(*args):
  """
    gp_filesystem_list_files(fs, folder, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_list_files(*args)

def gp_filesystem_list_folders(*args):
  """
    gp_filesystem_list_folders(fs, folder, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_list_folders(*args)

def gp_filesystem_get_info(*args):
  """
    gp_filesystem_get_info(fs, folder, filename, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        filename: char const *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_get_info(*args)

def gp_filesystem_set_info(*args):
  """
    gp_filesystem_set_info(fs, folder, filename, info, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        filename: char const *
        info: CameraFileInfo
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_set_info(*args)

def gp_filesystem_get_file(*args):
  """
    gp_filesystem_get_file(fs, folder, filename, type, file, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        filename: char const *
        type: enum CameraFileType
        file: CameraFile *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_get_file(*args)

def gp_filesystem_read_file(*args):
  """
    gp_filesystem_read_file(fs, folder, filename, type, offset, buf, size, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        filename: char const *
        type: enum CameraFileType
        offset: uint64_t
        buf: char *
        size: uint64_t *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_read_file(*args)

def gp_filesystem_delete_file(*args):
  """
    gp_filesystem_delete_file(fs, folder, filename, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        filename: char const *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_delete_file(*args)
class _CameraFilesystemFuncs(object):
    """Proxy of C _CameraFilesystemFuncs struct"""
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
    __repr__ = _swig_repr
    file_list_func = _swig_property(_gphoto2_filesys._CameraFilesystemFuncs_file_list_func_get)
    folder_list_func = _swig_property(_gphoto2_filesys._CameraFilesystemFuncs_folder_list_func_get)
    put_file_func = _swig_property(_gphoto2_filesys._CameraFilesystemFuncs_put_file_func_get)
    delete_all_func = _swig_property(_gphoto2_filesys._CameraFilesystemFuncs_delete_all_func_get)
    get_info_func = _swig_property(_gphoto2_filesys._CameraFilesystemFuncs_get_info_func_get)
    set_info_func = _swig_property(_gphoto2_filesys._CameraFilesystemFuncs_set_info_func_get)
    make_dir_func = _swig_property(_gphoto2_filesys._CameraFilesystemFuncs_make_dir_func_get)
    remove_dir_func = _swig_property(_gphoto2_filesys._CameraFilesystemFuncs_remove_dir_func_get)
    get_file_func = _swig_property(_gphoto2_filesys._CameraFilesystemFuncs_get_file_func_get)
    read_file_func = _swig_property(_gphoto2_filesys._CameraFilesystemFuncs_read_file_func_get)
    del_file_func = _swig_property(_gphoto2_filesys._CameraFilesystemFuncs_del_file_func_get)
    storage_info_func = _swig_property(_gphoto2_filesys._CameraFilesystemFuncs_storage_info_func_get)
    unused = _swig_property(_gphoto2_filesys._CameraFilesystemFuncs_unused_get)
    __swig_destroy__ = _gphoto2_filesys.delete__CameraFilesystemFuncs
_CameraFilesystemFuncs_swigregister = _gphoto2_filesys._CameraFilesystemFuncs_swigregister
_CameraFilesystemFuncs_swigregister(_CameraFilesystemFuncs)


def gp_filesystem_set_funcs(*args):
  """
    gp_filesystem_set_funcs(fs, funcs, data) -> int

    Parameters:
        fs: CameraFilesystem *
        funcs: CameraFilesystemFuncs *
        data: void *

    """
  return _gphoto2_filesys.gp_filesystem_set_funcs(*args)

def gp_filesystem_put_file(*args):
  """
    gp_filesystem_put_file(fs, folder, filename, type, file, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        filename: char const *
        type: enum CameraFileType
        file: CameraFile *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_put_file(*args)

def gp_filesystem_delete_all(*args):
  """
    gp_filesystem_delete_all(fs, folder, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_delete_all(*args)

def gp_filesystem_make_dir(*args):
  """
    gp_filesystem_make_dir(fs, folder, name, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        name: char const *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_make_dir(*args)

def gp_filesystem_remove_dir(*args):
  """
    gp_filesystem_remove_dir(fs, folder, name, context) -> int

    Parameters:
        fs: CameraFilesystem *
        folder: char const *
        name: char const *
        context: Context *

    """
  return _gphoto2_filesys.gp_filesystem_remove_dir(*args)

def gp_filesystem_dump(*args):
  """
    gp_filesystem_dump(fs) -> int

    Parameters:
        fs: CameraFilesystem *

    """
  return _gphoto2_filesys.gp_filesystem_dump(*args)


