* include/gphoto2-filesys.h:
* libgphoto2/filesys.c: Cache folders and files, too (that is, only
query them from the camera when needed.
* frontends/command-line/main.c: Don't require a port with
"Directory Browse".
* camlibs/konica/library.c: Use the new functions
* camlibs/directory/directory.[c,h]: Use the filesystem
* tests/test-filesys.c: Demonstrate the use of the new functions.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2095 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/sierra/sierra.c: And correctly use the macros CHECK (won't
stop the camera) and CHECK_STOP (after the connection has been started).
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2093 67ed7778-7388-44ab-90cf-0a291f65f57c
* include/gphoto2-filesys.h:
* libgphoto2/filesys.c: Implement caching for file information.
* tests/test-filesys.c: Test it here.
* camlibs/konica/library.c: Use gp_filesystem_[get,set]_info. This
stuff is really incredibly fast.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2090 67ed7778-7388-44ab-90cf-0a291f65f57c
Daniel Resare <noa@metamatrix.se> suggested using AC_CONFIG_SUBDIRS:
* configure.in: Use AC_CONFIG_SUBDIRS(libgphoto2_port).
* Makefile.am: build.sh isn't needed any more
* INSTALL: Update installation instructions
* doc/Makefile.am: Removed OVERVIEW and NOTES. This should have
happened a long time ago.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2088 67ed7778-7388-44ab-90cf-0a291f65f57c
* include/gphoto2-core.h:
* libgphoto2/core.c (gp_autodetect): Revert an API change I committed
by error. Sorry.
* libgphoto2/camera.c:
* frontends/command-line/main.c: Here too.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2085 67ed7778-7388-44ab-90cf-0a291f65f57c
Suggestions from Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>:
* camlibs/sierra/library.c (sierra_change_folder): Just return if we
are already in the requested folder.
(sierra_update_fs_for_folder): Dont jump into the folder twice.
* camlibs/sierra/sierra.c (camera_init): Use camera_start here instead
of reimplementing everything again.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2083 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/dimera3500.c: Move the raw->pnm conversion ...
* include/gphoto2-file.h:
* libgphto2/file.c: ... here. Now, other camera drivers can use this,
too.
* include/gphoto2-core.c:
* libgphoto2/core.c: Small change to make the API consistent.
* frontends/command-line/main.c: Add possibility for download of raw
data.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2077 67ed7778-7388-44ab-90cf-0a291f65f57c
* include/gphoto2-file.h:
* include/gphoto2-library.h:
* include/gphoto2-camera.h: Support for raw data.
* libpghoto2/file.c: Adjust to above changes.
* libgphoto2/frontend.c: Kill a warning.
* libgphoto2/libgphoto-2.0.pc.in: CFlags -> Cflags
* libgphoto2/widget.c: Include gphoto2-result.h instead of gphoto2.h
* camlibs/*: Prepare support for download of raw data. Remove lots of
redundant code (people just copied & pasted the code for file_get
and file_get_preview...). I hope everything works as it did before.
* frontend/command-line/*: Prepare support for download of raw data
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2072 67ed7778-7388-44ab-90cf-0a291f65f57c
* libgphoto2/abilities.c:
* include/gphoto2-abilities.h: Let gp_abilities_new return an error
code. This was the last one.
* camlibs/*: Adjust to above change.
* camlibs/canon/canon.c: #if 0 some code to kill some warnings
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2068 67ed7778-7388-44ab-90cf-0a291f65f57c
* include/gphoto2-abilities-list.h: Make gp_abilities_list_new
return an error code. Introduce gp_abilities_list_sort and
gp_abilities_list_count.
* libgphoto2/abilities-list.c: See above.
* libgphoto2/core.c: Sorting code now is in abilibies-list.
* libgphoto2/file.c: "image/x-png" -> "image/png"
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2067 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/sierra/library.c: Remove some unnecessary casts, put in some
CHECKs
* camlibs/kodak/dc120/dc120.c:
* camlibs/kodak/dc210/library.c:
* camlibs/kodak/dc240/library.c: Use gp_file_* instead of directly
accessing the struct.
* libgphoto2/filesys.c: Remove lots of redundancy, always check if
folder has a trailing slash (and ignore it if this is the case).
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2065 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/agfa-cl18/agfa.c: Use gp_file_* instead of directly
accessing the struct.
* camlibs/barbie/barbie.c: And here.
* camlibs/directory/directory.c: And here.
* camlibs/konica/library.c: And here.
* camlibs/sierra/sierra.c: And here.
* camlibs/panasonic/l859/l859.c: And here.
* camlibs/dimera/dimera3500.c: And here.
* frontends/command-line/main.c: And here.
* libgphoto2/camera.c: And here.
* libgphoto2/file.c:
* include/gphoto2-file.h: Introduce some more gp_file_* functions.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2059 67ed7778-7388-44ab-90cf-0a291f65f57c
that issued warnings and broke the build...
* camlibs/kodak/dc240/library.c (dc240_wait_for_busy_completion):
cast a const to a char to avoid a serious warning on Solaris sparc
gcc. Fix bug #454183
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2049 67ed7778-7388-44ab-90cf-0a291f65f57c
* Could not retrieve movies from the cameras (got the image having
the same base name instead). Same behaviour for movie thumbnails,
* After correction of problem 1, got movie thumbnails that do
not fit the JPEG format.
* After correction of problem 1 & 2, part of some movie thumbnails had a
very bad quality! The phenomenon was aleatory.
Following corrections were made :
* Rewrite the sierra_read_packet routine : now it downloads movie thumbnails
correctly (third bug).
* Correction in the sierra_capture routine to make it generic regarding name
of the folder the captured image is stored in.
* Move update_fs_for_folder and sierra_change_folder from sierra.c
to here.
* Plus various other changes to try to be consistent between the
different routines (when do we need to retry, error codes).
Still work to be done there.
* Add gp_filesystem_delete_all at the beginning of update_fs_for_folder.
* Start documenting routines.
Tests :
* Stuff was tested with an Epson 3000z (both USB and serial link).
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2030 67ed7778-7388-44ab-90cf-0a291f65f57c
* Could not retrieve movies from the cameras (got the image having
the same base name instead). Same behaviour for movie thumbnails.
* After correction of problem 1, got movie thumbnails that do
not fit the JPEG format.
* After correction of problem 1 & 2, part of some movie thumbnails had a
very bad quality! The phenomenon was aleatory.
Following corrections were made :
* Add call to sierra_change_folder in camera_file_get_generic,
camera_file_get_info, camera_folder_delete_all, camera_file_delete.
Remove sierra_folder_set from camera_start (then delete the routine
since it is not used anymore).
* Correct camera_file_get_generic to handle movie thumbnails
correctly.
* Correction in camera_file_get_generic regarding the properties
(type and name) of the return file : it is always jpeg for thumbnails.
* Move update_fs_for_folder and sierra_change_folder to library.c.
* Remove formatting of the filesystem from camera_folder_delete_all : it
is now performed by sierra_update_fs_for_folder.
* Add a camera specific error code GP_ERROR_BAD_CONDITION which is raised
when a picture cannot be captured (for instance if the lens protection was
not removed, or the memory card is full).
* Start documenting routines.
Tests :
* Stuff was tested with an Epson 3000z (both USB and serial link).
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2029 67ed7778-7388-44ab-90cf-0a291f65f57c
* Could not retrieve movies from the cameras (got the image having
the same base name instead). Same behaviour for movie thumbnails,
* After correction of problem 1, got movie thumbnails that do
not fit the JPEG format.
* After correction of problem 1 & 2, part of some movie thumbnails had a
very bad quality! The phenomenon was aleatory.
In camlibs/sierra/library.c,h :
* Rewrite the sierra_read_packet routine : now it downloads movie thumbnails
correctly (third bug).
* Correction in the sierra_capture routine to make it generic regarding name
of the folder the captured image is stored in.
* Move update_fs_for_folder and sierra_change_folder from sierra.c
to here.
* Plus various other minor changes to try to be consistent between the
different routines (when do we need to retry, error codes).
Still work to be done there.
* Add gp_filesystem_delete_all at the beginning of update_fs_for_folder.
* Start documenting routines.
In camlibs/sierra/sierra.c :
* Add call to sierra_change_folder in camera_file_get_generic,
camera_file_get_info, camera_folder_delete_all, camera_file_delete.
Remove sierra_folder_set from camera_start (then delete the routine
since it is not used anymore).
* Correct camera_file_get_generic to handle movie thumbnails
correctly.
* Correction in camera_file_get_generic regarding the properties
(type and name) of the return file : it is always jpeg for thumbnails.
* Move update_fs_for_folder and sierra_change_folder to library.c.
* Remove formatting of the filesystem from camera_folder_delete_all : it
is now performed by sierra_update_fs_for_folder.
* Add a camera specific error code GP_ERROR_BAD_CONDITION which is raised
when a picture cannot be captured (for instance if the lens protection was
not removed, or the memory card is full).
* Start documenting routines.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2028 67ed7778-7388-44ab-90cf-0a291f65f57c
* doc/OVERVIEW: Cruft, not up to date, incorrect. Removed.
* doc/NOTES: Redundant. Removed.
* libgphoto2/camera.c: Be nice to frontend-writers, call gp_init if
it hasn't been called yet on gp_camera_new.
* libgphoto2/core.c: Same here with gp_autodetect and gp_camera_count.
* include/gphoto2-core.h: Kill compile warning
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2025 67ed7778-7388-44ab-90cf-0a291f65f57c