Commit Graph

52 Commits

Author SHA1 Message Date
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
Dan Fandrich
a670274ac1 * configure.in
* libgphoto2_port/m4/stdint.m4
	* camlibs/dimera/dimera3500.c
	* camlibs/dimera/mesalib.h
	* camlibs/panasonic/dc.c
	* camlibs/panasonic/dc.h
	* camlibs/panasonic/dc1000.c
	* camlibs/panasonic/dc1580.c
	* camlibs/panasonic/l859/l859.c
	* camlibs/panasonic/l859/l859.h: add AC_NEED_STDINT_H to configure.in
	  and change camera libraries to use C99-style size-specific integer types


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3413 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-12-06 01:45:50 +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
Dan Fandrich
9b56ae41ea Propagating more error codes to the caller.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3044 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-16 02:26:32 +00:00
Lutz Mueller
6dd4dfc8df Small compile fix (you don't set permissions on thumbnails).
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2963 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-08 08:09:22 +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
4eb47f5021 * camlibs/dimera/*.c: use renamed get/set functions, gp_camera_set_error
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2872 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-31 08:29:54 +00:00
Dan Fandrich
8909244eae Added -module to link flags
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2871 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-31 08:01:13 +00:00
Lutz Mueller
acd9ef46b6 2001-10-20 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/digita:
        * camlibs/dimera: Prepare for elimination of camera->camlib_data.
        * camlibs/konica: Some additional debugging messages


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2660 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-20 18:05:55 +00:00
Lutz Mueller
76a19b0b53 2001-10-20 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs: Instead of camera->port_info->speed, use
          settings.serial.speed. That lets us ...
        * libgphoto2/gphoto2-camera.[c,h]: ... remove camera->port_info


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2653 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-20 12:36:15 +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
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
Dan Fandrich
29cf26635a Removed gettext item
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2563 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-16 19:06:29 +00:00
Dan Fandrich
67d47dff98 Using CHECK to propagate more error codes to callers.
Added support for i18n.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2562 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-16 19:04:52 +00:00
Dan Fandrich
91445af5a7 Using CHECK to propagate more error codes to callers
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2559 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-16 18:52:03 +00:00
Dan Fandrich
1f2e51a853 Added CHECK macro to ease error handling
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2558 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-16 18:45:10 +00:00
Hans Ulrich Niedermann
dd32bd757a added #include lines that should have already been there
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2557 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-16 18:04:03 +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
f6ced7cf4e 2001-10-11 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/canon/psa50.c
        * camlibs/dimera/dimera3500.c:
        * camlibs/kodak/dc120/library.c:
        * camlibs/kodak/dc240/library.c:
        * camlibs/kodak/dc3200/library.c:
        * camlibs/panasonic/dc1000.c:
        * camlibs/panasonic/dc1580.c:
        * camlibs/panasonic/l859/l859.c:
        * camlibs/sierra/library.c:
        * frontends/command-line/interface.c: Unify percentage handling and
        define 0.0 <= percentage <= 1.0.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2487 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-11 22:01:25 +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
Dan Fandrich
02cf4a6c35 Updated
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2339 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-30 01:00:43 +00:00
Dan Fandrich
4ce28a3426 Added missing types for Solaris
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2225 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-09-10 20:25:44 +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
Dan Fandrich
7e547c86f7 Replaced references to PNM with the appropriate PPM or PGM
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2147 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-31 01:33:34 +00:00
Dan Fandrich
0e69a6327e Fixed problem with saving raw images. Stopped file name suffixes from
needlessly changing.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2143 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-30 21:59:08 +00:00
Lutz Mueller
257a15f010 2001-08-30 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/dimera/dimera3500.c (camera_file_get): Use
        gp_file_adjust_name_for_mime_type
        * libgphoto2/file.c (gp_file_adjust_name_for_mime_type):
        GP_MIME_RAW -> *.raw


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2141 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-30 20:10:40 +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
Dan Fandrich
891f972065 Now using predefined camera->port and camera->fs structures. Removed
unneeded include files. Now using predefined MIME types. Made all local
functions static. Updated camera_manual text.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2130 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-29 22:04:54 +00:00
Dan Fandrich
3655814ddc Don't call gp_port_new or gp_port_close any more. Fixed mesa_set_speed to
treat "unspecified" speed of 0 as 115200.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2129 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-29 22:01:08 +00:00
Dan Fandrich
2cc01ea545 Changed port parameter to mesa_port_open
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2128 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-29 21:57:28 +00:00
Dan Fandrich
04e6526789 Updated
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2127 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-29 19:39:09 +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
1a857eec11 2001-08-26 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/dimera/dimera3500.c: explicitly set the conversion method
        to GP_FILE_CONVERSION_METHOD_CHUCK.
        * camlibs/digita/digita.c: Move the conversion raw -> ppm to ...
        * include/gphoto2-file.h:
        * libgphoto2/file.c: ... here.
        * include/gphoto2-filesystem.h:
        * libgphoto2/filesys.c: Implement "dirty" folders.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2080 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-26 16:06:41 +00:00
Lutz Mueller
506d0b6591 2001-08-26 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* 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
2001-08-26 10:42:54 +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
Hubert Figuiere
714fc9aa4d * camlibs/dimera/dimera3500.c: removed * / * embedded inside comments
that issued warnings and broke the build...
	* camlibs/kodak/dc240/library.c (dc240_wait_for_busy_completion):
	cast a const to a char to avoid a serious warning on Solaris sparc
	gcc. Fix bug #454183


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2049 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-22 20:59:57 +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
Dan Fandrich
29471ab3be Updated to latest code.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1891 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-06-28 22:14:01 +00:00
Dan Fandrich
0e5ef176f4 Integrated Brian Beattie's patch to use mesa_read_row instead of
mesa_read_image for picture downloading.  Hopefully, this will
allow downloading on newer cameras.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1890 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-06-28 22:03:42 +00:00
Dan Fandrich
975c53493d Fixed mesa_version to handle more versions (hopefully, correctly).
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1873 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-06-07 07:06:43 +00:00
Dan Fandrich
5afb062f3e Improved error reporting.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1870 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-06-06 17:33:53 +00:00
Dan Fandrich
8400e0bee7 Added serial baud rate setting. Improved camera_summary.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1869 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-06-06 17:30:42 +00:00
Fabrice Bellet
d565042300 shut up cvs.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1841 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-05-05 11:24:21 +00:00
Scott Fritzinger
949da17ed5 finished release fixes
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1807 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-31 00:30:01 +00:00