Finished the GPContext stuff - changes all over the place. Basically,
gp_[file,camera]_progress has been replaced by gp_context_progress_*.
Well, we haven't release a gphoto2-2.0 yet, therefore I hope you don't
mind the API change...
* libgphoto2/gphoto2-camera.[c,h]: Added a GPContext parameter to
any function that can possibly communicate with the camera. That
makes every function cancellable (which is good), makes it possible
to report multiple errors during execution of a command, offers
several (nested) progress reports, and many other goodies.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3841 67ed7778-7388-44ab-90cf-0a291f65f57c
* libgphoto2/gphoto2-filesys.[c,h]: Add a GPContext to all functions
that potentially access the camera. This makes cancelling of
all operations possible and improves error reporting.
* tests/test-filesys.c:
* libgphoto2/gphoto2-camera.c:
* camlibs: Adjust to reflect above changes
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3798 67ed7778-7388-44ab-90cf-0a291f65f57c
* README: no glib-dependency any more
* camlibs: gp_abilities_new doesn't exist any more
* doc/api: Even more documentation
* libgphoto2/gphoto2-abiltiies.h: Cleaned up.
* libgphoto2/gphoto2-abilities-list.c: Documented
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2569 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
* 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-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