Commit Graph

99 Commits

Author SHA1 Message Date
Arnaud Launay
64e420e288 <config.h> -> "config.h"
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5859 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-11-29 16:09:58 +00:00
Hans Ulrich Niedermann
917ba5e7c3 gettext stuff for Arnaud
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5776 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-11-23 00:47:57 +00:00
Hans Ulrich Niedermann
be9b07f8bf moved definition of camlibdir to configure.in
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5547 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-11-06 14:31:44 +00:00
Arnaud Launay
317c63b327 - modify config.h location
- add intl dir in include dirs


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@5277 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-09-14 19:42:54 +00:00
Marcus Meissner
140ea131d9 * **/Makefile.am: Do not use $(prefix)/lib/, but $(libdir).
On some architecturs $(libdir) might not be /lib/, but /lib64/
	  (on s390x for instance).


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4010 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-25 14:13:03 +00:00
Lutz Mueller
19a0c3a76f 2002-01-16 Lutz M�ller <lutz@users.sourceforge.net>
Black magic by Marcus Meissner <marcus@jet.franken.de>:

        find . -type f | xargs grep -l gp_debug_printf | xargs perl -pi -e 's/gp_debug_printf\(\s*GP_DEBUG[^,]*,[^,]*,(.*)$/GP_DEBUG(\1/'


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3902 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-15 23:49:39 +00:00
Lutz Mueller
cd437aae95 2002-01-13 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
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
2002-01-12 23:31:45 +00:00
Lutz Mueller
0dedb0e163 2002-01-10 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* 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
2002-01-10 23:06:56 +00:00
Hans Ulrich Niedermann
df6ffbf906 Removed redundant memset()s introduced by me :-(
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3649 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-02 14:49:41 +00:00
Lutz Mueller
908429e2df 2002-01-02 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* libgphoto2/Makefile.am
        * camlibs/ * /Makefile.am: Install drivers into versioned
          subdirectories.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3648 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-02 12:34:05 +00:00
Hans Ulrich Niedermann
ea05eaa71c Added missing initialization of CameraAbilities struct. This fixes corrupt
abilities reported to libphoto2.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3642 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-02 00:29:10 +00:00
Johannes Erdfelt
3b234b95cc Zero out the CameraAbilities struct so we don't have garbage in fields
This should help fix some of the problems with the new USB class matching
code people have reported


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3628 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-12-30 18:19:10 +00:00
Lutz Mueller
0947dcd160 2001-12-07 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* configure.in: Remove dotlib hack
        * camlibs: Do it "the right way"


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3422 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-12-07 00:21:17 +00:00
Lutz Mueller
c11497ad5c 2001-12-05 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
$builddir != $srcdir fixes.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3402 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-12-05 21:37:57 +00:00
Marcus Meissner
b22b1ab151 If we check for 'ENABLE_NLS', we need to include <config.h>.
Fix 'redefinition of _' compile warnings due to broken copy & pasted macro
in the camlibs.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2892 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-03 14:30:21 +00:00
Dan Fandrich
b49de71c57 Added -module flag to libtool link command for each library that is dlopen'ed
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2876 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-31 19:27:55 +00:00
Hans Ulrich Niedermann
b944528b82 moved from gp_port_settings_[sg]et to gp_port_[sg]et_settings
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2816 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-27 22:24:01 +00:00
Hans Ulrich Niedermann
ffd1837c38 added missing files to EXTRA_DIST and *_SOURCES
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2638 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-19 23:10:32 +00:00
Lutz Mueller
cf0291bf61 2001-10-19 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/casio
        * camlibs/polaroid
        * camlibs/barbie
        * camlibs/dimera
        * camlibs/jamcam
        * camlibs/panasonic/coolshot
        * camlibs/samsung: Use camera-fs and get_file_func


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2617 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-19 13:40:29 +00:00
Lutz Mueller
24e45f418e CameraPort -> GPPort
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2609 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-18 11:39:00 +00:00
Lutz Mueller
477b3c1e1f 2001-10-17 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs: Don't use camera->port_info->path. This one has already
          be set by gphoto2


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2592 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-17 21:53:12 +00:00
Lutz Mueller
2f3fa5134d 2001-10-17 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* 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
2001-10-16 22:38:58 +00:00
Lutz Mueller
02fb0e6b48 2001-10-12 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-widget.h
        * include/gphoto2-filesys.h: Moved to ...
        * libgphoto2/gphoto2-widget.h
        * libgphoto2/gphoto2-filesys.h: ... here.
        * libgphoto2/widget.c
        * libgphoto2/filesys.c: Moved to ...
        * libgphoto2/gphoto2-widget.c
        * libgphoto2/gphoto2-widget.h: ... here.
        * include/Makefile.am
        * libgphoto2/Makefile.am: Updated.
        * camlibs/.../Makefile.am: Updated to reflect changes above


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2496 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-12 10:59:00 +00:00
Lutz Mueller
27c1b166f9 2001-10-08 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-frontend.h
        * libgphoto2/frontend.c
        * camlibs: gp_frontend_progress -> gp_camera_progress,
        gp_frontend_status -> gp_camera_status


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2436 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-08 08:18:30 +00:00
Lutz Mueller
9c7eff54fe 2001-09-10 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* 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
2001-09-10 16:32:38 +00:00
bvl
95e1767b78 bvl: OS/2 Updates
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2207 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-07 20:02:33 +00:00
Lutz Mueller
2e2f938991 2001-08-29 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* 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
2001-08-30 10:47:51 +00:00
Lutz Mueller
90d8c3325c 2001-08-29 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* 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
2001-08-29 17:53:03 +00:00
Lutz Mueller
205d6f1081 2001-08-29 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* 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
2001-08-29 10:09:57 +00:00
Lutz Mueller
3d950c6be6 2001-08-25 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* 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
2001-08-25 18:14:25 +00:00
Lutz Mueller
dd9fb9311a 2001-08-24 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* 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
2001-08-24 21:23:12 +00:00
Lutz Mueller
3e2bbb93b9 2001-08-24 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* 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
2001-08-23 12:02:20 +00:00
Lutz Mueller
abe27e1c98 2001-08-22 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* */*: Small parameter changes to make gphoto2 API more consistent.
        More to follow.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2046 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-22 18:09:42 +00:00
Lutz Mueller
39657609dd 2001-08-17 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* 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
2001-08-18 00:03:06 +00:00
Hubert Figuiere
f9f8a7f7ef Patch by Christophe Barbe <christophe.barbe@online.fr>
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
2001-08-16 17:57:15 +00:00
bvl
85b367077d bvl: barbie update
bvl: OS/2 build process update
bvl: Sony DSC-F1 update


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1798 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-26 23:29:58 +00:00
Scott Fritzinger
c3ce1b0332 fixed list_folders/files naming bug
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1796 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-26 23:04:36 +00:00
Lutz Mueller
a1008ba94a Applied patch from Colin Marquardt <colin@marquardt-home.de>.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1794 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-26 17:25:46 +00:00
Lutz Mueller
f384e17c71 Changed some "char *" to "const char *".
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1734 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-13 11:47:41 +00:00
bvl
0b11738ebd bvl: Updated complete OS/2 Make system
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1731 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-13 00:51:15 +00:00
Scott Fritzinger
73ea02062f finished updating backend API. fixed camera_capture hack
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1727 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-12 18:54:40 +00:00
Scott Fritzinger
ac9691dfb0 slowly updating camera libraries to newer API scheme
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1700 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-10 20:32:24 +00:00
Lutz Mueller
c976213d13 Ifdef'd out not compiling code. Introduced abilities->file_operations and abilities->folder_operations. Renamed gp_file_delete_all in gp_folder_delete_all. Other clean up.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1687 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-08 11:14:22 +00:00
Lutz Mueller
d8043380a3 Applied patch from Gene Cash <gcash@fdn.com>: Declare some internal variables static.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1661 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-05 09:10:31 +00:00
bvl
5966d9b44f bvl: OS/2 updates
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1621 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-02-26 23:29:31 +00:00
Scott Fritzinger
98eece5b3f updated io lib to return error on _new call. updated all libs
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1541 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-01-24 19:20:00 +00:00
Scott Fritzinger
ded91bec92 finished GP_PORT renaming
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1527 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-01-22 21:25:25 +00:00
Scott Fritzinger
3dd042f150 added libgphoto2_port into tree. ouch.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1526 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-01-22 19:19:02 +00:00
Lutz Mueller
1c8ae9a440 Removed debug in the Camera struct. We use gp_debug_printf, nothing else.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1506 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-01-09 20:04:01 +00:00
Lutz Mueller
7dd3b98242 API change: gp_camera_init (Camera *camera, CameraInit *init) -> gp_camera_init (Camera *camera).
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1504 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-01-09 18:58:09 +00:00