Commit Graph

166 Commits

Author SHA1 Message Date
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
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
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
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
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
0762a27642 2001-11-17 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line: Fix translation. You use N_(...) to _mark_ a
          string for translation. In order to convert it, you need to call
          _(...). That is, call gp_camera_get_error in order to get a string
          and after that, convert this string using _(...) before displaying
          it.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3077 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-17 12:14:24 +00:00
Lutz Mueller
6f01b585a5 2001-11-17 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/ptp/ptp.[c,h]: Hide some internals
        * frontends/command-line/main.c: Fix translation by calling
          setlocale (LC_ALL, "") (?).


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3076 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-17 11:42:56 +00:00
Lutz Mueller
c65503abaa Remove unnecessary #ifdef.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3048 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-16 11:31:55 +00:00
Lutz Mueller
5137cc1bc8 2001-11-11 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/main.c: Add a switch for GP_FILE_TYPE_AUDIO.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2994 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-11 16:44:16 +00:00
Lutz Mueller
0f47ae4092 2001-11-08 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/sierra: Improve error reporting. Use register 47 for
          pic-info retrieval. Support GP_FILE_TYPE_AUDIO.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2971 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-08 15:48:40 +00:00
Lutz Mueller
568aab05c3 Small fix for handling GP_FILE_TYPE_AUDIO
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2967 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-08 09:06:25 +00:00
Lutz Mueller
57357935e6 Support GP_FILE_TYPE_AUDIO. Put in lots of "const".
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2965 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-08 08:33:22 +00:00
Hans Ulrich Niedermann
def9a80033 added note for user that the error msg from _set_error may be unrelated to real error
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2899 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-04 02:10:46 +00:00
Marcus Meissner
b01fc85d11 When dumping serial speeds, x was not 0 (since it was used before), but
some random value. Fixed.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2886 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-01 16:02:39 +00:00
Lutz Mueller
227da34fb5 2001-11-01 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
Patch from Chris <adapt@ihug.co.nz>:

        * frontends/command-line/main.c: Don't gp_file_free twice


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2883 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-11-01 09:24:33 +00:00
Lutz Mueller
43731db125 2001-10-30 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/main.c: Be more elaborate about wrong ports.
          Fixes #475320


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2860 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-30 13:18:27 +00:00
Lutz Mueller
3a6966bd00 2001-10-30 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/main.[c,h]: Fix --capture-image


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2858 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-30 09:06:54 +00:00
Lutz Mueller
e3095951b3 2001-10-29 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/interface.c: Suppress empty status
          messages. Those indicate that we should _clear_ the status and
          not print _anything_.
        * frontends/command-line/main.c: No need for gp_camera_init
          anymore
        * libgphoto2/gphoto2-camera.c: Make sure the camera is
          initialized.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2846 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-29 17:57:15 +00:00
Lutz Mueller
5c77c77bd0 2001-10-27 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/canon/canon.c: rmdir/mkdir support
        * camlibs/canon/psa50.c (psa50_directory_operations): Consistently
          return a gphoto2 error code.
        * camlibs/directory: Add rmdir/mkdir support
        * libgphoto2/gphoto2-camera.[c,h]
        * libgphoto2/gphoto2-filesys.[c,h]: Add rmdir/mkdir support


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2823 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-28 07:45:47 +00:00
Lutz Mueller
42dc42be81 Again, documentation fixes
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2802 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-27 16:37:51 +00:00
Lutz Mueller
0763f7bba0 Updated to new API
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2788 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-27 08:07:41 +00:00
Lutz Mueller
eb62663081 Remove cruft
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2753 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-26 07:39:54 +00:00
Lutz Mueller
6178dba97a 2001-10-26 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* configure.in: Check for jpeglib and aalib.
        * frontends/command-line/main.c
        * frontends/command-line/Makefile.am
        * frontends/command-line/gphoto2-cmd-capture.[c,h]: New. Display
          the preview prior saving it.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2745 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-25 22:53:50 +00:00
Lutz Mueller
74365008dc 2001-10-25 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/main.c: Remember --camera and --port


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2739 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-25 11:37:45 +00:00
Lutz Mueller
867b2b4f5f 2001-10-25 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/main.c: Adapt to changes in gphoto2-port
        * libgphoto2: Here, too.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2735 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-25 07:12:56 +00:00
Hans Ulrich Niedermann
02e82bb49c added debug output of guessed port
moved debugging interface to final log level handling


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2721 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-24 21:48:32 +00:00
Lutz Mueller
b1b98b4996 Rearrange a bit in preparation of some additions...
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2715 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-24 17:29:08 +00:00
Lutz Mueller
87334eba31 2001-10-24 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* configure.in
        * acconfig.h: Check for CDK
        * frontends/command-line/Makefile.am
        * frontends/command-line/gphoto2-cmd-config.[c,h]: New
        * frontends/command-line/main.c: Hook up --config


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2713 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-24 14:31:00 +00:00
Lutz Mueller
a3364e4b63 2001-10-23 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* libgphoto2/gphoto2-core.[c,h]: Removed. All functions redirected
          to gphoto2-abilities-list. Caching of this list should be done
          in the frontend.
        * frontends/command-line/main.c: Don't use gp_autodetect, use
	  gp_abilities_list_detect instead.
        * libgphoto2/setting.c: Move some initialization stuff from
          gphoto2-core to here.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2705 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-23 18:00:18 +00:00
