diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2009-01-25 20:30:53 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2009-01-25 20:30:53 +0000 |
commit | a3ee73043c5dc7c28b5717fd971917627a7214f2 (patch) | |
tree | 4249bb9b1b0debbe19c6df749f8d045bcc39a055 /gphoto2 | |
parent | ccd327a379d7885389f57f0e8304c4cce948921f (diff) | |
download | libgphoto2-a3ee73043c5dc7c28b5717fd971917627a7214f2.tar.gz |
* removed CameraFileInfoFile.name, adjusted users
and callers.
* added filename argument to put_file_func,
set_info_noop and set_file_noop functions.
adjusted all camlibs
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11773 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'gphoto2')
-rw-r--r-- | gphoto2/gphoto2-camera.h | 3 | ||||
-rw-r--r-- | gphoto2/gphoto2-filesys.h | 11 |
2 files changed, 8 insertions, 6 deletions
diff --git a/gphoto2/gphoto2-camera.h b/gphoto2/gphoto2-camera.h index a16e6d71b..2d19bc215 100644 --- a/gphoto2/gphoto2-camera.h +++ b/gphoto2/gphoto2-camera.h @@ -335,7 +335,8 @@ int gp_camera_folder_list_folders (Camera *camera, const char *folder, CameraList *list, GPContext *context); int gp_camera_folder_delete_all (Camera *camera, const char *folder, GPContext *context); -int gp_camera_folder_put_file (Camera *camera, const char *folder, +int gp_camera_folder_put_file (Camera *camera, + const char *folder, const char *filename, CameraFile *file, GPContext *context); int gp_camera_folder_make_dir (Camera *camera, const char *folder, const char *name, GPContext *context); diff --git a/gphoto2/gphoto2-filesys.h b/gphoto2/gphoto2-filesys.h index c07b44c37..6633c93c8 100644 --- a/gphoto2/gphoto2-filesys.h +++ b/gphoto2/gphoto2-filesys.h @@ -54,7 +54,6 @@ extern "C" { typedef enum { GP_FILE_INFO_NONE = 0, /**< \brief No fields set. */ GP_FILE_INFO_TYPE = 1 << 0, /**< \brief The MIME type is set. */ - GP_FILE_INFO_NAME = 1 << 1, /**< \brief The name is set. */ GP_FILE_INFO_SIZE = 1 << 2, /**< \brief The filesize is set. */ GP_FILE_INFO_WIDTH = 1 << 3, /**< \brief The width is set. */ GP_FILE_INFO_HEIGHT = 1 << 4, /**< \brief The height is set. */ @@ -99,7 +98,6 @@ typedef struct _CameraFileInfoFile { char type[64]; /**< \brief MIME type of the file. */ uint32_t width; /**< \brief Height of the file. */ uint32_t height; /**< \brief Width of the file. */ - char name[64]; /**< \brief Filename of the file. */ CameraFilePermissions permissions;/**< \brief Permissions of the file. */ time_t mtime; /**< \brief Modification time of the file. */ } CameraFileInfoFile; @@ -240,9 +238,11 @@ int gp_filesystem_free (CameraFilesystem *fs); /* Manual editing */ int gp_filesystem_append (CameraFilesystem *fs, const char *folder, const char *filename, GPContext *context); -int gp_filesystem_set_info_noop (CameraFilesystem *fs, const char *folder, +int gp_filesystem_set_info_noop (CameraFilesystem *fs, + const char *folder, const char *filename, CameraFileInfo info, GPContext *context); -int gp_filesystem_set_file_noop (CameraFilesystem *fs, const char *folder, +int gp_filesystem_set_file_noop (CameraFilesystem *fs, + const char *folder, const char *filename, CameraFile *file, GPContext *context); int gp_filesystem_delete_file_noop (CameraFilesystem *fs, const char *folder, const char *filename, GPContext *context); @@ -318,6 +318,7 @@ int gp_filesystem_delete_file (CameraFilesystem *fs, const char *folder, /* Folders */ typedef int (*CameraFilesystemPutFileFunc) (CameraFilesystem *fs, const char *folder, + const char *filename, CameraFile *file, void *data, GPContext *context); typedef int (*CameraFilesystemDeleteAllFunc) (CameraFilesystem *fs, @@ -365,7 +366,7 @@ struct _CameraFilesystemFuncs { int gp_filesystem_set_funcs (CameraFilesystem *fs, CameraFilesystemFuncs *funcs, void *data); -int gp_filesystem_put_file (CameraFilesystem *fs, const char *folder, +int gp_filesystem_put_file (CameraFilesystem *fs, const char *folder, const char *filename, CameraFile *file, GPContext *context); int gp_filesystem_delete_all (CameraFilesystem *fs, const char *folder, GPContext *context); |