Commit Graph

245 Commits

Author SHA1 Message Date
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
Lutz Mueller
dfa9eaaf63 2001-12-31 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* configure.in: Give users the possibility to specify the location
          of cdk
        * frontends/command-line/gphoto2-cmd-config.c: Use fscale if
          available
        * frontends/command-line/main.c: #if -> #ifdef


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3632 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-12-31 11:17:37 +00:00
Lutz Mueller
7006f22f2f 2001-12-29 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/main.c: Show file-specific progress on
          upload, too.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3607 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-12-29 08:49:02 +00:00
Lutz Mueller
c7c90f3a88 2001-12-28 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* libgphoto2/gphoto2-file.[c,h]: Implement progress reporting here.
          That makes file upload and file download cancellable.
        * frontends/command-line/main.c: Use file-specific progress reporting.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3600 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-12-28 22:25:49 +00:00
Hans Ulrich Niedermann
c45d6e0b8f Fixed Bug #490542: wrong match_flags at --print-usb-usermap
Thanks to John McPherson for reporting this


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3578 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-12-24 12:31:05 +00:00
Lutz Mueller
734a70fe8c 2001-12-11 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/Makefile.am: It seems we need to
          LDADD libgphoto2_port.la here, too, although we LIBADDed it in
          libgphoto2/Makefile.am to libgphoto2.la?


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3483 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-12-11 12:44:52 +00:00
Hans Ulrich Niedermann
95a083a5cc ENABLE_DEBUGGING -> DISABLE_DEBUGGING
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3437 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-12-07 22:29:18 +00:00
Lutz Mueller
22bea057ca Fix includes
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3409 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-12-05 22:11:48 +00:00
Dan Fandrich
c00c27f9db * libgphoto2_port/acconfig.h
* libgphoto2_port/configure.in
	* libgphoto2_port/libgphoto2_port/gphoto2-port-log.c
	* libgphoto2_port/libgphoto2_port/gphoto2-port-log.h
	* frontends/command-line/main.c
	* frontends/command-line/main.h
	* acconfig.h
	* configure.in: Added --disable-debugging option to configure


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3364 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-12-03 01:42:29 +00:00
Hans Ulrich Niedermann
90cc09aefc how to create debug messages
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3353 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-12-02 16:04:37 +00:00
Dan Fandrich
f4bc0dc73d Added explicit include of locale.h for when --disable-nls is configured
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3301 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-30 17:48:12 +00:00
Dan Fandrich
412560db27 * configure.in
* frontends/command-line/Makefile.am
* libgphoto2/Makefile.am
* libgphoto2_port/configure.in
* libgphoto2_port/libgphoto2_port/Makefile.am: libtool won't generate
  shared dlopenable libraries when given -lintl and libintl is a
  static library.  Now, only use -lintl when linking other targets.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3289 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-29 23:01:27 +00:00
Colin Marquardt
7cc7978469 * frontends/command-line/options.c (usage):
Make the help table format string translatable.
  Make table lines 79 chars wide.

* de.po (Message): All command line help table entries are now
  translated.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3164 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-22 23:20:16 +00:00
Lutz Mueller
c5a35cef10 2001-11-22 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/main.c: Mark more strings for translation


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3150 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-22 06:59:31 +00:00
Colin Marquardt
97191be750 frontends/command-line/options.c: Make help descriptions translatable.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3149 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-21 23:48:44 +00:00
Colin Marquardt
784d87086c * frontends/command-line/main.c: Mark up more strings for
translation.

* camlibs/sierra/sierra.c: Spelling fixes.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3147 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-21 23:03:57 +00:00
Dan Fandrich
80b46fae70 Added definitions of MIN and MAX
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3141 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-21 20:58:21 +00:00
Lutz Mueller
25b9808904 2001-11-21 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
I quote from an e-mail: "You (Lutz) should remove the code you added
        that broke (at least) two of the supported 'libgphoto2' camera
        libraries!!!" *sigh*.

        * conigure.in: Add a --with-multi option and a warning that people
          who use it will run into troubles with digita and dc240 and that
          people who don't use it will run into troubles when using Nautilus
          or Konqueror for browsing their camera.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3140 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-21 19:07:53 +00:00
Lutz Mueller
f80fd2a911 Finish implementation of GP_WIDGET_DATE.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3135 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-21 01:09:27 +00:00
Lutz Mueller
c0412e5b84 2001-11-17 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/options.c: Mark some more strings for
          translation.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3091 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-17 18:10:50 +00:00