From a3ee73043c5dc7c28b5717fd971917627a7214f2 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 25 Jan 2009 20:30:53 +0000 Subject: * 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 --- camlibs/dimera/dimera3500.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'camlibs/dimera/dimera3500.c') diff --git a/camlibs/dimera/dimera3500.c b/camlibs/dimera/dimera3500.c index 42f0e40f7..20d52ea45 100644 --- a/camlibs/dimera/dimera3500.c +++ b/camlibs/dimera/dimera3500.c @@ -347,9 +347,8 @@ static int get_info_func (CameraFilesystem *fs, const char *folder, const char * info->preview.width = 64; info->preview.height = 48; - info->file.fields = GP_FILE_INFO_ALL; + info->file.fields = GP_FILE_INFO_TYPE|GP_FILE_INFO_PERMISSIONS|GP_FILE_INFO_WIDTH|GP_FILE_INFO_HEIGHT|GP_FILE_INFO_SIZE; strcpy(info->file.type, GP_MIME_PPM); - strcpy(info->file.name, filename); info->file.permissions = GP_FILE_PERM_READ; if (std_res) { @@ -398,9 +397,7 @@ static int camera_capture_preview(Camera *camera, CameraFile *file, GPContext *c data = Dimera_Preview( &size, camera, context); if (!data) return GP_ERROR; - gp_file_set_data_and_size (file, data, size); - - return GP_OK; + return gp_file_set_data_and_size (file, data, size); } static int camera_summary (Camera *camera, CameraText *summary, GPContext *context) { -- cgit v1.2.1