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
* 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
* 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
* 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:
* 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
* 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
* include/gphoto2-datatypes.h: Move the declaration of the lists to ...
* include/gphoto2-lists.h: ... here. This is a first step towards
cleaning up the include-mess. Realized that CameraListType isn't
needed at all - removed.
* include/gphoto2-filesys.h: Hide the actual contents of
the CameraFilesystem ...
* libgphoto2/filesys.c ... here. The normal user doesn't need to
know what's inside.
* libgphoto2/core.c:
* libgphoto2/lists.c:
* camlibs/*: Reflect above changes
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2001 67ed7778-7388-44ab-90cf-0a291f65f57c
It adds code in configure.in to detect when '.libs' is not detected
and in this case defined a variable "dotlibs" which is then
substitued in all Makefile.in. This fix a build problem with
newer libtool (1.4)
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1993 67ed7778-7388-44ab-90cf-0a291f65f57c