# 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_file.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_file', [dirname(__file__)])
        except ImportError:
            import _gphoto2_file
            return _gphoto2_file
        if fp is not None:
            try:
                _mod = imp.load_module('_gphoto2_file', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _gphoto2_file = swig_import_helper()
    del swig_import_helper
else:
    import _gphoto2_file
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


class CameraFile(object):
    """Proxy of C _CameraFile struct"""
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    def __init__(self): 
        """__init__(self) -> CameraFile"""
        _gphoto2_file.CameraFile_swiginit(self,_gphoto2_file.new_CameraFile())
    __swig_destroy__ = _gphoto2_file.delete_CameraFile
    def set_name(self, *args) -> "void" :
        """
        set_name(self, name)

        Parameters:
            name: char const *


        See also: gphoto2.gp_file_set_name
        """
        return _gphoto2_file.CameraFile_set_name(self, *args)

    def get_name(self, *args) -> "void" :
        """
        get_name(self, name)

        Parameters:
            name: char const **


        See also: gphoto2.gp_file_get_name
        """
        return _gphoto2_file.CameraFile_get_name(self, *args)

    def set_mime_type(self, *args) -> "void" :
        """
        set_mime_type(self, mime_type)

        Parameters:
            mime_type: char const *


        See also: gphoto2.gp_file_set_mime_type
        """
        return _gphoto2_file.CameraFile_set_mime_type(self, *args)

    def get_mime_type(self, *args) -> "void" :
        """
        get_mime_type(self, mime_type)

        Parameters:
            mime_type: char const **


        See also: gphoto2.gp_file_get_mime_type
        """
        return _gphoto2_file.CameraFile_get_mime_type(self, *args)

    def set_mtime(self, *args) -> "void" :
        """
        set_mtime(self, mtime)

        Parameters:
            mtime: time_t


        See also: gphoto2.gp_file_set_mtime
        """
        return _gphoto2_file.CameraFile_set_mtime(self, *args)

    def get_mtime(self, *args) -> "void" :
        """
        get_mtime(self, mtime)

        Parameters:
            mtime: time_t *


        See also: gphoto2.gp_file_get_mtime
        """
        return _gphoto2_file.CameraFile_get_mtime(self, *args)

    def detect_mime_type(self) -> "void" :
        """
        detect_mime_type(self)

        Parameters:
            self: struct _CameraFile *


        See also: gphoto2.gp_file_detect_mime_type
        """
        return _gphoto2_file.CameraFile_detect_mime_type(self)

    def adjust_name_for_mime_type(self) -> "void" :
        """
        adjust_name_for_mime_type(self)

        Parameters:
            self: struct _CameraFile *


        See also: gphoto2.gp_file_adjust_name_for_mime_type
        """
        return _gphoto2_file.CameraFile_adjust_name_for_mime_type(self)

    def get_name_by_type(self, *args) -> "void" :
        """
        get_name_by_type(self, basename, type, newname)

        Parameters:
            basename: char const *
            type: enum CameraFileType
            newname: char **


        See also: gphoto2.gp_file_get_name_by_type
        """
        return _gphoto2_file.CameraFile_get_name_by_type(self, *args)

    def set_data_and_size(self, *args) -> "void" :
        """
        set_data_and_size(self, data, size)

        Parameters:
            data: char *
            size: unsigned long


        See also: gphoto2.gp_file_set_data_and_size
        """
        return _gphoto2_file.CameraFile_set_data_and_size(self, *args)

    def get_data_and_size(self) -> "void" :
        """
        get_data_and_size(self)

        Parameters:
            self: struct _CameraFile *


        See also: gphoto2.gp_file_get_data_and_size
        """
        return _gphoto2_file.CameraFile_get_data_and_size(self)

    def open(self, *args) -> "void" :
        """
        open(self, filename)

        Parameters:
            filename: char const *


        See also: gphoto2.gp_file_open
        """
        return _gphoto2_file.CameraFile_open(self, *args)

    def save(self, *args) -> "void" :
        """
        save(self, filename)

        Parameters:
            filename: char const *


        See also: gphoto2.gp_file_save
        """
        return _gphoto2_file.CameraFile_save(self, *args)

    def clean(self) -> "void" :
        """
        clean(self)

        Parameters:
            self: struct _CameraFile *


        See also: gphoto2.gp_file_clean
        """
        return _gphoto2_file.CameraFile_clean(self)

    def copy(self, *args) -> "void" :
        """
        copy(self, source)

        Parameters:
            source: CameraFile *


        See also: gphoto2.gp_file_copy
        """
        return _gphoto2_file.CameraFile_copy(self, *args)

    def append(self, *args) -> "void" :
        """
        append(self, data, size)

        Parameters:
            data: char const *
            size: unsigned long


        See also: gphoto2.gp_file_append
        """
        return _gphoto2_file.CameraFile_append(self, *args)

    def slurp(self, *args) -> "void" :
        """
        slurp(self, data, size, readlen)

        Parameters:
            data: char *
            size: size_t
            readlen: size_t *


        See also: gphoto2.gp_file_slurp
        """
        return _gphoto2_file.CameraFile_slurp(self, *args)

CameraFile.set_name = new_instancemethod(_gphoto2_file.CameraFile_set_name,None,CameraFile)
CameraFile.get_name = new_instancemethod(_gphoto2_file.CameraFile_get_name,None,CameraFile)
CameraFile.set_mime_type = new_instancemethod(_gphoto2_file.CameraFile_set_mime_type,None,CameraFile)
CameraFile.get_mime_type = new_instancemethod(_gphoto2_file.CameraFile_get_mime_type,None,CameraFile)
CameraFile.set_mtime = new_instancemethod(_gphoto2_file.CameraFile_set_mtime,None,CameraFile)
CameraFile.get_mtime = new_instancemethod(_gphoto2_file.CameraFile_get_mtime,None,CameraFile)
CameraFile.detect_mime_type = new_instancemethod(_gphoto2_file.CameraFile_detect_mime_type,None,CameraFile)
CameraFile.adjust_name_for_mime_type = new_instancemethod(_gphoto2_file.CameraFile_adjust_name_for_mime_type,None,CameraFile)
CameraFile.get_name_by_type = new_instancemethod(_gphoto2_file.CameraFile_get_name_by_type,None,CameraFile)
CameraFile.set_data_and_size = new_instancemethod(_gphoto2_file.CameraFile_set_data_and_size,None,CameraFile)
CameraFile.get_data_and_size = new_instancemethod(_gphoto2_file.CameraFile_get_data_and_size,None,CameraFile)
CameraFile.open = new_instancemethod(_gphoto2_file.CameraFile_open,None,CameraFile)
CameraFile.save = new_instancemethod(_gphoto2_file.CameraFile_save,None,CameraFile)
CameraFile.clean = new_instancemethod(_gphoto2_file.CameraFile_clean,None,CameraFile)
CameraFile.copy = new_instancemethod(_gphoto2_file.CameraFile_copy,None,CameraFile)
CameraFile.append = new_instancemethod(_gphoto2_file.CameraFile_append,None,CameraFile)
CameraFile.slurp = new_instancemethod(_gphoto2_file.CameraFile_slurp,None,CameraFile)
CameraFile_swigregister = _gphoto2_file.CameraFile_swigregister
CameraFile_swigregister(CameraFile)

GP_MIME_WAV = _gphoto2_file.GP_MIME_WAV
GP_MIME_RAW = _gphoto2_file.GP_MIME_RAW
GP_MIME_PNG = _gphoto2_file.GP_MIME_PNG
GP_MIME_PGM = _gphoto2_file.GP_MIME_PGM
GP_MIME_PPM = _gphoto2_file.GP_MIME_PPM
GP_MIME_PNM = _gphoto2_file.GP_MIME_PNM
GP_MIME_JPEG = _gphoto2_file.GP_MIME_JPEG
GP_MIME_TIFF = _gphoto2_file.GP_MIME_TIFF
GP_MIME_BMP = _gphoto2_file.GP_MIME_BMP
GP_MIME_QUICKTIME = _gphoto2_file.GP_MIME_QUICKTIME
GP_MIME_AVI = _gphoto2_file.GP_MIME_AVI
GP_MIME_CRW = _gphoto2_file.GP_MIME_CRW
GP_MIME_CR2 = _gphoto2_file.GP_MIME_CR2
GP_MIME_UNKNOWN = _gphoto2_file.GP_MIME_UNKNOWN
GP_MIME_EXIF = _gphoto2_file.GP_MIME_EXIF
GP_MIME_MP3 = _gphoto2_file.GP_MIME_MP3
GP_MIME_OGG = _gphoto2_file.GP_MIME_OGG
GP_MIME_WMA = _gphoto2_file.GP_MIME_WMA
GP_MIME_ASF = _gphoto2_file.GP_MIME_ASF
GP_MIME_MPEG = _gphoto2_file.GP_MIME_MPEG
GP_MIME_AVCHD = _gphoto2_file.GP_MIME_AVCHD
GP_MIME_RW2 = _gphoto2_file.GP_MIME_RW2
GP_MIME_ARW = _gphoto2_file.GP_MIME_ARW
GP_FILE_TYPE_PREVIEW = _gphoto2_file.GP_FILE_TYPE_PREVIEW
GP_FILE_TYPE_NORMAL = _gphoto2_file.GP_FILE_TYPE_NORMAL
GP_FILE_TYPE_RAW = _gphoto2_file.GP_FILE_TYPE_RAW
GP_FILE_TYPE_AUDIO = _gphoto2_file.GP_FILE_TYPE_AUDIO
GP_FILE_TYPE_EXIF = _gphoto2_file.GP_FILE_TYPE_EXIF
GP_FILE_TYPE_METADATA = _gphoto2_file.GP_FILE_TYPE_METADATA
GP_FILE_ACCESSTYPE_MEMORY = _gphoto2_file.GP_FILE_ACCESSTYPE_MEMORY
GP_FILE_ACCESSTYPE_FD = _gphoto2_file.GP_FILE_ACCESSTYPE_FD
GP_FILE_ACCESSTYPE_HANDLER = _gphoto2_file.GP_FILE_ACCESSTYPE_HANDLER

def gp_file_new() -> "CameraFile **" :
  """gp_file_new() -> int"""
  return _gphoto2_file.gp_file_new()

def gp_file_new_from_fd(*args) -> "CameraFile **" :
  """
    gp_file_new_from_fd(fd) -> int

    Parameters:
        fd: int

    """
  return _gphoto2_file.gp_file_new_from_fd(*args)

def gp_file_new_from_handler(*args) -> "CameraFile **" :
  """
    gp_file_new_from_handler(handler, priv) -> int

    Parameters:
        handler: CameraFileHandler *
        priv: void *

    """
  return _gphoto2_file.gp_file_new_from_handler(*args)

def gp_file_ref(*args) -> "int" :
  """
    gp_file_ref(file) -> int

    Parameters:
        file: CameraFile *

    """
  return _gphoto2_file.gp_file_ref(*args)

def gp_file_unref(*args) -> "int" :
  """
    gp_file_unref(file) -> int

    Parameters:
        file: CameraFile *

    """
  return _gphoto2_file.gp_file_unref(*args)

def gp_file_free(*args) -> "int" :
  """
    gp_file_free(file) -> int

    Parameters:
        file: CameraFile *

    """
  return _gphoto2_file.gp_file_free(*args)

def gp_file_set_name(*args) -> "int" :
  """
    gp_file_set_name(file, name) -> int

    Parameters:
        file: CameraFile *
        name: char const *


    See also: gphoto2.CameraFile.set_name
    """
  return _gphoto2_file.gp_file_set_name(*args)

def gp_file_get_name(*args) -> "int" :
  """
    gp_file_get_name(file, name) -> int

    Parameters:
        file: CameraFile *
        name: char const **


    See also: gphoto2.CameraFile.get_name
    """
  return _gphoto2_file.gp_file_get_name(*args)

def gp_file_set_mime_type(*args) -> "int" :
  """
    gp_file_set_mime_type(file, mime_type) -> int

    Parameters:
        file: CameraFile *
        mime_type: char const *


    See also: gphoto2.CameraFile.set_mime_type
    """
  return _gphoto2_file.gp_file_set_mime_type(*args)

def gp_file_get_mime_type(*args) -> "int" :
  """
    gp_file_get_mime_type(file, mime_type) -> int

    Parameters:
        file: CameraFile *
        mime_type: char const **


    See also: gphoto2.CameraFile.get_mime_type
    """
  return _gphoto2_file.gp_file_get_mime_type(*args)

def gp_file_set_mtime(*args) -> "int" :
  """
    gp_file_set_mtime(file, mtime) -> int

    Parameters:
        file: CameraFile *
        mtime: time_t


    See also: gphoto2.CameraFile.set_mtime
    """
  return _gphoto2_file.gp_file_set_mtime(*args)

def gp_file_get_mtime(*args) -> "int" :
  """
    gp_file_get_mtime(file, mtime) -> int

    Parameters:
        file: CameraFile *
        mtime: time_t *


    See also: gphoto2.CameraFile.get_mtime
    """
  return _gphoto2_file.gp_file_get_mtime(*args)

def gp_file_detect_mime_type(*args) -> "int" :
  """
    gp_file_detect_mime_type(file) -> int

    Parameters:
        file: CameraFile *


    See also: gphoto2.CameraFile.detect_mime_type
    """
  return _gphoto2_file.gp_file_detect_mime_type(*args)

def gp_file_adjust_name_for_mime_type(*args) -> "int" :
  """
    gp_file_adjust_name_for_mime_type(file) -> int

    Parameters:
        file: CameraFile *


    See also: gphoto2.CameraFile.adjust_name_for_mime_type
    """
  return _gphoto2_file.gp_file_adjust_name_for_mime_type(*args)

def gp_file_get_name_by_type(*args) -> "int" :
  """
    gp_file_get_name_by_type(file, basename, type, newname) -> int

    Parameters:
        file: CameraFile *
        basename: char const *
        type: enum CameraFileType
        newname: char **


    See also: gphoto2.CameraFile.get_name_by_type
    """
  return _gphoto2_file.gp_file_get_name_by_type(*args)

def gp_file_set_data_and_size(*args) -> "int" :
  """
    gp_file_set_data_and_size(arg1, data, size) -> int

    Parameters:
        arg1: CameraFile *
        data: char *
        size: unsigned long


    See also: gphoto2.CameraFile.set_data_and_size
    """
  return _gphoto2_file.gp_file_set_data_and_size(*args)

def gp_file_get_data_and_size(*args) -> "unsigned long *" :
  """
    gp_file_get_data_and_size(arg1) -> int

    Parameters:
        arg1: CameraFile *


    See also: gphoto2.CameraFile.get_data_and_size
    """
  return _gphoto2_file.gp_file_get_data_and_size(*args)

def gp_file_open(*args) -> "int" :
  """
    gp_file_open(file, filename) -> int

    Parameters:
        file: CameraFile *
        filename: char const *


    See also: gphoto2.CameraFile.open
    """
  return _gphoto2_file.gp_file_open(*args)

def gp_file_save(*args) -> "int" :
  """
    gp_file_save(file, filename) -> int

    Parameters:
        file: CameraFile *
        filename: char const *


    See also: gphoto2.CameraFile.save
    """
  return _gphoto2_file.gp_file_save(*args)

def gp_file_clean(*args) -> "int" :
  """
    gp_file_clean(file) -> int

    Parameters:
        file: CameraFile *


    See also: gphoto2.CameraFile.clean
    """
  return _gphoto2_file.gp_file_clean(*args)

def gp_file_copy(*args) -> "int" :
  """
    gp_file_copy(destination, source) -> int

    Parameters:
        destination: CameraFile *
        source: CameraFile *


    See also: gphoto2.CameraFile.copy
    """
  return _gphoto2_file.gp_file_copy(*args)

def gp_file_append(*args) -> "int" :
  """
    gp_file_append(arg1, data, size) -> int

    Parameters:
        arg1: CameraFile *
        data: char const *
        size: unsigned long


    See also: gphoto2.CameraFile.append
    """
  return _gphoto2_file.gp_file_append(*args)

def gp_file_slurp(*args) -> "int" :
  """
    gp_file_slurp(arg1, data, size, readlen) -> int

    Parameters:
        arg1: CameraFile *
        data: char *
        size: size_t
        readlen: size_t *


    See also: gphoto2.CameraFile.slurp
    """
  return _gphoto2_file.gp_file_slurp(*args)


