diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2009-02-16 08:09:49 +0000 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2009-02-16 08:09:49 +0000 |
commit | bb3d18289e752db9dff5f7e60e5368f46bdd1a8a (patch) | |
tree | 8b96a77cc35ca978600cbe450a0503d3dd6dc5aa /camlibs/jl2005a | |
parent | 2d0eae7c878f9ee870df185d27e0fafd120a4b42 (diff) | |
download | libgphoto2-bb3d18289e752db9dff5f7e60e5368f46bdd1a8a.tar.gz |
Batch commit from weekend work:
- removed "type" from CameraFile handling:
- all put_file functions and hooks get "type" as argument now
- added type to the set_file_info_noop call
- started removal of "name" from CameraFile
- generate new filename from original filename + camerafile type + mimetype
- new gp_camera_autodetect() helper function
- adapted all drivers.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11818 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/jl2005a')
-rw-r--r-- | camlibs/jl2005a/library.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/camlibs/jl2005a/library.c b/camlibs/jl2005a/library.c index bf3635920..89a168314 100644 --- a/camlibs/jl2005a/library.c +++ b/camlibs/jl2005a/library.c @@ -200,7 +200,6 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, if (GP_FILE_TYPE_RAW == type) { gp_file_set_mime_type(file, GP_MIME_RAW); - gp_file_set_name(file, filename); gp_file_set_data_and_size(file, (char *)data , b+14 ); return GP_OK; } @@ -258,7 +257,6 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, gp_gamma_fill_table (gtable, .65); gp_gamma_correct_single (gtable, ptr, w * h); gp_file_set_mime_type (file, GP_MIME_PPM); - gp_file_set_name (file, filename); gp_file_set_data_and_size (file, (char *)ppm, size); end: free(data); |