* 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
* camlibs/canon/psa50.c
camlibs/canon/serial.c
libgphoto2_port/include/gphoto2-port.h
libgphoto2_port/libgphoto2_port/gp_port.c
libgphoto2_port/usb/libusb.c: changed *usb_msg_read* and
*usb_msg_write* functions to allow passing in of request and
index values.
* MAINTAINERS
configure.in
camlibs/jamcam/Makefile.am
camlibs/jamcam/jamcam.c
camlibs/jamcam/library.c
camlibs/jamcam/library.h: added camera library for KBGear JamCam v3.0
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2282 67ed7778-7388-44ab-90cf-0a291f65f57c
* libgphoto2/camera.c
(gp_camera_init): Do a simple CHECK_RESULT_OPEN_CLOSE on the init_func
(gp_camera_set_port): Set the path if the port is a serial one.
* camlibs/template/template.c:
* camlibs/sierra/sierra.c:
* camlibs/samsung/samsung.c:
* camlibs/polaroid/pdc700.c:
* camlibs/polaroid/pdc320.c:
* camlibs/panasonic/coolshot/coolshot.c:
* camlibs/konica/library.c:
* camlibs/dimera/mesalib.c:
* camlibs/digita/usb.c:
* camlibs/digita/serial.c:
* camlibs/casio/casio-qv.c:
* camlibs/canon/serial.c:
* camlibs/barbie/barbie.c:
* camlibs/agfa-cl18/agfa.c: Don't open the port. This is always done
by libgphoto2.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2222 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
* libgphoto2/core.c: Use "... == GP_OK" instead of "!...". That should
prevent that every USB camera shows up on gp_autodetect...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2215 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/panasonic/coolshot/README
camlibs/panasonic/coolshot/coolshot.c
camlibs/panasonic/coolshot/library.c: changed thumbnail code to
properly decode thumbnails after discovering they are encoded in
YUV 4:1:1 format.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2196 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/panasonic/coolshot/coolshot.c
camlibs/panasonic/coolshot/library.c: code cleanup
* camlibs/panasonic/coolshot/README: added TODO list for driver
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2177 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/panasonic/coolshot/coolshot.c: Use gp_list_populate instead
of accessing the filesystem. The filesystem is clever enough to do
that itself.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2169 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/casio: New
* configure.in: Add casio. Like the polaroid and samsung, those drivers
DON'T WORK and therefore are signed as EXPERIMENTAL. I add those only
to give you a basic framework on which to build.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2161 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/samsung/Makefile.am:
* camlibs/samsung/samsung.c: New but untested. (Just ported it from
old gphoto).
* configure.in: Added samsung
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2155 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/agfa-cl18/agfa.c: Remove gp_port_usb_find_device, that's in
libgphoto2/camera.c now.
* camlibs/canon/canon.c: Move the declaration of the models struct here. * camlibs/canon/canon.h: The models struct is no longer needed here.
* camlibs/psa50.[c,h]: cs->gdev is now camera->port.
* camlibs/canon/serial.[c,h]
(canon_usb_probe): Removed. Now in libgphoto2/camera.c
(canon_serial_init): Don't create/free a port here. Use camera->port.
(canon_serial_close): Removed. No longer needed. Handled by libgphoto2
(canon_serial_restore): Same here.
* digita/commands.c: Indicate usb product/vendor in the abilities
so that gphoto2 can autodetect. Use camera->port.
* camlibs/digita/serial.c: Don't create/free the port here. Handled by
libgphoto2
* camlibs/digita/usb.c: No probe, no port creation (->libgphoto2)
* camlibs/directory/directory.c: Declare lots of functions static.
* camlibs/kodak/dc240/library.[c,h]:
* camlibs/kodak/dc240/dc240.[c,h]: Use camera->port
* camlibs/konica/library.c: No gp_port_usb_find_device here.
* libgphoto2/camera.c (gp_camera_init): In case of USB,
find the device. That removes redundancy in the camera libraries.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2151 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/agfa.c:
* camlibs/commands.c:
* camlibs/commands.h: Use a macro CHECK for most of the simple
error checks. That makes the code much cleaner.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2140 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