Commit Graph

138 Commits

Author SHA1 Message Date
Lutz Mueller
8388607ec8 2001-08-27 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
Patch from Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>:

        * camlibs/sierra/library.[c,h]:
        * camlibs/sierra/sierra.c: Use the new filesystem to cache file
        information and for listing files/folders.
        * include/gphoto2-file.h:
        * libgphoto2/file.c (gp_file_detect_mime_type),
        (gp_file_adjust_name_for_mime_type): New
        * libgphoto2/camera.c: list->count = 0;
        * libpghoto2/filesys.c (gp_filesystem_number): If this function is
        called, scan the whole filesystem.
        * tests/test-filesys.c: Test gp_filesystem_get_folder, too.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2102 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-27 21:42:13 +00:00
Lutz Mueller
db161947e9 2001-08-27 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-filesys.h:
        * libgphoto2/filesys.c: Cache folders and files, too (that is, only
        query them from the camera when needed.
        * frontends/command-line/main.c: Don't require a port with
        "Directory Browse".
        * camlibs/konica/library.c: Use the new functions
        * camlibs/directory/directory.[c,h]: Use the filesystem
        * tests/test-filesys.c: Demonstrate the use of the new functions.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2095 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-27 17:13:55 +00:00
Lutz Mueller
90daea45ad 2001-08-27 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
Suggestion from Ilya Konstantinov <gphoto-devel@future.galanet.net>:

        * include/gphoto2-camera.h:
        * libgphoto2/camera.c (gp_camera_[get,set]_port_name) and
        (gp_camera_[get,set]_port_path): New
        * frontends/command-line/main.c: Call those functions.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2091 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-27 14:48:56 +00:00
Lutz Mueller
f5fd86d5e3 2001-08-27 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-filesys.h:
        * libgphoto2/filesys.c: Implement caching for file information.
        * tests/test-filesys.c: Test it here.
        * camlibs/konica/library.c: Use gp_filesystem_[get,set]_info. This
        stuff is really incredibly fast.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2090 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-27 11:04:29 +00:00
Lutz Mueller
8709af2d56 2001-08-27 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-core.h:
        * libgphoto2/core.c (gp_autodetect): Revert an API change I committed
        by error. Sorry.
        * libgphoto2/camera.c:
        * frontends/command-line/main.c: Here too.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2085 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-27 07:58:03 +00:00
Lutz Mueller
104a99d9c7 2001-08-26 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-camera.h:
        * libgphoto2/camera.c: Add gp_camera_[set,get]_model. Please use
        those functions instead of directly accessing camera->model.
        * libgphoto2/core.c: On exit, set glob_abilities_list = NULL
        * tests/test-gphoto2.c: Add lots of documentation.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2081 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-26 17:47:02 +00:00
Lutz Mueller
1a857eec11 2001-08-26 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/dimera/dimera3500.c: explicitly set the conversion method
        to GP_FILE_CONVERSION_METHOD_CHUCK.
        * camlibs/digita/digita.c: Move the conversion raw -> ppm to ...
        * include/gphoto2-file.h:
        * libgphoto2/file.c: ... here.
        * include/gphoto2-filesystem.h:
        * libgphoto2/filesys.c: Implement "dirty" folders.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2080 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-26 16:06:41 +00:00
Lutz Mueller
506d0b6591 2001-08-26 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/dimera3500.c: Move the raw->pnm conversion ...
        * include/gphoto2-file.h:
        * libgphto2/file.c: ... here. Now, other camera drivers can use this,
        too.
        * include/gphoto2-core.c:
        * libgphoto2/core.c: Small change to make the API consistent.
        * frontends/command-line/main.c: Add possibility for download of raw
        data.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2077 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-26 10:42:54 +00:00
Lutz Mueller
3d950c6be6 2001-08-25 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-file.h:
        * include/gphoto2-library.h:
        * include/gphoto2-camera.h: Support for raw data.
        * libpghoto2/file.c: Adjust to above changes.
        * libgphoto2/frontend.c: Kill a warning.
        * libgphoto2/libgphoto-2.0.pc.in: CFlags -> Cflags
        * libgphoto2/widget.c: Include gphoto2-result.h instead of gphoto2.h
        * camlibs/*: Prepare support for download of raw data. Remove lots of
        redundant code (people just copied & pasted the code for file_get
        and file_get_preview...). I hope everything works as it did before.
        * frontend/command-line/*: Prepare support for download of raw data


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2072 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-25 18:14:25 +00:00
Lutz Mueller
dd9fb9311a 2001-08-24 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* libgphoto2/abilities.c:
        * include/gphoto2-abilities.h: Let gp_abilities_new return an error
        code. This was the last one.
        * camlibs/*: Adjust to above change.
        * camlibs/canon/canon.c: #if 0 some code to kill some warnings


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2068 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-24 21:23:12 +00:00
Lutz Mueller
6e16accf87 2001-08-24 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-abilities-list.h: Make gp_abilities_list_new
        return an error code. Introduce gp_abilities_list_sort and
        gp_abilities_list_count.
        * libgphoto2/abilities-list.c: See above.
        * libgphoto2/core.c: Sorting code now is in abilibies-list.
        * libgphoto2/file.c: "image/x-png" -> "image/png"


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2067 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-24 17:42:02 +00:00
Lutz Mueller
3e2bbb93b9 2001-08-24 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/agfa-cl18/agfa.c: Use gp_file_* instead of directly
        accessing the struct.
        * camlibs/barbie/barbie.c: And here.
        * camlibs/directory/directory.c: And here.
        * camlibs/konica/library.c: And here.
        * camlibs/sierra/sierra.c: And here.
        * camlibs/panasonic/l859/l859.c: And here.
        * camlibs/dimera/dimera3500.c: And here.
        * frontends/command-line/main.c: And here.
        * libgphoto2/camera.c: And here.
        * libgphoto2/file.c:
        * include/gphoto2-file.h: Introduce some more gp_file_* functions.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2059 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-23 12:02:20 +00:00
Lutz Mueller
bca686fbfd 2001-08-24 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-file.h: Make gp_file_new return an error code.
        * */*: Adjust everything for above change.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2054 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-23 08:59:22 +00:00
Lutz Mueller
abe27e1c98 2001-08-22 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* */*: Small parameter changes to make gphoto2 API more consistent.
        More to follow.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2046 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-22 18:09:42 +00:00
Lutz Mueller
5925f61737 2001-08-20 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* doc/OVERVIEW: Cruft, not up to date, incorrect. Removed.
        * doc/NOTES: Redundant. Removed.
        * libgphoto2/camera.c: Be nice to frontend-writers, call gp_init if
        it hasn't been called yet on gp_camera_new.
        * libgphoto2/core.c: Same here with gp_autodetect and gp_camera_count.
        * include/gphoto2-core.h: Kill compile warning


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2025 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-20 15:59:19 +00:00
Lutz Mueller
a8d8eb4870 2001-08-19 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* configure.in: -Wmissing-prototypes -Wmissing-declarations
        * camlibs/agfa-cl18/commands.c:
        * camlibs/agfa-cl18/usb.c:
        * frontends/command-line/foreach.c:
        * frontends/command-line/interface.c:
        * frontends/command-line/main.c:
        * frontends/command-line/options.c:
        * frontends/command-line/range.c:
        * frontends/command-line/shell.h:
        * include/gphoto2-file.h:
        * libgphoto2/file.c: First step towards a compilation with -Werror


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2017 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-19 21:38:48 +00:00
Lutz Mueller
ce9063beb2 2001-08-19 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* configure.in: Don't generate camlibs/template/Makefile
        * libgphoto2/filesys.c:
        * include/gphoto2-filesys.h (gp_filesystem_delete_all): New


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2013 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-19 13:00:44 +00:00
Lutz Mueller
7cea530666 2001-08-19 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-filesys.h:
        * libgphoto2/filesys.c (gp_filesystem_get_folder): New
        * libgphoto2/widget.c (gp_widget_get_parent): Corrected typo


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2010 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-19 12:07:16 +00:00
Lutz Mueller
332a78a0e2 2001-08-18 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-widget.h:
        * libgphoto2/widget.c (gp_widget_get_parent): New function


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2006 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-18 16:52:56 +00:00
Lutz Mueller
ff4be46cec 2001-08-18 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/Makefile.am: Oops, add gphoto2-result.h.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2005 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-18 16:47:43 +00:00
Lutz Mueller
6b2e913e1e 2001-08-18 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* README: Add notice about USB Mass Storage cameras.
        * include/*:
        * libgphoto2/*: Major cleanup - add licence notice to begin of each
        file, remove unused files/functions, ...
        * camlibs/konica/Makefile.am: There's no ChangeLog here...
        * tests/test-gphoto2.c: Adjust headers


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2003 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-18 14:39:12 +00:00
Lutz Mueller
5e52f2dbab 2001-08-17 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-camera.h:
        * include/gphoto2-file.h:
        * include/gphoto2-widget.h: Sort some stuff, put in LGPL notice.
        * libgphoto2/widget.c: Hide CameraWidget internals here. No need to
        publish all that stuff.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2002 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-18 01:07:46 +00:00
Lutz Mueller
39657609dd 2001-08-17 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* include/gphoto2-datatypes.h: Move the declaration of the lists to ...
        * include/gphoto2-lists.h: ... here. This is a first step towards
        cleaning up the include-mess. Realized that CameraListType isn't
        needed at all - removed.
        * include/gphoto2-filesys.h: Hide the actual contents of
        the CameraFilesystem ...
        * libgphoto2/filesys.c ... here. The normal user doesn't need to
        know what's inside.
        * libgphoto2/core.c:
        * libgphoto2/lists.c:
        * camlibs/*: Reflect above changes


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2001 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-18 00:03:06 +00:00
Lutz Mueller
88761a470c 2001-08-08 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* camlibs/sierra/library.[c,h]: (do_capture): Return the right location
        of the picture (on my camera, it is in /DCIM/100OLYMP)
        (sierra_file_count): Move that function into ...
        * camlibs/sierra/sierra.c: (update_fs_for_folder): New. Check the
        contents of the camera once at the beginning (init), then don't access
        the card anymore.
        (camera_init): Populate the filesystem
        (camera_folder_list_files): Use gp_filesystem_list_files
        (camera_folder_list_folders): Use gp_filesystem_list_folders
        (camera_file_get_info): The thumbnails aren't in quicktime format
        (camera_capture): Add the picture to the filesystem
        * include/gphoto2-filesys.h:
        * libgphoto2/filesys.c: (gp_filesystem_append): Allow filename == NULL
        for appending just folders
        (gp_filesystem_dump): New
        (gp_filesystem_list_files): New
        (gp_filesystem_list_folders): New


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1973 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-08-08 19:48:43 +00:00
Scott Fritzinger
b70083145d added widget name
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1804 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-30 18:18:27 +00:00
Scott Fritzinger
479f3eba0e added gp_autodetect to the core
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1801 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-28 18:01:54 +00:00
Lutz Mueller
48dbaf845d Added some information to some widgets.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1776 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-19 16:06:19 +00:00
Lutz Mueller
a194588765 Documented widget.c. Changed naming/parameters/return values of some
functions there to be consistent.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1770 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-19 10:48:44 +00:00
Lutz Mueller
f384e17c71 Changed some "char *" to "const char *".
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1734 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-13 11:47:41 +00:00
Scott Fritzinger
73ea02062f finished updating backend API. fixed camera_capture hack
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1727 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-12 18:54:40 +00:00
Lutz Mueller
9105dd3c7f Renamed some functions in gphoto2-camera.h.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1697 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-09 22:57:18 +00:00
Lutz Mueller
624c7e3164 Implemented file_info_set for directory.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1692 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-08 18:07:51 +00:00
Lutz Mueller
3337453246 GP_FOLDER_OPERATION_PUT_FILE instead of simply GP_FOLDER_OPERATION_PUT. It could be that we find cameras that support remote creation of folders.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1690 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-08 14:03:27 +00:00
Lutz Mueller
8e4f83c3fb gphoto2-port.h is in gphoto2-port.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1688 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-08 11:35:39 +00:00
Lutz Mueller
c976213d13 Ifdef'd out not compiling code. Introduced abilities->file_operations and abilities->folder_operations. Renamed gp_file_delete_all in gp_folder_delete_all. Other clean up.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1687 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-08 11:14:22 +00:00
Scott Fritzinger
3c5e1fd9d7 changed GP_CAMERA_FILE_* to just GP_FILE_*
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1682 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-07 17:33:07 +00:00
Lutz Mueller
58e132fe20 Added CameraConfigType: GP_CONFIG_CAMERA, GP_CONFIG_FOLDER, GP_CONFIG_FILE.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1645 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-03 15:07:15 +00:00
bvl
7bdd855856 bvl: OS/2 updates and stupid bugfix in libgphoto2_port\library.c
sorry folks


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1632 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-03-01 00:16:42 +00:00
bvl
9f4241fa1b bvl: OS/2 build updates/changes
sonydscf1 development continued


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1630 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-02-28 22:34:44 +00:00
bvl
108b1e5167 bvl: OS/2 platform dependant include file
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1622 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-02-26 23:35:52 +00:00
Lutz Mueller
42e2b01686 Added reference to root.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1570 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-02-13 19:50:16 +00:00
Scott Fritzinger
860a08d6a7 put CameraPortInfo and gp_port_info together
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1548 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-01-24 21:12:48 +00:00
Lutz Mueller
456ca53b9f Fixed error handling which was broken due to API changes.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1531 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-01-23 12:14:43 +00:00
Scott Fritzinger
a7b7df8acc removed gphoto2-port.h from gphoto2 include
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1528 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-01-22 21:30:14 +00:00
Scott Fritzinger
3dd042f150 added libgphoto2_port into tree. ouch.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1526 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-01-22 19:19:02 +00:00
Scott Fritzinger
2844640b06 added fab's patches for sierra/canon/sony/build
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1522 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-01-19 17:42:44 +00:00
Lutz Mueller
de1289c3ef Let the command line frontend report errors.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1518 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-01-17 16:28:47 +00:00
Lutz Mueller
ea00e0efca Move loading of library to gp_camera_init. This is in order to make auto-detection possible.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1514 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-01-16 12:01:51 +00:00
Lutz Mueller
f2b07bb85b extern "C" for c++
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1508 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-01-09 22:48:03 +00:00
Lutz Mueller
1c8ae9a440 Removed debug in the Camera struct. We use gp_debug_printf, nothing else.
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1506 67ed7778-7388-44ab-90cf-0a291f65f57c
2001-01-09 20:04:01 +00:00