Lutz Mueller
46555f8514 2001-10-23 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs: Remove every reference to gp_camera_result_as_string
          including camera->functions->result_as_string. It was mostly
          unused anyways.
        * frontends/command-line/main.c: No history any more
        * libgphoto2/gphoto2-camera.[c,h] (gp_camera_[get,set]_error): New


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2701 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-23 16:43:38 +00:00
Lutz Mueller
1e2bac556b 2001-10-22 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/main.c: Don't use gphoto2-core.h - use
          gphoto2-abilities-list.h.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2689 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-22 12:40:05 +00:00
Lutz Mueller
9be99d5e66 2001-10-22 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/main.c: Adjust to changes in
          gphoto2-port-log.h.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2687 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-22 10:55:27 +00:00
Lutz Mueller
8f5bce99e4 2001-10-22 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* libgphoto2/gphoto2-camera.c: Autodetect also in case of
          camera->port != NULL.
        * frontends/command-line/main.c: Only call gp_camera_set_abilities
          if a model has been specified. Same with gp_camera_set_port_path.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2682 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-22 06:29:29 +00:00
Dan Fandrich
1c8733ea1c Added code to guess at the port type when it isn't specified.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2634 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-19 20:17:09 +00:00
Lutz Mueller
b83bcadd99 2001-10-18 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/main.c: Port to gp_log
        * libgphoto2/gphoto2-debug.[c,h]: Clean up even more.
        * po/POTFILES.in: Add frontends/command-line/main.c


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2611 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-18 17:06:52 +00:00
Lutz Mueller
79ca233b97 2001-10-18 Fredrik <fredrik@krixor.xy.org>
* frontends/command-line/main.c: Only try to set port speed if port
          begins with 'serial' since gp_camera_set_port_speed() now fails
          if called for non-serial port.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2607 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-18 11:13:43 +00:00
Lutz Mueller
464828a9ee Fix mem-leak.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2583 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-17 13:21:02 +00:00
Lutz Mueller
0f93c2d58a 2001-10-17 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/main.c: Use gp_log.
        * libgphoto2/gphoto2-debug.[c,h]: Use gp_log.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2579 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-17 09:24:30 +00:00
Hans Ulrich Niedermann
dd0c9fb0fc added --print-usb-usermap command
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2556 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-16 17:54:07 +00:00
Lutz Mueller
2ae7089818 2001-10-16 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* frontends/command-line/main.c: Use gp_camera_set_abilities.
        * include/gphoto2-camera.h:
        * libgphoto2/camera.c:Introduce gp_camera_[set,get]_abilities.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2552 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-16 17:30:13 +00:00
Lutz Mueller
7875bbf172 2001-10-16 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* libgphoto2/camera.c:
        * camlibs/konica/library.c:
        * camlibs/kodak/dc240/dc240.c:
        * camlibs/sierra: GP_ERROR_IO_UNKNOWN_PORT -> GP_ERROR_UNKNOWN_PORT
        * frontends/command-line: Kill warnings
        * configure.in: There are now some header files in
          libgphoto2_port/libgphoto2_port
        * include/gphoto2-camera.h: Use the new GPPort and GPPortInfo


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2539 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-16 15:12:31 +00:00
Lutz Mueller
648a547376 2001-10-08 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-frontend.h
        * libgphoto2/frontend.c: Removed
        * command-line
        * include/Makefile.am
        * libgphoto2: Remove references to above


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2445 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-08 10:16:52 +00:00
Lutz Mueller
d9fbdff268 gp_frontend_message -> gp_camera_message
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2442 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-08 09:51:38 +00:00
Lutz Mueller
7d8e842fb1 Reorder gp_camera_set_[status,progress]_func
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2433 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-08 07:44:28 +00:00
Lutz Mueller
38d918b76e 2001-10-08 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* libgphoto2/camera.c
        * include/gphoto2-camera.h (gp_camera_status*), (gp_camera_progress*):
        New


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2432 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-08 07:41:04 +00:00
Lutz Mueller
e65b39d675 2001-10-06 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* configure.in: Bump version up to 2.0beta3

2001-10-06  Lutz M�ller <urc8@rz.uni-karlsruhe.de>

        Patch from Hans Ulrich Niedermann <hun@n-dimensional.de>:

        * frontends/command-line: Add --version


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2410 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-06 23:47:54 +00:00
Fabrice Bellet
9f6cc06c6b 2001-10-05 Fabrice Bellet <fabrice@gnu.org>
* frontends/command-line/actions.c:
	* frontends/command-line/foreach.c:
	* frontends/command-line/main.c: Print directory names at
	each step of the recursion when using '--list-folders --recurse'.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2392 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-05 14:04:34 +00:00
Fabrice Bellet
46160ac5f6 2001-10-05 Fabrice Bellet <fabrice@gnu.org>
* command-line/actions.c:
	* command-line/actions.h:
	* command-line/foreach.c:
	* command-line/main.c: The --recurse option should now work
	with --get-all-thumbnails, --get-all-images, --get-all-raw-data,
	--list-files and --list-folders.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2390 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-10-05 10:47:13 +00:00