Commit Graph

291 Commits

Author SHA1 Message Date
Hans Ulrich Niedermann
9ef376a321 improved description of usb-usermap stuff
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4402 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-04-07 02:32:26 +00:00
Hans Ulrich Niedermann
0ebbf06ec9 added description of --usb-usermap-script option
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4401 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-04-07 02:21:46 +00:00
Hans Ulrich Niedermann
2eb214e6db added *~ .*~ *.ced
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4400 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-04-07 02:19:39 +00:00
Hans Ulrich Niedermann
3984799dce improved descr of --usb-usermap-script option
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4399 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-04-07 02:16:27 +00:00
Hans Ulrich Niedermann
5197ec2c8d added --usb-usermap-script option
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4398 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-04-07 02:13:27 +00:00
Hans Ulrich Niedermann
cbd2582154 changed copyright from "2000,2001" to "2000-2002"
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4397 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-04-07 02:07:59 +00:00
Hans Ulrich Niedermann
b1c57cbb3f added option --usb-usermap-script name which lets user specify
the name of the hotplug usb script


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4394 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-04-07 01:48:16 +00:00
Marcus Meissner
8bbb296dd0 * frontends/command-line/main.*: Dump USB class style entries into
the usb.usermap too.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4382 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-04-04 17:24:33 +00:00
Dan Fandrich
ae1b2ed316 Added definition of MIN and MAX macros.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4345 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-03-25 00:15:49 +00:00
Lutz Mueller
65e14b1e02 Fix indentation.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4343 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-03-24 21:51:47 +00:00
Lutz Mueller
339b55b02c 2002-03-24 Lutz M�ller <lutz@users.sourceforge.net>
Patch by Patrick Mansfield <patman@aracnet.com> (without ChangeLog
        entry, therefore I am just quoting the e-mail):

        * frontends/command-line/gphoto2-cmd-config.c: This patch fixes
          scaling when using the command line interface with
          a range widget with an increment value with non-zero decimal digits
          (like .5). (...) I also used the A_STANDOUT (like Cliff's patch)
          rather than "-" so negative numbers work correctly. Also included is
          a change to set page increment based on the range of
          values, so really large ranges can more easily be adjusted. The page
          increment is set so you can go through all values in 20 key strokes
          or fewer - this still doesn't work well, but it is better than
          trying to go from 0 -> 8000000 in chunks of 10. It is clunky in
          that the page increment is not always a multiple of the increment.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4342 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-03-24 21:49:30 +00:00
Lutz Mueller
3e115de3ab 2002-03-23 Lutz M�ller <lutz@users.sourceforge.net>
Patch by Cliff Wright <cliff@snipe444.org> (comments quoted from
        the e-mails):

        * frontends/command-line/main.c: The command line program does not
          allow one to have a combination of --config, and --capture-image
          where the config will occur first, and then the capture. Since some
          cameras do not retain all config info between connections This is a
          feature I wanted, so the below patch fixes this by moving config in
          front of capture.
        * frontends/command-line/gphoto2-cmd-config.c: Unless cdk has changed
          the way they handle month's for the config calendar display, their
          is a bug in the command line configure in file gphoto2-cmd-config.c.
          The patch below fixed this for me.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4335 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-03-23 06:23:46 +00:00
Lutz Mueller
02f180e526 2002-03-22 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line/Makefile.am: Remove "-g" from [C,LD]FLAGS. If
          you need it, please add it again in configure.in.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4317 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-03-22 22:06:39 +00:00
Hans Ulrich Niedermann
8c34e17995 Made log messages be output with timestamps. Works with GNU libc and
should work with BSD (according to BSDI man pages). Don't know about other
systems, though.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4271 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-03-13 16:05:47 +00:00
Hans Ulrich Niedermann
89f8ede924 removed decoding of numeric debug message priorities
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4267 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-03-13 14:49:38 +00:00
Lutz Mueller
b15fa008aa 2002-03-11 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line/Makefile.am:
        * frontends/command-line/main.c: Add --authors and --licence.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4264 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-03-11 18:35:44 +00:00
Lutz Mueller
b3f50d409a 2002-03-11 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line/globals.h:
        * frontends/command-line/main.c: 1 global variable less.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4258 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-03-11 12:17:26 +00:00
Mariusz Woloszyn
9d4b9320d4 2002-03-11 Mariusz Woloszyn
* frontends/command-line/main.c: you can now specify --filename
	  while uploading, thx to Lutz.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4257 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-03-11 12:09:20 +00:00
Lutz Mueller
94b9336b07 2002-03-09 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line/shell.c: Fix readline stuff (automatic
          completion).


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4255 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-03-09 14:27:34 +00:00
Tim Waugh
9fe3a92339 Regenerated.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4230 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-27 08:33:41 +00:00
Tim Waugh
a5985a6e34 New commands in shell.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4229 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-27 08:33:33 +00:00
Lutz Mueller
2e0c520799 2002-02-26 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line/foreach.c (for_each_file_in_range): If
          deleting files not recursively, adjust the image ID for subsequent
          images.
        * frontends/commane-line/main.c (main): If deleting files, do
          it in reverse order such that above case does never occur. Fixes
          #522796.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4225 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-26 10:09:17 +00:00
Lutz Mueller
6b40e962e4 2002-02-26 Lutz M�ller <lutz@users.sourceforge.net>
* frontends/command-line/shell.c: Patch from Rob Hillis
          <rob@hillis.dyndns.org>: Use SHELL_PROMPT instead of
          shell_prompt_text.
        * frontends/command-line/actions.c: Use %li instead of %i to kill
          some warnings.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4219 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-26 07:28:50 +00:00
Lutz Mueller
d3d342deda 2002-02-25 Lutz M�ller <lutz@users.sourceforge.net>
* acconfig.h:
        * configure.in: Add optional readline support.
        * frontends/command-line/main.c: Show remaining time in progress bar.
        * frontends/command-line/globals.h: Export glob_cancel.
        * frontends/command-line/shell.[c,h]: Clean up and add (optional)
          readline support. Support deletion of files.

2002-02-25  Lutz M�ller <lutz@users.sourceforge.net>

        * configure.in: Version 2.0


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4216 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-25 15:20:03 +00:00
Fredrik
248ea28d6e add line break in
int
delete_file_action ( ...


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4190 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-19 20:40:42 +00:00
Dan Fandrich
46549399bc Fixed long int printf conversion specifier.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4184 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-18 17:57:34 +00:00
Lutz Mueller
65742d2f32 2002-02-18 Lutz M�ller <lutz@users.sourceforge.net>
Bug reported by Marcus Meissner <marcus@jet.franken.de>:

        * frontends/command-line/options.c: The option "-" is invalid.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@4179 67ed7778-7388-44ab-90cf-0a291f65f57c
2002-02-18 09:07:20 +00:00
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