Commit Graph

264 Commits

Author SHA1 Message Date
Dan Fandrich
f2482e6017 Added MIN and MAX macro definitions.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4163 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-15 05:48:02 +00:00
Fredrik
8dd14f05bb Make at least a small attempt at quoting arguments which might need it
when asking users to execute the same command again with --debug.

Patch from Chris Halls.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4157 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-14 18:17:05 +00:00
Tim Waugh
93bbf90fe9 2002-02-13 Tim Waugh <twaugh@redhat.com>
* frontends/command-line/gphoto2.xml: Mention that files are
        numbered from 1, and that quotes should be used for camera models.
        * frontends/command-line/gphoto2.1: Regenerated.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4148 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-13 18:00:01 +00:00
Christophe Barbe
30e5d59f51 * override usb IDs only when the usbid option is used.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4143 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-12 22:22:02 +00:00
Tim Waugh
91c2527881 s/man1_MANS/man_MANS/
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4140 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-12 15:47:25 +00:00
Tim Waugh
ee00b6160c Ship man page, with source.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4139 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-12 15:14:51 +00:00
Tim Waugh
8c589e6abc 2002-02-12 Tim Waugh <twaugh@redhat.com>
* MAINTAINERS: Add myself.
        * frontends/command-line/gphoto2.xml: New file.
        * frontends/command-line/gphoto2.1: New file.
        * frontends/command-line/Makefile.am: Install man page.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4138 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-12 13:23:59 +00:00
Lutz Mueller
4eae6dfbc5 2002-02-10 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line/actions.[c,h]:
        * frontends/command-line/main.c: Implement --show-info.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4123 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-10 13:48:14 +00:00
Fredrik
e420618f85 make the CLI frontend be even more carefull when checking the ID passed to
the context functions from camera drivers.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4115 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-09 15:25:44 +00:00
Fredrik
3e5f3696d9 fix bug where new for_each_subfolder() did not descend into subfolders of
folders.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4114 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-09 15:09:59 +00:00
Fredrik
8fe151a995 clean up USB ID override code and fix memory leak when no override was done
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4112 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-09 14:14:02 +00:00
Lutz Mueller
b507b1474c 2002-02-08 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line/main.c: Implement a progress bar (code
          adapted from e2fsck).


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4110 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-08 22:08:23 +00:00
Christophe Barbe
36ee6f96d7 * Add usbid option to override vendorID and deviceID for a given
vendorID/deviceID couple in the table describing all supported
	  cameras. This allows us to quickly validate if a new cam could be
	  supported by an existing driver.
	  This requires from the camlib driver to not use the IDs directly
	  but the device name instead.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4106 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-08 19:38:13 +00:00
Lutz Mueller
d5a4ec11b2 2002-02-08 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line: s/image/file and s/picture/file with
          the exception of capture-image.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4105 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-08 12:58:20 +00:00
Lutz Mueller
57b30e2d6a 2002-02-08 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/commend-line/main.c:
        * frontends/command-line/actions[c,h]:
        * frontends/command-line/foreach[c,h]: Clean up, simplify.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4103 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-08 11:21:54 +00:00
Lutz Mueller
fddffb0eb2 2002-02-07 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line: Fix my previous (broken) patch and hide
          all that recursive id look-up stuff.
        * frontends/command-line/gphoto2-cmd-exif.[c,h]: Removed. Now in
          actions.[c,h]


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4098 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-07 22:29:30 +00:00
Lutz Mueller
258eda8e22 2002-02-07 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line: Fix my previous (broken) patch and hide
          all that recursive id look-up stuff.
        * frontends/command-line/gphoto2-cmd-exif.[c,h]: Removed. Now in
          actions.[c,h]


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4096 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-07 17:43:04 +00:00
Lutz Mueller
da1c6b9f02 2002-02-07 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line/foreach.[c,h]: Pass CameraList as parameter.
          This be where the const filename is allocated. Before, the string
          got messed up.
        * frontends/command-line/main.c: %s/gp_file_free/gp_file_unref


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4093 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-07 14:14:45 +00:00
Fredrik
a1551c42de fixed bug with errors not spotted in subfolders of subfolders when doing
recursive CLI operations.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4092 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-06 20:53:07 +00:00
Fredrik
31f0a6eed2 fixed --delete-all-images in the CLI frontend.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4073 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-04 18:25:50 +00:00
Lutz Mueller
7367b7fdd2 2002-02-02 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line: Let --show-exif accept image numbers, too.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4067 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-03 08:20:46 +00:00
Lutz Mueller
516ab85411 2002-02-01 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line/gphoto2-cmd-exif.[c,h]: New
        * frontends/command-line/main.c: Hook it up.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4065 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-02 23:29:57 +00:00
