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
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