* libgphoto2/camera.c:
* camlibs/konica/library.c:
* camlibs/kodak/dc240/dc240.c:
* camlibs/sierra: GP_ERROR_IO_UNKNOWN_PORT -> GP_ERROR_UNKNOWN_PORT
* frontends/command-line: Kill warnings
* configure.in: There are now some header files in
libgphoto2_port/libgphoto2_port
* include/gphoto2-camera.h: Use the new GPPort and GPPortInfo
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2539 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/casio/casio-qv.c: On capture, append the file to the
filesystem
* camlibs/polaroid/pdc640.c: Here, too.
* include/gphoto2-camera.h: Add some more warnings
* libgphoto2/filesys.c:
* include/gphoto2-filesys.h: We don't need to expose
gp_filesystem_folder_number, that doesn't make sense
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2464 67ed7778-7388-44ab-90cf-0a291f65f57c
* include/gphoto2-frontend.h
* libgphoto2/frontend.c: Remove gp_frontend_prompt. This and the other
gp_frontend functions will reappear some day in gphoto2-camera.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2428 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/jamcam/.cvsignore:
* camlibs/sonydscf55/.cvsignore: New
* include/gphoto2-debug.h:
* libgphoto2/debug.c: Debugging stuff can be found here.
* frontends/command-line/main.c: Use gp_debug_set_level and don't
use gp_init any more (this is done automatically).
* include/Makefile.am:
* libgphoto2/Makefile.am: Add the debugging files
* include/gphoto2-core.h: Remove debugging and initialization stuff
* libgphoto2/core.c: Make gp_init a static function.
* (...) Various smaller changes regarding gp_init and gp_debug_*.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2301 67ed7778-7388-44ab-90cf-0a291f65f57c
* libgphoto2/camera.c (gp_camera_list_folders), (gp_camera_list_files): Return the result instead of GP_OK if anything goes wrong
* libgphoto2/filesys.c: Check if path to folder is absolute. If not,
return GP_ERROR_PATH_NOT_ABSOLUTE.
* libgphoto2/result.c:
* include/gphoto2-result.h: GP_ERROR_PATH_NOT_ABSOLUTE: New error.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2221 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/barbie/*: Use camera->port and camera->fs.
* camlibs/dimera/dimera3500.c
(populate_filesystem): Removed.
(camera_folder_list_folders): Removed. We don't support folders anyways
(camera_folder_list_files): Renamed to
(file_list_func): Don't access the CameraFilesystem here. Just
populate the list. The CameraFilesystem will get updated by libgphoto2.
(camera_file_get_info): Renamed to
(get_info_func): New
(camera_file_set_info): Removed. Not supported.
(camera_init): Correctly gp_filesystem_set_list_funcs and
gp_filesystem_set_info_funcs so that the CameraFilesystem has full
control over the information
* include/gphoto2-list.h:
* libgphoto2/list.c: (gp_list_populate): New. Please use this
function to populate the list passed to you on file_list_func.
* libgphoto2/filesys.c: Don't remove the dirty flag on folders
on gp_filesystem_append (thanks, Dan!)
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2136 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/template/*: Updated
* include/gphoto2-camera.h: Add a note about c_folder_list_folders and
c_folder_list_files not to be used. Same with [get,set]_info.
* include/gphoto2-filesys.h: Remove an uneeded typedef.
* libgphoto2/filesys.c: Here, too.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2134 67ed7778-7388-44ab-90cf-0a291f65f57c
* gphoto2-library.h: Clean up this file.
* gphoto2-camera.h: We don't need camera_init, camera_abilities, and
camera_id here. That belongs into gphoto2-library.h.
* libgphoto2/camera.c:
* libgphoto2/core.c: Adapt
* camlibs/*: Move camera_init to the bottom of the file. Camera
driver authors, could you please declare the functions above static?
Except camera_id and camera_abilities.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2124 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/sierra/*:
* camlibs/directory/directory.c (camera_folder_list_folders),
(camera_folder_list_files), (camera_file_[get,set]_info): Removed.
Use the camera->fs. Use camera->port.
* camlibs/*: camera->port->* -> camera->port_info->*
* include/gphoto2-camera.h:
* libgphoto2/camera.c: Open the port before accessing a camera,
close it after.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2115 67ed7778-7388-44ab-90cf-0a291f65f57c
* include/gphoto2-file.h: Add a note about the crappy API
* include/gphoto2-abilities-list.h:
* libgphoto2/abilities-list.c:
* libgphoto2/core.c: Don't access the CameraAbilitiesList directly
any more.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2107 67ed7778-7388-44ab-90cf-0a291f65f57c
Patch from Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>:
* camlibs/sierra/library.[c,h]:
* camlibs/sierra/sierra.c: Use the new filesystem to cache file
information and for listing files/folders.
* include/gphoto2-file.h:
* libgphoto2/file.c (gp_file_detect_mime_type),
(gp_file_adjust_name_for_mime_type): New
* libgphoto2/camera.c: list->count = 0;
* libpghoto2/filesys.c (gp_filesystem_number): If this function is
called, scan the whole filesystem.
* tests/test-filesys.c: Test gp_filesystem_get_folder, too.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2102 67ed7778-7388-44ab-90cf-0a291f65f57c
* 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
* 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
* 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
* 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