Dan Fandrich
eeaf3e0e19 * frontends/command-line/gphoto2-cmd-capture.c: Fixed security problem
in creating temporary file for JPEG preview.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4025 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-27 22:11:57 +00:00
Lutz Mueller
3e875760ac 2002-01-26 Lutz M�ller <lutz@users.sourceforge.net>
Patch by Hans Ulrich Niedermann <gp@n-dimensional.de> (slightly
        adapted):

        * frontends/command-line/main.c: Only report progress information
          if the user can see it. Same with confirmation of status messages.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4016 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-26 00:34:20 +00:00
Lutz Mueller
4a193fa5f0 2002-01-26 Lutz M�ller <lutz@users.sourceforge.net>
Fixes #506075:

        * frontends/command-line/Makefile.am: Include files into EXTRA_DIST
          that are only conditionally built.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4013 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-25 23:58:35 +00:00
Lutz Mueller
71e74d4115 Kill warning.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3992 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-22 21:52:48 +00:00
Fredrik
b73e214c3d corrected strncat()/strncpy()'s, but we still don't check if we really
could copy all bytes so we could get undesired results if things don't fit.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3974 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-21 14:42:58 +00:00
Lutz Mueller
4c69ab4392 Fix header file.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3973 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-21 14:32:36 +00:00
Lutz Mueller
c749a3a081 Better error reporting.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3972 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-21 12:52:07 +00:00
Lutz Mueller
6112516854 2002-01-21 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line: Fix image numbering when --recurse.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3970 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-21 11:00:18 +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
2a8a5b5c3c 2002-01-15 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* libgphoto2/gphoto2-camera.h: Clean up.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3899 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-15 22:15:36 +00:00
Lutz Mueller
603159e742 2002-01-15 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
More GPContext changes:

        * libgphoto2/gphoto2-context.[c,h]: Add message functionality
        * camlibs: Use it.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3886 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-15 12:29:46 +00:00
Fredrik
8b1a4ca601 fix core dumps when parsing overly long arguments.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3884 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-15 10:42:55 +00:00
Lutz Mueller
cebf18c307 2002-01-14 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/main.c: If the user presses 2 times
          <ctrl>-c, abort.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3881 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-15 08:31:31 +00:00
Fredrik
6f6e959650 made CLI frontend folder recursion the default.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3875 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-14 20:34:01 +00:00
Lutz Mueller
60cce54fa6 2002-01-14 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* libgphoto2/gphoto2-camera.c:
        * frontends/command-line/main.c: Translation fixes.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3868 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-14 07:36:01 +00:00
Lutz Mueller
361adeaec4 2002-01-13 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* library.c: Remove references to gp_camera_set_error.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3857 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-13 21:00:12 +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
Dan Fandrich
4511fdccd5 Added support for C99 compilers and those without variadic macros
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3821 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-11 19:23:04 +00:00
Hans Ulrich Niedermann
c6c19cbe8e Added note to include VERSION number when sending --debug output
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3805 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-11 13:01:58 +00:00
Lutz Mueller
1e7a3779b0 2002-01-11 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* libgphoto2/gphoto2-context.[c,h]: Support for multiple progress
          reports at once (especially sub-progress reports).


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3799 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-10 23:43:34 +00:00
Lutz Mueller
fc18cbbdb5 2002-01-10 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* libgphoto2/Makefile.am
        * libgphoto2/gphoto2-context.[c,h]: New files
        * libgphoto2/gphoto2-abilities-list.[c,h]
          (gp_abilities_list_load_ctx): Sample function for showing the
          benefits of above new files.
        * frontends/command-line/main.c: Use gp_abilities_list_load_ctx to
          make that operation cancellable.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3793 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-10 01:29:05 +00:00
Dan Fandrich
2bfa3ed2cb Allow cdk.h to reside outside a cdk directory.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3779 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-09 19:04:02 +00:00
Lutz Mueller
6cb8868ee6 2002-01-07 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/main.c: Correctly shut down the camera even
          in case of error.
        * libgphoto2/gphoto2-camera.c: Additional debugging message.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3756 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-07 06:46:18 +00:00
Fredrik
2b65b75002 s/begin one/begin with one/ in usage()
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3731 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-05 15:38:11 +00:00
Dan Fandrich
f7cc723804 Including config.h. Fixed name of DISABLE_DEBUGGING.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3720 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-04 23:45:31 +00:00
Dan Fandrich
b41ffe5428 Eliminated // comments for compatibility with pre-C99 compilers.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3719 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-04 23:40:43 +00:00
Lutz Mueller
5487c7050b 2002-01-02 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/main.c: Implement proper cancelling of file
          down- and upload.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3646 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-02 09:33:33 +00:00
Fredrik
4413341421 Better wording in text telling users to mail the gphoto-devel mailing list
when something goes wrong.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3636 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-01-01 11:57:01 +00:00