Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Import of libptp2-1.1.10

  • Loading branch information...
commit 6e5e8805e025e6bca9dbb9cef7a784f3e525290f 0 parents
@jrabbit authored
1  AUTHORS
@@ -0,0 +1 @@
+Mariusz Wo�oszyn <emsi[a]ipartners.pl>
340 COPYING
@@ -0,0 +1,340 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Library General
+Public License instead of this License.
440 ChangeLog
@@ -0,0 +1,440 @@
+2007-08-23 Mariusz Woloszyn
+ * ptp-pack.c: fixed signed/unsigned conversion bug
+ * release: 1.1.10
+2007-08-01 Mariusz Woloszyn
+ * release: 1.1.9
+
+2007-08-01 Mariusz Woloszyn
+ * :Fixed warnings
+
+2007-07-27 Mariusz Woloszyn
+ * ptp.h: added PTP_DPC_CANON_ViewfinderOutput as requested by
+ Eric P Caillibot
+
+2006-06-06 Mariusz Woloszyn
+ * properties.c: added couple fo Nikon D200 properties meanings
+ * ptpcam.c, ptpcam.h: added simple SIGINT handling
+
+2006-05-05 Mariusz Woloszyn
+ * ptpcam.c, ptp.c, ptp.h, properties.c, ptpcam.h: Added Nikon Direct
+ Capture support
+
+2005-12-16 Mariusz Woloszyn
+ * ptpcam.c: Ivan Middleton little patch that make libptp2 work under
+ OXS.
+
+2005-12-16 Mariusz Woloszyn
+ Introduced new events handling code... It's still under work yet. The
+ purpose for the changes was to make libptp2 compatible with Nikon D2X.
+
+2005-11-01 Mariusz Woloszyn
+ * src/*.[ch]: Introduced --set; introduced code allowing reading and
+ setting properties by names and sybolic values: like
+ ptpcam --set NIKON-Saturation --val Enhanced, (abreviations allowed);
+
+2005-10-31 Mariusz Woloszyn
+ * src/ptp.c: added more debug, moved property code to properties.c
+ * src/ptp.h: added new property handling functions
+ * src/ptpcam.c: change verbose meaning (-v detailed info,
+ --verbose=2 and more debug information), introduced properties
+ meaningfull display code
+ * src/properties.c: file added; properties values interpretation
+ code
+ * src/Makefile.am: added properties.c
+
+2005-10-30 Mariusz Woloszyn
+ * src/ptp.c, src/ptp.h: code cleanup and typos fixed;
+ added more comments, introduced ptp_get_datatype_name(),
+ added couple of NIKON properties
+ * src/ptpcam.c, src/ptpcam.h: introduced --show-all-properties and
+ --show-unknown-properties (both usefull for debuging)
+
+2005-10-26 Mariusz Woloszyn
+ * configure.in: added --with-libusbdir
+
+2005-10-26 Mariusz Woloszyn
+ * src/ptpcam.c: add call to usb_set_configuration(); it's a good
+ practice and renders windows port working :)
+
+2005-09-29 Mariusz Woloszyn
+ * src/ptp-pack.c: fix a bug that caused improper display of 32bit
+ enumerated properties, thanks to Alexander Oelzant for pointing
+ out the bug
+
+2005-09-29 Mariusz Woloszyn
+ * configure.in: better libusb version detection implemented
+ * src/ptp-pack.c: silence gcc warnings
+
+2005-09-07 Mariusz Woloszyn
+ * configure.in, Makefile.am: use myusb only on Linux
+ * ptpcam.c: use myusb interface instead of libusb in case of Linux,
+ beside that it works where URB fails it is also abou 20% to 50%
+ faster!!!
+ * ptpcam.h: define myusb interface
+
+2005-09-07 Mariusz Woloszyn
+ * Initial 1.1.0 commit
+ * ptpcam.c: fixed minor bug on usb read
+ * ptpcam.h: fixed typo
+ * myusb.c: added private usb bulk read/write code
+ * configure.in, Makefile.am: updated version added new files, fixed
+ parralel build problem (thanks to Daniel Black for patch)
+
+
+2005-07-26 Mariusz Woloszyn
+ * ptpcam.c: file creation time prserved accross download
+2005-07-07 Mariusz Woloszyn
+ * ptp.c, ptpcam.c, ptpcam.h: better capture, better error handling,
+ code polishing
+2005-07.02 Mariusz Woloszyn
+ * src/ptpcam.c: added --loop-capture
+ * configure.in: changed version number, improved libusb checking
+2005-07-02 Mariusz Woloszyn
+ * src/ptpcam.c, src/ptp.c: fixed a bug that caused files over 2MB to
+ be corrupted while downloading.
+2005-07-02 libptp2-1.0.3 started
+2005-05-06 Mariusz Woloszyn
+ * ptpcam.c: added NIKON capture workaround
+2005-04-21 Mariusz Woloszyn
+ * src/ptpcam.c,src/ptpcam.h: added --capture, --delete-object and
+ --delete-all-files support
+2005-03-01 Mariusz Woloszyn
+ * ptp.c, ptp.h, ptp-pack.c, ptpcam.c: moved to src
+ * src/ptpcam.c: moved some defines and definitions to ptpcam.h,
+ added "get all files" operations, added --overwrite mode,
+ fixed stall problem for kernels 2.6.x (affecting CANON cameras),
+ some code cleanup and reorganization, changed comments to /**/
+ * src/ptp.c, src/ptp.h: fixed properties typos and added new
+ properties
+ * src/ptpcam.h: added
+ * configure.in, Makefile.am, src/Makefile.am: improved and adapted
+ build system
+2005-02-14 Mariusz Woloszyn
+ * ptpcam.c: fix for canon STALL problem; big thanks come to
+ DervishD (bugs[A@T]dervishd.net) for helping to identify the
+ problem and performing lot of tests.
+2005-01-20 Mariusz Woloszyn
+ * ptpcam.c: fixed mmap() return value comparision, thx to Pallab Basu
+2005-01-10 Mariusz Woloszyn
+ * ptp.h, ptp.c: added Nikon properties reported by Steve Harris
+2004-07-28 Mariusz Woloszyn
+ * README: minor changes, updated the copyright notice;
+ * configure.in: changed the version to 1.0.1 and updated the library
+ version;
+ * ptp.c: - LICENSE CHANGED TO GPL,
+ - changed behavior of ptp_usb_getdata(), if *data is not
+ NULL no memory allocation is performed,
+ - ptp_perror(), ptp_get_operation_name,
+ ptp_get_property_name added/updated to return proprietary
+ extension data;
+ * ptp.h: - LICENSE CHANGED TO GPL,
+ - added ptp_get_operation_name();, ptp_get_property_name();
+ * ptpcam.c: updated the copyright notice, introduced new
+ capabilities of: listing operations supported, listing
+ files, downloading files and displaying camera info;
+ added interrupt endpoint reading function, removed dead
+ code, removed get_property_description();
+2004-07-16 Mariusz Woloszyn
+ * ptp.h, ptpcam.c: added NIKON extension code and clear halt fixup
+ by Corey Manders
+ * m4/byteorder.m4, stdint.m4: Added quoting for Automake >= 1.8
+ * config.h.in: removed
+2003-12-18 Mariusz Woloszyn
+ * ptp.c, ptp-h.c, ptp-pack.c: added Canon specific PTP extension
+ code by Nikolai Kopanygin
+2003-12-17 Mariusz Woloszyn
+ * ptp.c, ptp.h, ptp-pack.c: changed comments from // to /* */
+ * ptpcam.c: fixed a bug that caused ptoprties names to not be displayed
+ * config.h.in: updated for new autoconf
+ * configure.in: changed version numbr to 1.0pre7
+2003-12-17 Mariusz Woloszyn
+ * ptp.c, ptp.h: fixed ptp_getdevicepropvalue(), thanks to:
+ Nikolai Kopanygin
+2003-07-18 Mariusz Woloszyn
+ * ptp.h: changed #include <libptp-endian.h> to
+ #include "libptp-endian.h"
+ * m4/byteorder.m4: chabged #include <_stdint.h> to
+ #include "_stdint.h"
+2003-06-23 Mariusz Woloszyn
+ * configure.in: after reading autoconf documentation (yes, some people
+ do really read documentation) i found that --disable-ptpcam is the
+ right way to disable building some package parts (rather than
+ --without-*), so I changed --without-ptpcam to --disable-ptpcam!
+ * README: updated readme to mention --disable-ptpcam
+2003-06-09 Mariusz Woloszyn
+ * Makefile.am: added DISTCLEANFILES to distclean _stdint.h
+ & libptp-endian.h; defined libptp2 includes dir and files
+ * configure.in: reorganized library versioning system
+2003-05-28 Mariusz Woloszyn
+ * ptp.h: two more CANON properties (thanks to Jean-Nicolas Kuttler)
+ * ptpcam.c: two more CANON properties (thanks to Jean-Nicolas Kuttler)
+2003-05-26 Mariusz Woloszyn
+ * ptp.h: added some CANON extension device property codes (thanks
+ goes to Jean-Nicolas Kuttler)
+ * ptpcam.c: added support for CANON extension device property codes
+ * README: fixed typos
+2003-05-24 Mariusz Woloszyn
+ * ptpcam.c: fixed bug causing not displaying unknown properties
+2003-05-23 Mariusz Woloszyn
+ * README: at last (but not least) the great README!!!
+ * ptpcam.c: a couple of typos
+2003-05-19 Mariusz Woloszyn
+ * Makefile.am: reorganized configure to build without ptpcam
+ * configure.in: allowed configure --without-ptpcam
+ * TODO: new TODO for standalone 1.0 release
+2003-05-19 Mariusz Woloszyn
+ * Makefile.am: added library versioning (currrent varsion 1.0.0)
+ * configure.in: added library versioning (currrent varsion 1.0.0)
+ * ptpcam.c: changed displaying of property values
+2003-05-15 Mariusz Woloszyn
+ * .cvsignore: added _stdint.h to .cvsignore
+ * README: reorganized for stand alone release (still lacks ptpcam
+ detailed description)
+2003-05-14 Mariusz Woloszyn
+ * started stand alone libptp2 1.0dev1; imported into libptp2 cvs;
+ prepared for stand alone distribution (autoconf/automake
+ implemented)
+2003-05-14 Mariusz Woloszyn
+ * ptpcam.c: changed test_ptp.c to ptpcam.c;
+ * Makefile.am: changed test_ptp.c to ptpcam.c;
+ * TODO: added the idea of error reporting improvement
+ * README: reorganized a bit
+2003-05-13 Mariusz Woloszyn
+ * ptp-pack.c: ptp_pack_DPV() fixup;
+ * ptp.c: reorganized reporting errors, added ptp_perror();
+ * ptp.h: added ptp_perror() prototype;
+ * test_ptp.c: reorganized reporting errors; added property setting
+ support!
+2003-05-12 Mariusz Woloszyn
+ * ptp.c: fflush(stderr) on error and debug;
+ added datatype argument for ptp_getdevicepropvalue();
+ added ptp_setdevicepropvalue();
+ * ptp-pack.c: added ptp_unpack_DPV() and ptp_pack_DPV();
+ fixed missing strings while unpacking enumerated DPD;
+ * ptp.h: fixed ptp_getdevicepropvalue() prototype and added
+ ptp_setdevicepropvalue() prototype;
+ * .cvsignore: changed ptp_test to ptpcam
+ * Makefile.am: changed ptp_test to ptpcam
+ * test_ptp.c: reorganized debug/error output, added more verbose
+ levels; fixed extension properties debug (only EK supported as for
+ now); added property supported values output;
+2003-05-09 Mariusz Woloszyn
+ * test_ptp.c: added the device reset option (uses class specific
+ reset)
+2003-05-09 Mariusz Woloszyn
+ * ptp.h: added some Kodak extension device property codes
+ definitions
+ * test_ptp.c: added properties listing support and --force option
+
+2003-05-01 Hubert Figuiere <hfiguiere@teaser.fr>
+
+ * library.c: add explicitly DSC-P32 (was autodetected)
+ add Coolpix 2000
+
+2003-04-25 Mariusz Woloszyn
+ * Makefile.am: added ptp_test as noinst_PROGRAMS
+ * README: changed references to test_ptp to ptp_test
+ * test_ptp.c: added some functions prototypes (to avoid warnings),
+ reconstructed usage() plus some cosmetic changes
+
+2003-04-25 Mariusz Woloszyn
+ * library.c: romved dups in cameras declaration, cosmetic --about
+ changes
+
+2003-04-25 Mariusz Woloszyn
+ * README: added to ptp2
+ * test_ptp.c: added to ptp2
+ * TODO: added to ptp2
+
+2003-04-25 Mariusz Woloszyn
+ * library.c: added perror on gp_port_read() and write error; it
+ won't hurt
+ * ptp.c: NULL does not have to be 0 bug fixed;
+ cosmetics error output tuning;
+ unpack structures only if transaction succeeded
+ * ChangeLog: reformated this file ;)
+
+2003-04-12 Marcus Meissner <marcus@jet.franken.de>
+
+ * ptp.c, library.c: Check return codes for property get during
+ --config.
+
+2003-04-10 Mariusz Woloszyn
+ * library.c: added Canon A70
+2003-04-03 Mariusz Woloszyn
+ * ptp.c: added ptp_free_devicepropdesc()
+ * ptp.h: added ptp_free_devicepropdesc()
+ * library.c: ptp_free_devicepropdesc() used to free allocated
+ structures
+2003-04-03 Mariusz Woloszyn
+ * library.c: enabled getting config support;
+ curently only getting batery level is supported;
+ * ptp-pack.c: "finished" Device Property Describing Dataset
+ unpacking function ptp_unpack_DPD();
+ * ptp.h: changed PTP_DC_* to PTP_DTC_* (DTC stands for DataType Code);
+ changed PTPDevicePropDesc fields name;
+ * ptp.c: added ptp_getdevicepropvalue() (not working properly yet);
+2003-04-01 Mariusz Woloszyn
+ * library.c: added Kodak CX4200 explicite support;
+ added some get config code (it's not enabled, nor finished yet);
+ added some extra debug info about events and properties supported
+ * ptp-pack.c: intoduced ptp_unpack_DPD (not finished yet)
+ * ptp.c: added ptp_getdevicepropdesc()
+ * ptp.h: introduced some device property describing structures and
+ constants
+
+2003-03-29 Mariusz Woloszyn
+ * library.c: enabled downloading of nonimage files
+ * ptp.c: fixed a bug in capture code
+
+2003-03-29 Mariusz Woloszyn
+ * library.c: enabled back capture image support
+
+2003-03-29 Mariusz Woloszyn
+ * ptp.h: added Nparam field to PTPContainer
+ * ptp.c: using Nparam field we send requests with only used params
+ to the camera (although specs says it's legal, some cameras do not
+ like it)
+
+2003-03-29 Mariusz Woloszyn
+ * ptp.c: fixed a memcopy size bug
+2003-03-27 Mariusz Woloszyn
+ * library.c: added HP PhotoSmart 320
+
+2003-01-08 Mariusz Woloszyn
+ * ptp.c: cosmetic
+ * ptp-pack.c: fixed a bug in ptp_unpack_DI(), totallen could be
+ bigger than uint8_t
+ * library.c: added camera summary
+
+2003-01-08 Mariusz Woloszyn
+ * ptp-pack.c:
+ * ptp.c: fixed buggy ptp_usb_senddata()
+
+2003-01-06 Mariusz Woloszyn
+ * updated some comments, added some extra debug and introduced
+ support for senobjectinfo and sendobject.
+ * Makefile.am: changed driver name to ptp2
+
+2003-01-03 Mariusz Woloszyn
+ * Commited version 2 of libptp2 and ptp driver.
+ This code is unfinished yet, but it's meant to be transport layer
+ independent. It fixes a lot of other bugs also.
+
+2002-10-16 Stephen H. Westin
+ * library.c: Nikon D100 has a PTP mode
+
+2002-10-03 Lutz M�ller <lutz@users.sourceforge.net>
+
+ * Makefile.am: -I$(top_builddir)/libgphoto2
+
+2002-08-20 Mariusz Woloszyn
+
+ * README: added some descriptions and hints for users
+
+2002-08-02 Mariusz Woloszyn
+
+ * ptp-pack.c: Fixed an awfull bug (one byte overflow).
+ Thanks to go to Hubert Figuiere for pointing me at Valgrind, the
+ tool that helped me to find this bug.
+ * ptp-pack.c: initialized uninitialized timezone structure
+
+2002-06-10 Mariusz Woloszyn
+ * added basic capture functionality with events support
+
+2002-03-18 Mariusz Woloszyn
+ * library.c: added multiple storage support
+ * ptp.c: fixed missed parameter for getstorageinfo
+
+2002-03-14 Mariusz Woloszyn
+ * library.c: undefined file is a file
+
+2002-03-06 Marcus Meissner
+ * library.c: translate the error messages
+
+2002-03-05 Mariusz Woloszyn
+ * ptp.c: updated ptp_getobjecthandles() to be protocol compliant
+ * ptp.c: rewrited ptp_transaction and ptp_sendreq code to send no
+ more bytes than expected by device (fix for HP cameras)
+
+2002-03-04 Mariusz Woloszyn
+ * library.c: some vendor/product IDs added
+ * library.c: changed initial transaction_id
+ * ptp.c: added ptp_getstorageids, fixed ptp_getobjecthandles
+ * ptp-pack.c: added ptp_unpack_OH, ptp_unpack_SIDs,
+ ptp_unpack_uint32_t_array
+ * ptp.h: added typedef of PTPStorageIDs, ptp_getstorageids function
+ prototype
+ (all changes according to TODO, multi storage support)
+
+2002-01-16 Lutz M�ller <lutz@users.sourceforge.net>
+
+ * library.c: No time for previews...
+
+2002-01-16 Mariusz Woloszyn
+ * ptp-pack.c: added fake date packing
+ * ptp.c: Fixed ptp_ek_sendfileobjectinfo to use packed structures
+ * library.: started implementation of upload file (for Kodak only!)
+
+2002-01-13 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
+
+ * library.c: Remove references to gp_camera_set_error.
+
+2002-01-11 Marcus Meissner <marcus@jet.franken.de>
+
+ * Makefile.am: Moved ptp-pack.c from SOURCES to EXTRA_DIST, since
+ it cannot be compiled stand alone.
+
+2002-01-10 Dan Fandrich <dan@coneharvesters.com>
+
+ * Makefile.am: Added ptp-pack.c
+
+2002-01-09 Dan Fandrich <dan@coneharvesters.com>
+
+ * library.c:
+ * ptp.c:
+ * ptp.h: Moved include of time.h to ptp.h to get time_t definition
+ Moved typedef lines after their dependent definitions.
+ Fixed spelling of PTPDeviceInfo.
+
+2002-01-09 Mariusz Woloszyn
+ * Started ptp fs implementation
+
+2002-01-08 Mariusz Woloszyn
+ * Added pack / unpack C structures to ptpdatasets code
+ * fixed host byteorder / data layer byteorder problem
+
+2002-01-04 Mariusz Woloszyn
+ * Added workaround for ioctl return 0 problem (this does not hurt)
+ * Added DX-3215 support
+ * removed hto*le() stuff
+ * updated TODO (describes how to solve byteorder problem)
+
+2001-12-14 Mariusz Woloszyn
+ * huge parts of code rewriten, added SENDDATA transaction feature,
+ added make directory ability (curently BROKEN!!!)
+
+2001-12-14 Mariusz Woloszyn
+ * file deleting implemented
+
+2001-12-13 Mariusz Woloszyn
+ * whole parts of code has been rewriten
+
+2001-12-13 Mariusz Woloszyn
+ * added implementation of Object Format, fixing get_info_func
+
+2001-12-11 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
+
+ * library.c: Add some debugging stuff.
+
+2001-12-02 Mariusz Woloszyn
+
+ * library.c: Updatet vendor & product numbers for Kodak DX-3900.
+
+2001-12-02 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
+
+ * library.c: Fix warning
+
+2001-12-02 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
+
+ * library.c: Fixed vendor/product if of HP PhotoSmart 318.
236 INSTALL
@@ -0,0 +1,236 @@
+Installation Instructions
+*************************
+
+Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
+Software Foundation, Inc.
+
+This file is free documentation; the Free Software Foundation gives
+unlimited permission to copy, distribute and modify it.
+
+Basic Installation
+==================
+
+These are generic installation instructions.
+
+ The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation. It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions. Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, and a
+file `config.log' containing compiler output (useful mainly for
+debugging `configure').
+
+ It can also use an optional file (typically called `config.cache'
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
+the results of its tests to speed up reconfiguring. (Caching is
+disabled by default to prevent problems with accidental use of stale
+cache files.)
+
+ If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release. If you are using the cache, and at
+some point `config.cache' contains results you don't want to keep, you
+may remove or edit it.
+
+ The file `configure.ac' (or `configure.in') is used to create
+`configure' by a program called `autoconf'. You only need
+`configure.ac' if you want to change it or regenerate `configure' using
+a newer version of `autoconf'.
+
+The simplest way to compile this package is:
+
+ 1. `cd' to the directory containing the package's source code and type
+ `./configure' to configure the package for your system. If you're
+ using `csh' on an old version of System V, you might need to type
+ `sh ./configure' instead to prevent `csh' from trying to execute
+ `configure' itself.
+
+ Running `configure' takes awhile. While running, it prints some
+ messages telling which features it is checking for.
+
+ 2. Type `make' to compile the package.
+
+ 3. Optionally, type `make check' to run any self-tests that come with
+ the package.
+
+ 4. Type `make install' to install the programs and any data files and
+ documentation.
+
+ 5. You can remove the program binaries and object files from the
+ source code directory by typing `make clean'. To also remove the
+ files that `configure' created (so you can compile the package for
+ a different kind of computer), type `make distclean'. There is
+ also a `make maintainer-clean' target, but that is intended mainly
+ for the package's developers. If you use it, you may have to get
+ all sorts of other programs in order to regenerate files that came
+ with the distribution.
+
+Compilers and Options
+=====================
+
+Some systems require unusual options for compilation or linking that the
+`configure' script does not know about. Run `./configure --help' for
+details on some of the pertinent environment variables.
+
+ You can give `configure' initial values for configuration parameters
+by setting variables in the command line or in the environment. Here
+is an example:
+
+ ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
+
+ *Note Defining Variables::, for more details.
+
+Compiling For Multiple Architectures
+====================================
+
+You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory. To do this, you must use a version of `make' that
+supports the `VPATH' variable, such as GNU `make'. `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script. `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+ If you have to use a `make' that does not support the `VPATH'
+variable, you have to compile the package for one architecture at a
+time in the source code directory. After you have installed the
+package for one architecture, use `make distclean' before reconfiguring
+for another architecture.
+
+Installation Names
+==================
+
+By default, `make install' will install the package's files in
+`/usr/local/bin', `/usr/local/man', etc. You can specify an
+installation prefix other than `/usr/local' by giving `configure' the
+option `--prefix=PREFIX'.
+
+ You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files. If you
+give `configure' the option `--exec-prefix=PREFIX', the package will
+use PREFIX as the prefix for installing programs and libraries.
+Documentation and other data files will still use the regular prefix.
+
+ In addition, if you use an unusual directory layout you can give
+options like `--bindir=DIR' to specify different values for particular
+kinds of files. Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them.
+
+ If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System). The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+ For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Specifying the System Type
+==========================
+
+There may be some features `configure' cannot figure out automatically,
+but needs to determine by the type of machine the package will run on.
+Usually, assuming the package is built to be run on the _same_
+architectures, `configure' can figure that out, but if it prints a
+message saying it cannot guess the machine type, give it the
+`--build=TYPE' option. TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name which has the form:
+
+ CPU-COMPANY-SYSTEM
+
+where SYSTEM can have one of these forms:
+
+ OS KERNEL-OS
+
+ See the file `config.sub' for the possible values of each field. If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the machine type.
+
+ If you are _building_ compiler tools for cross-compiling, you should
+use the `--target=TYPE' option to select the type of system they will
+produce code for.
+
+ If you want to _use_ a cross compiler, that generates code for a
+platform different from the build platform, you should specify the
+"host" platform (i.e., that on which the generated programs will
+eventually be run) with `--host=TYPE'.
+
+Sharing Defaults
+================
+
+If you want to set default values for `configure' scripts to share, you
+can create a site shell script called `config.site' that gives default
+values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists. Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Defining Variables
+==================
+
+Variables not defined in a site shell script can be set in the
+environment passed to `configure'. However, some packages may run
+configure again during the build, and the customized values of these
+variables may be lost. In order to avoid this problem, you should set
+them in the `configure' command line, using `VAR=value'. For example:
+
+ ./configure CC=/usr/local2/bin/gcc
+
+causes the specified `gcc' to be used as the C compiler (unless it is
+overridden in the site shell script). Here is a another example:
+
+ /bin/bash ./configure CONFIG_SHELL=/bin/bash
+
+Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
+configuration-related scripts to be executed by `/bin/bash'.
+
+`configure' Invocation
+======================
+
+`configure' recognizes the following options to control how it operates.
+
+`--help'
+`-h'
+ Print a summary of the options to `configure', and exit.
+
+`--version'
+`-V'
+ Print the version of Autoconf used to generate the `configure'
+ script, and exit.
+
+`--cache-file=FILE'
+ Enable the cache: use and save the results of the tests in FILE,
+ traditionally `config.cache'. FILE defaults to `/dev/null' to
+ disable caching.
+
+`--config-cache'
+`-C'
+ Alias for `--cache-file=config.cache'.
+
+`--quiet'
+`--silent'
+`-q'
+ Do not print messages saying which checks are being made. To
+ suppress all normal output, redirect it to `/dev/null' (any error
+ messages will still be shown).
+
+`--srcdir=DIR'
+ Look for the package's source code in directory DIR. Usually
+ `configure' can determine that directory automatically.
+
+`configure' also accepts some other, not widely useful, options. Run
+`configure --help' for more details.
+
3  Makefile.am
@@ -0,0 +1,3 @@
+
+SUBDIRS = src
+
619 Makefile.in
@@ -0,0 +1,619 @@
+# Makefile.in generated by automake 1.9.5 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+srcdir = @srcdir@
+top_srcdir = @top_srcdir@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+top_builddir = .
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+INSTALL = @INSTALL@
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in $(srcdir)/config.h.in \
+ $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
+ TODO compile config.guess config.sub depcomp install-sh \
+ ltmain.sh missing
+subdir = .
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/byteorder.m4 \
+ $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/configure.in
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno configure.status.lineno
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-exec-recursive install-info-recursive \
+ install-recursive installcheck-recursive installdirs-recursive \
+ pdf-recursive ps-recursive uninstall-info-recursive \
+ uninstall-recursive
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+am__remove_distdir = \
+ { test ! -d $(distdir) \
+ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
+ && rm -fr $(distdir); }; }
+DIST_ARCHIVES = $(distdir).tar.gz
+GZIP_ENV = --best
+distuninstallcheck_listfiles = find . -type f -print
+distcleancheck_listfiles = find . -type f -print
+ACLOCAL = @ACLOCAL@
+AMDEP_FALSE = @AMDEP_FALSE@
+AMDEP_TRUE = @AMDEP_TRUE@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+ECHO = @ECHO@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBPTP2_VERSION_INFO = @LIBPTP2_VERSION_INFO@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIBUSB_CONFIG = @LIBUSB_CONFIG@
+LINUX_OS_FALSE = @LINUX_OS_FALSE@
+LINUX_OS_TRUE = @LINUX_OS_TRUE@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+OBJEXT = @OBJEXT@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PTPCAM_CFLAGS = @PTPCAM_CFLAGS@
+PTPCAM_FALSE = @PTPCAM_FALSE@
+PTPCAM_LDFLAGS = @PTPCAM_LDFLAGS@
+PTPCAM_TRUE = @PTPCAM_TRUE@
+RANLIB = @RANLIB@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_F77 = @ac_ct_F77@
+ac_ct_RANLIB = @ac_ct_RANLIB@
+ac_ct_STRIP = @ac_ct_STRIP@
+am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
+am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
+am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
+am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+datadir = @datadir@
+effective_target = @effective_target@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+SUBDIRS = src
+all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
+.SUFFIXES:
+am--refresh:
+ @:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
+ cd $(srcdir) && $(AUTOMAKE) --gnu \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ echo ' $(SHELL) ./config.status'; \
+ $(SHELL) ./config.status;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ $(SHELL) ./config.status --recheck
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(srcdir) && $(AUTOCONF)
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+
+config.h: stamp-h1
+ @if test ! -f $@; then \
+ rm -f stamp-h1; \
+ $(MAKE) stamp-h1; \
+ else :; fi
+
+stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
+ @rm -f stamp-h1
+ cd $(top_builddir) && $(SHELL) ./config.status config.h
+$(srcdir)/config.h.in: $(am__configure_deps)
+ cd $(top_srcdir) && $(AUTOHEADER)
+ rm -f stamp-h1
+ touch $@
+
+distclean-hdr:
+ -rm -f config.h stamp-h1
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+ -rm -f libtool
+uninstall-info-am:
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+mostlyclean-recursive clean-recursive distclean-recursive \
+maintainer-clean-recursive:
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) ' { files[$$0] = 1; } \
+ END { for (i in files) print i; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ $(am__remove_distdir)
+ mkdir $(distdir)
+ $(mkdir_p) $(distdir)/m4
+ @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
+ list='$(DISTFILES)'; for file in $$list; do \
+ case $$file in \
+ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
+ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
+ esac; \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test "$$dir" != "$$file" && test "$$dir" != "."; then \
+ dir="/$$dir"; \
+ $(mkdir_p) "$(distdir)$$dir"; \
+ else \
+ dir=''; \
+ fi; \
+ if test -d $$d/$$file; then \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+ list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(mkdir_p) "$(distdir)/$$subdir" \
+ || exit 1; \
+ distdir=`$(am__cd) $(distdir) && pwd`; \
+ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
+ (cd $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$top_distdir" \
+ distdir="$$distdir/$$subdir" \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+ -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
+ || chmod -R a+r $(distdir)
+dist-gzip: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+
+dist-bzip2: distdir
+ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
+ $(am__remove_distdir)
+
+dist-tarZ: distdir
+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+ $(am__remove_distdir)
+
+dist-shar: distdir
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+ $(am__remove_distdir)
+
+dist-zip: distdir
+ -rm -f $(distdir).zip
+ zip -rq $(distdir).zip $(distdir)
+ $(am__remove_distdir)
+
+dist dist-all: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+
+# This target untars the dist file and tries a VPATH configuration. Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+ case '$(DIST_ARCHIVES)' in \
+ *.tar.gz*) \
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
+ *.tar.bz2*) \
+ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
+ *.tar.Z*) \
+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
+ *.shar.gz*) \
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
+ *.zip*) \
+ unzip $(distdir).zip ;;\
+ esac
+ chmod -R a-w $(distdir); chmod a+w $(distdir)
+ mkdir $(distdir)/_build
+ mkdir $(distdir)/_inst
+ chmod a-w $(distdir)
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+ && cd $(distdir)/_build \
+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
+ $(DISTCHECK_CONFIGURE_FLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
+ && $(MAKE) $(AM_MAKEFLAGS) check \
+ && $(MAKE) $(AM_MAKEFLAGS) install \
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
+ distuninstallcheck \
+ && chmod -R a-w "$$dc_install_base" \
+ && ({ \
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
+ && rm -rf "$$dc_destdir" \
+ && $(MAKE) $(AM_MAKEFLAGS) dist \
+ && rm -rf $(DIST_ARCHIVES) \
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
+ $(am__remove_distdir)
+ @(echo "$(distdir) archives ready for distribution: "; \
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+ sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
+distuninstallcheck:
+ @cd $(distuninstallcheck_dir) \
+ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
+ || { echo "ERROR: files left after uninstall:" ; \
+ if test -n "$(DESTDIR)"; then \
+ echo " (check DESTDIR support)"; \
+ fi ; \
+ $(distuninstallcheck_listfiles) ; \
+ exit 1; } >&2
+distcleancheck: distclean
+ @if test '$(srcdir)' = . ; then \
+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
+ exit 1 ; \
+ fi
+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+ || { echo "ERROR: files left in build directory after distclean:" ; \
+ $(distcleancheck_listfiles) ; \
+ exit 1; } >&2
+check-am: all-am
+check: check-recursive
+all-am: Makefile config.h
+installdirs: installdirs-recursive
+installdirs-am:
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-hdr \
+ distclean-libtool distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-exec-am:
+
+install-info: install-info-recursive
+
+install-man:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -rf $(top_srcdir)/autom4te.cache
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am: uninstall-info-am
+
+uninstall-info: uninstall-info-recursive
+
+.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
+ check-am clean clean-generic clean-libtool clean-recursive \
+ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
+ dist-shar dist-tarZ dist-zip distcheck distclean \
+ distclean-generic distclean-hdr distclean-libtool \
+ distclean-recursive distclean-tags distcleancheck distdir \
+ distuninstallcheck dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-exec \
+ install-exec-am install-info install-info-am install-man \
+ install-strip installcheck installcheck-am installdirs \
+ installdirs-am maintainer-clean maintainer-clean-generic \
+ maintainer-clean-recursive mostlyclean mostlyclean-generic \
+ mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
+ tags tags-recursive uninstall uninstall-am uninstall-info-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
0  NEWS
No changes.
841 README
@@ -0,0 +1,841 @@
+libptp2 (c)2001-2006 Mariusz Woloszyn <emsi@ipartners.pl>
+ptpcam (c)2001-2006 Mariusz Woloszyn <emsi@ipartners.pl>
+
+=====================
+*About this software*
+=====================
+
+You may find new versions of this software at:
+http://libptp.sf.net/
+
+The ./src folder contains following code:
+ptp.c - the main libptp2 code
+ptp.h - libptp2 header files
+ptp-pack.c - this file is included into ptp.c (internal code)
+ptpcam.h - ptpcam header file
+ptpcam.c - the software to manipulate PTP cameras;
+ it does things that you can't do with gphoto2
+
+The libptp2 library is under development yet, but is considered to be
+functional and quite stable.
+It was written to be used with gphoto2, but can be easily used with any other
+software.
+
+==============
+*Requirements*
+==============
+
+Currently this package requires libusb to build ptpcam.
+The libptp2 library itself is transport layer independent and does not require
+libusb, however no other transport layer has been tested due to lack
+of PTP non-USB devices.
+You can obtain libusb at http://libusb.sf.net/
+BE AWARE THAT libusb-0.1.10 contained bugs that might affect your camera!
+Use newer version or libusb-0.1.8 instead.
+If you want to build this library (for test purposes) on a box without
+libusb pass --disable-ptpcam option to configure script.
+A PTP camera seems to be required also to take full advantage of this package.
+
+
+==================
+*What is libptp2?*
+==================
+
+libptp2 is a library used to communicate with PTP devices like still
+imaging cameras.
+At the current stage you may use ptpcam tool boundled with libptp2 to perform
+some basic operations like downloading photos or setting camera properties.
+For other operations and GUI you might consider using libgphoto2
+(which contains forked version of libptp2 code), gphoto2 and gtkam;
+see http://www.gphoto.org.
+
+
+===================
+*Supported Cameras*
+===================
+
+The list of PTP cameras is constantly growing. Most (if not all) USB still
+cameras designed after 2002 are PTP compliant. Below is the list of vendors
+implementing PTP in their cameras:
+
+* Kodak
+* HP
+* Nikon
+* Canon
+* Panasonic
+* Olympus
+* Konika
+* Minolta
+* Fuji
+* Ricoh
+* Sony
+
+Note that for some HP, Nikon, Canon, Sony and possibly other cameras
+you have to switch them to PTP mode as in most cases the camera is dual mode:
+PTP and USB Mass Storage or PTP and native.
+For some cameras it even changes the Product ID number, so don't panic
+just switch the mode.
+Don't ask me how to do it. Refer to camera documentation.
+
+Please note that if your camera is supporting PTP it does NOT mean that
+it is capable of performing all PTP operations (like triggering capture,
+uploading files or tweaking properties). Sony cameras are good example of
+poor PTP implementation where the only thing you can do is downloading files.
+
+=============
+*Quick Start*
+=============
+
+First of all you need kernel USB support. Please refer to your OS
+documentation for more info!
+For Linux users you need "Preliminary USB device filesystem" and "USB Host
+Controller" (the one for your hardware: EHCI, OHCI or UHCI) support in your
+kernel.
+CAUTION: there was a bug in Linux Kernel 2.4.18 UHCI driver so make sure you
+use more recent kernel!
+If you got a kernel support, make sure that your usbdevfs is mounted under
+/proc/bus/usb. In my case the fstab entry looks like this:
+
+usb /proc/bus/usb usbdevfs defaults,user 0 0
+
+(NO, the entry in fstab isn't enough, you have to type: mount /proc/bus/usb).
+If you want to run ptpcam as regular user read this:
+http://gphoto.sourceforge.net/doc/manual/permissions-usb.html
+although I suggest performing all tests as root unless you're security
+paranoid.
+
+If you have a PTP camera connected to your computer it should be detected by
+invoking "ptpcam --list-devices".
+In my case the output looks like this:
+
+root@emsi(chroot):~# ptpcam --list-devices
+Listing devices...
+bus/dev vendorID/prodID device model
+002/035 0x040A/0x0400 Kodak mc3
+002/036 0x040A/0x0500 DX3500 Digital Camera
+001/027 0x040A/0x0160 DC4800 Zoom Digital Camera
+
+If you get something like this:
+
+emsi@emsi(chroot):~> ptpcam --list-devices
+Listing devices...
+bus/dev vendorID/prodID device model
+ERROR: Could not open session!
+Try to reset the camera.
+
+it means that you did not read carefully what I wrote above about running
+ptpcam as regular user or your camera has stalled (needs reset).
+
+If you need some more debug try --verbose or --verbose=2 thus increasing the
+verbose level.
+
+What if you get "Found no PTP devices"?
+If you're sure that your camera is a PTP camera please check your OS usb
+config. In case of Linux make sure that you have usbdevfs mounted under
+/proc/bus/usb. If so read the output of 'cat /proc/bus/usb/devices' and check
+if your camera is listed there.
+It might be that your camera is not in PTP mode. To verify so, issue:
+
+cat /proc/bus/usb/devices | grep "Cls=06"
+
+If you find something like this:
+
+I: If#= 0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none)
+ ^^^^^^^^^^^^^
+that means that your camera is in PTP mode and should be detected.
+If there is no interface of Class 6 refer to camera documentation to find
+how to switch it into PTP mode.
+
+You may also try to use --force option while listing cameras or talking to
+it, but don't use it unless you really know what you are doing!!!
+--force forces ptpcam to talk to non PTP devices [which makes sense only in
+case of PTP device with interface class other than 6 (PTP), like Kodak DC240
+with PTP firmware]. BE AWARE that talking PTPish to non PTP devices may
+cause harmful damage!!!
+
+
+============
+*What next?*
+============
+
+I guess that you'd like to download images or tweak camera properties? ;)
+
+Use "ptpcam --get-all-files" to download all images from your camera.
+By default all images are copied to local folder and filename and creation
+time is preserved. By default the download operation skips a file if it
+finds one with the same name in local folder. This enables you to do
+quick-sync downloading only the newly captured files. Of course you can
+request to overwrite existing files passin --overwrite on command line.
+You may also download a specific file using --get-file=HANDLE providing object
+handle as a parameter (you can find it with --list-files).
+If ptpcam detects more than one camera you need to pass --bus=BUS-NUMBER and,
+or --dev=DEV-NUMBER arguments otherwise ptpcam tries to talk to first detected
+camera. If you specify only bus or dev number ptpcam talks to first matching
+camera.
+
+To list all available camera properties use "ptpcam --list-properties"
+Unfortunately if you have bought a high-end camera or a very expensive PTP
+camera it DOES NOT mean that it supports setting any properties. The problem
+is that manufacturers do not specify in documentation what properties or
+operations are supported by the given camera. In most cases you never know
+until you buy the camera. [I'll try to provide a list of supported camera
+properties and operations on libptp.sf.net]
+
+Let's say that you get something like this:
+
+root@emsi(chroot):~# ptpcam --list-properties
+Listing properties...
+Querying: DX3500 Digital Camera
+0x5001 : Battery Level
+
+It means that your camera (in this case DX3500 Digital Camera) supports only
+one property, which is "Battery Level" (property number 0x5001). Not much,
+but you still can try to list its value:
+
+root@emsi(chroot):~# ptpcam --show-property=5001
+Camera: DX3500 Digital Camera
+Property 'Battery Level'
+Current value is 100
+Factory default value is 100
+The property is read only, enumerated. Allowed values are:
+0
+10
+100
+
+As you can see --show-property argument does not require 0x, that's for your
+convenience. ;)
+The output of this command is quite verbose. It tells you about Current value,
+Factory default value and the property type. The property type may vary among
+different cameras! In this camera 'Battery Level' is read only and
+enumerated. Allowed values are 0, 10 and 100 which (more or less) means:
+0 - low battery lever (may shut down immediately), 10 - medium battery
+level, 100 - full battery level. However for a different camera this
+property may be defined as range of 1 to 100 with step of 1.
+That's just an example.
+
+Now let's look at the list of properties of another camera:
+
+root@emsi(chroot):~# ptpcam --list-properties
+Listing properties...
+Querying: DC4800 Zoom Digital Camera
+0x5001 : Battery Level
+0x5003 : Image Size
+0x5004 : Compression Setting
+0x5005 : White Balance
+0x5006 : RGB Gain
+0x5007 : F-Number
+0x5008 : Focal Length
+0x5009 : Focus Distance
+0x500a : Focus Mode
+0x500b : Exposure Metering Mode
+0x500c : Flash Mode
+0x500d : Exposure Time
+0x500e : Exposure Program Mode
+0x500f : Exposure Index (film speed ISO)
+0x5010 : Exposure Bias Compensation
+0x5011 : Date Time
+0x5013 : Still Capture Mode
+0x5015 : Sharpness
+0x5016 : Digital Zoom
+0x5017 : Effect Mode
+0x5018 : Burst Number
+0x501c : Focus Metering Mode
+0xd001 : EK Color Temperature
+0xd002 : EK Date Time Stamp Format
+0xd003 : EK Beep Mode
+0xd004 : EK Video Out
+0xd005 : EK Power Saving
+0xd006 : EK UI Language
+
+All properties of numbers starting with 0x50 are standard PTP properties,
+although for many of them the type (enumerated or range) and value meaning
+are NOT specified by the PTP standard and may vary among different cameras!
+The properties starting with 0xd0 are PTP extension (in this case EK means
+Eastman Kodak extension) and in most cases are not known to public at all.
+Probably you will have to reverse-engineer their meaning (I'm eager to
+receive a feedback from you in such case! ;).
+
+
+==========================
+* Setting property values*
+==========================
+
+For example if you'd like to change the 'Image Size' property you have to do
+that in two steps. First display the property using --show-property switch.
+Determine whether the property is settable, what is the type of value
+(a number or string) and which values are supported!
+Keep in mind that some properties are settable only in certain camera
+states or modes. Also the valid values may vary depending on current camera
+state!
+OK. Let's get back to our example. To display property 'Image Size',
+which number is 0x5003 you have to type:
+
+root@emsi(chroot):~# ptpcam --show-property=5003
+Camera: DC4800 Zoom Digital Camera
+Property 'Image Size'
+Data type is 0xffff
+Current value is "2160x1440"
+Factory default value is "2160x1440"
+The property is settable, enumerated. Allowed values are:
+"2160x1440"
+"1800x1200"
+"1536x1024"
+"1080x720"
+
+As you can see, this camera supports four different image sizes. The
+property value is a string (values are printed within quotation marks).
+To change 'Image Size' property pass --val=VALUE option to ptpcam while still
+specifying the property with --set-property=PROPERTY_NUMBER.
+Note that only certain values are allowed.
+
+In our example let it look like this:
+
+root@emsi(chroot):~# ptpcam --set-property=5003 --val=1080x720
+Camera: DC4800 Zoom Digital Camera
+Property 'Image Size'
+Data type is 0xffff
+Current value is "2160x1440"
+Factory default value is "2160x1440"
+The property is settable, enumerated. Allowed values are:
+"2160x1440"
+"1800x1200"
+"1536x1024"
+"1080x720"
+Setting property value to '1080x720'
+
+If everything goes OK, no error is displayed. You may verify, of course,
+if the property value was set properly.
+If you get something like this:
+
+PTP: Invalid Device Prop Value
+
+it indicates that the property value was not set due to invalid values.
+
+Keep in mind that in most cases changing one property may cause another one
+property to change! That happens especially in any Automated modes!!!
+
+FIXME: The device should report that another property was changed issuing
+DevicePropChanged event! We may catch that and report to user.
+
+=================
+*Common problems*
+=================
+
+Sometimes it might happen that the device claims to support given property
+but does not respond to --show-property request. In most cases it's because of
+improper PTP implementation on the camera side.
+Sometimes the list of supported properties might vary while changing
+camera mode.
+Moreover, given property may not have any meaning in a certain camera state.
+For example setting or getting 'Focus Distance' property may not be allowed
+in automated camera mode! In such case try to switch the camera to manual
+mode.
+For example my Kodak DC4800 fails over --show-property=5006
+(which is "RGB Gain") if RGB Gain is not set. It looks like this:
+
+root@emsi(chroot):~# ptpcam --show-property=5006
+Camera: DC4800 Zoom Digital Camera
+Property 'RGB Gain'
+ERROR: Could not get device property description!
+Try to reset the camera.
+
+In such a case you need to issue a --reset request to the camera:
+
+root@emsi(chroot):~# ptpcam --reset
+Resetting input pipe!
+Device status OK
+
+It's a good practice to verify whether the reset went OK issuing
+--list-devices. Sometimes one or two more reset may be needed to properly
+reset the camera.
+
+
+=========================
+*Standard PTP Properties*
+=========================
+
+
+Below I am providing a short list of properties and their meaning values
+according to PTP specification.
+
+0x5001 : Battery Level
+ DataType: UINT8
+ Forms: Enum, Range
+ PTP standard does not define any special values, however for number
+ of Kodak devices 0 means no power (alternative power source), 10
+ means medium battery lever and 100 means full battery.
+
+0x5002 : Functional Mode
+ DataType: UINT16
+ Forms: Enum
+ This property indicates whether the device is in an alternate mode
+ that provides a different set of capabilities (i.e. supported
+ operations, properties, events, etc.). If the device supports only
+ one mode, this value should always be zero.
+ PTP standard specifies following values:
+ 0x0000 - Standard Mode
+ 0x0001 - Sleep State
+ All other values with bit 15 set to 0 are Reserved.
+ All values with bit 15 set to 1 are Vendor Specific.
+
+0x5003 : Image Size
+ DataType: String
+ Forms: Enum, Range
+ "This property describes the height and width of the image that will
+ be captured in pixels supported by the device." The string is of the
+ format "WxH" where the W represents the width and the H represents
+ the height represented as unsigned integers.
+
+0x5004 : Compression Setting
+ DataType: UINT8
+ Forms: Enum, Range
+ Quoted from PTP (PIMA 15740) specs:
+ "Compression setting is a property intended to be as close as is
+ possible to being linear with respect to perceived image quality
+ over a broad range of scene content, and is represented by either a
+ range or an enumeration of integers. Low integers are used to
+ represent low quality (i.e. maximum compression) while high
+ integers are used to represent high quality (i.e. minimum
+ compression). No attempt is made in this standard (PTP) to assign
+ specific values of this property with any absolute benchmark, so
+ any available settings on a device are relative to that device only
+ and are therefore device-specific."
+
+0x5005 : White Balance
+ DataType: UINT16
+ Forms: Enum
+ PTP standard specifies following values:
+ 0x0000 - Undefined
+ 0x0001 - Manual
+ 0x0002 - Automatic
+ 0x0003 - One-push Automatic
+ 0x0004 - Daylight
+ 0x0005 - Fluorescent
+ 0x0006 - Tungsten
+ 0x0007 - Flash
+ All other values with bit 15 set to zero are reserved.
+ All values with bit 15 set to 1 are vendor-defined.
+
+ Manual means that white balance is set directly using the RGB Gain
+ (0x5006) property.
+ Automatic indicates that the device sets this property using some
+ kind of automatic mechanism.
+ One-push Automatic means that the user must press the capture
+ button while pointing objective at a white field, at which time the
+ device determines the white balance setting.
+ Daylight means that the device sets the white balance to a value
+ that is suitable for daylight use.
+ Tungsten means that the device sets the white balance to a value
+ that is suitable for use with a tungsten light source.
+ Flash means that the white balance is set to a value that is
+ suitable for flash conditions.
+
+0x5006 : RGB Gain
+ DataType: String
+ Forms: Enum, Range
+ This property takes the form of a string that is parsed as follows:
+ "R:G:B" where the R represents the red gain, the G represents the
+ green gain, and the B represents the blue gain. For example, for
+ an RGB ratio of red=2, green=3 and blue=4, the RGB string could be
+ "2:3:4" or "200:300:400". Each part of the RGB string is in decimal
+ form of UINT16 integer.
+
+0x5007 : F-Number
+ DataType: UINT16
+ Forms: Enum
+ This property represents the aperture of the lens. The units are
+ equal to the F-Number scaled by 100.
+ Example values are: 280 (2.8), 560 (5.6), 800 (8), etc.
+
+0x5008 : Focal Length
+ DataType: UINT32
+ Forms: Enum, Range
+ This property represents the 35mm equivalent focal length. The
+ units are equal to focal length in millimeters multiplied by 100.
+
+0x5009 : Focus Distance
+ DataType: UINT16
+ Forms: Enum, Range
+ Value of this property represents the focus distance in
+ millimeters. A value of 0xFFFF means infinity.
+
+0x500a : Focus Mode
+ DataType: UINT16
+ Forms: Enum
+ PTP standard specifies following values:
+ 0x0000 - Undefined
+ 0x0001 - Manual
+ 0x0002 - Automatic
+ 0x0003 - Automatic Macro (close-up)
+ All other values with bit 15 set to zero are reserver.
+ All values with bit 15 set to 1 are vendor-defined.
+
+0x500b : Exposure Metering Mode
+ DataType: UINT16
+ Forms: Enum
+ PTP standard specifies following values:
+ 0x0000 - Undefined
+ 0x0001 - Average
+ 0x0002 - Center-weighted-average
+ 0x0003 - Multi-spot
+ 0x0004 - Center-spot
+ All other values with bit 15 set to zero are reserved.
+ All values with bit 15 set to 1 are vendor-defined.
+
+0x500c : Flash Mode
+ DataType: UINT16
+ Forms: Enum
+ PTP standard specifies following values:
+ 0x0000 - Undefined
+ 0x0001 - Auto flash
+ 0x0002 - Flash off
+ 0x0003 - Fill flash
+ 0x0004 - Red eye auto
+ 0x0005 - Red eye fill
+ 0x0006 - External flash
+ All other values with bit 15 set to zero are reserved.
+ All values with bit 15 set to 1 are vendor-defined.
+
+0x500d : Exposure Time
+ DataType: UINT32
+ Forms: Enum, Range
+ This property represents the shutter speed. It has units of seconds
+ scaled by 10000.
+ For example:
+ 40 means 1/250 sec.
+ 80 means 1/125 sec.
+ 160 means 1/62.5 sec. and so on.
+
+0x500e : Exposure Program Mode
+ DataType: UINT16
+ Forms: Enum
+ PTP standard specifies following values:
+ 0x0000 - Undefined
+ 0x0001 - Manual
+ 0x0002 - Automatic
+ 0x0003 - Aperture Priority
+ 0x0004 - Shutter Priority
+ 0x0005 - Program Creative (greater depth of field)
+ 0x0006 - Program Action (faster shutter speed)
+ 0x0007 - Portrait
+ All other values with bit 15 set to zero are reserved.
+ All values with bit 15 set to 1 are vendor-defined.
+
+0x500f : Exposure Index (film speed ISO)
+ DataType: UINT16
+ Forms: Enum, Range
+ Value of this property represents the emulation of film speed
+ setting. The setting corresponds to the ISO designations. A value of
+ 0xFFFF means automatic ISO setting.
+
+0x5010 : Exposure Bias Compensation
+ DataType: INT16
+ Forms: Enum, Range
+ Value of this property represents the exposure compensation. The
+ units are in "stops" scaled by 1000. The setting values are in
+ APEX.
+ For example the value of -2000 (means 4X less energy on sensor)
+ two stops less exposure (darker image). The value of 1500 means
+ one and a half stops more exposure (2.25X more energy on sensors).
+
+0x5011 : Date Time
+ DataType: String
+ Forms: none
+ Value of this property represents the device date and time in ISO
+ 8601 format. It's a string of "YYYYMMDDThhmmss.s", where YYYY
+ represents the year, MM represents the month (01-12), DD is the day
+ of the month (01-31), T is a constant character, hh represents the
+ hour since midnight (00-23), mm is the minutes (00-59) past the
+ hour and ss.s is the seconds past the minute, with the ".s" being
+ optional tenth of second past the second. The string can be
+ optionally appended with Z to indicate UTC, or +/-hhmm to indicate
+ that time is relative to a time zone.
+
+0x5012 : Pre-Capture Delay
+ DataType: UINT32
+ Forms: Enum, Range
+ Value of this property represents the amount of time delay that
+ should be inserted between the capture trigger and the initiation
+ of the data capture. This value shall be interpreted as
+ milliseconds.
+ It has nothing to do with the "0x5019 : Burst Interval" and the
+ "0x501b : Timelapse Interval"!
+
+0x5013 : Still Capture Mode
+ DataType: UINT16
+ Forms: Enum
+ PTP standard specifies following values:
+ 0x0000 - Undefined
+ 0x0001 - Normal
+ 0x0002 - Burst
+ 0x0003 - Timelapse
+ All other values with bit 15 set to zero are reserved.
+ All values with bit 15 set to 1 are vendor-defined.
+
+0x5014 : Contrast
+ DataType: UINT8
+ Forms: Enum, Range
+ Value of this property represents the contrast of a captured image.
+ The minimum supported value is used to represent the least
+ contrast, while the maximum value represents the most contrast.
+
+0x5015 : Sharpness
+ DataType: UINT8
+ Forms: Enum, Range
+ Value of this property represents the sharpness of a captured
+ image. The minimum value is used to represent the least amount of
+ sharpness, while the maximum value represents highest sharpness.
+
+0x5016 : Digital Zoom
+ DataType: UINT8
+ Forms: Enum, Range
+ Value of this property represents the effective zoom ratio of
+ digital camera's acquired image scaled by a factor of 10.
+ No digital zoom (1) represents the value of 10. The minimum value
+ represents minimum digital zoom (no digital zoom), typically
+ 10, while the maximum value represents the maximum digital zoom.
+
+0x5017 : Effect Mode
+ DataType: UINT16
+ Forms: Enum
+ PTP standard specifies following values:
+ 0x0000 - Undefined
+ 0x0001 - Standard (color)
+ 0x0002 - Black & White
+ 0x0003 - Sepia
+ All other values with bit 15 set to zero are reserved.
+ All values with bit 15 set to 1 are vendor-defined.
+
+0x5018 : Burst Number
+ DataType: UINT16
+ Forms: Enum, Range
+ Value of this property specifies the number of images that the
+ device will attempt to capture upon initiation of a burst capture.
+
+0x5019 : Burst Interval
+ Data Type: UINT16
+ Forms: Enum, Range
+ Value of this property represents the delay between captures upon
+ initialization of a burst captures. This value is expressed in
+ milliseconds.
+
+0x501a : Timelapse Number
+ DataType: UINT16
+ Forms: Enum, Range
+ Value of this property represents the number of images that the
+ device will attempt to capture upon initiation of a time-lapse
+ capture.
+
+0x501b : Timelapse Interval
+ DataType: UINT32
+ Forms: Enum, Range
+ Value of this property represents the delay between captures upon
+ initialization of a time-lapse capture. This value is expressed in
+ milliseconds
+
+0x501c : Focus Metering Mode
+ DataType: UINT16
+ Forms: Enum
+ PTP standard specifies following values:
+ 0x0000 - Undefined
+ 0x0001 - Center-spot
+ 0x0002 - Multi-spot
+ All other values with bit 15 set to zero are reserved.
+ All values with bit 15 set to 1 are vendor-defined.
+
+0x501d : UploadURL
+ DataType: String
+ Forms: none
+ This property describes the URL that the receiver may use to upload
+ images.
+
+0x501e : Artist
+ DataType: string
+ Forms: none
+ The name of the author of pictures.
+ This property is intended to populate the Artist field of an EXIF
+ images.
+
+0x501f : Copyright
+ DataType: string
+ Forms: none
+ Copyright notification.
+ This property is intended to populate the Copyright field of an
+ EXIF images.
+
+
+===================
+* Camera abilities*
+===================
+
+A couple of random camera abilities:
+
+0.048332 PTP/library.c(2): Device info:
+0.048347 PTP/library.c(2): Manufacturer: Nikon Corporation
+0.048359 PTP/library.c(2): model: E2500
+0.048370 PTP/library.c(2): device version: E2500v1.0
+0.048380 PTP/library.c(2): Vendor extension description: Nikon PTP Extensions
+0.048391 PTP/library.c(2): Supported operations:
+0.048402 PTP/library.c(2): 0x1001
+0.048413 PTP/library.c(2): 0x1002
+0.048424 PTP/library.c(2): 0x1003
+0.048435 PTP/library.c(2): 0x1004
+0.048446 PTP/library.c(2): 0x1005
+0.048457 PTP/library.c(2): 0x1006
+0.048468 PTP/library.c(2): 0x1007
+0.048479 PTP/library.c(2): 0x1008
+0.048490 PTP/library.c(2): 0x1009
+0.048500 PTP/library.c(2): 0x100a
+0.048511 PTP/library.c(2): 0x100b
+0.048522 PTP/library.c(2): 0x101b
+
+
+0.309772 PTP/library.c(2): Device info:
+0.309976 PTP/library.c(2): Manufacturer: Canon Inc.
+0.310211 PTP/library.c(2): model: Canon DIGITAL IXUS 400
+0.310427 PTP/library.c(2): device version:
+0.310634 PTP/library.c(2): Vendor extension description: (null)
+0.310861 PTP/library.c(2): Supported operations:
+0.311066 PTP/library.c(2): 0x1001
+0.311260 PTP/library.c(2): 0x1002
+0.311455 PTP/library.c(2): 0x1003
+0.311650 PTP/library.c(2): 0x1004
+0.311844 PTP/library.c(2): 0x1005
+0.312039 PTP/library.c(2): 0x1006
+0.312233 PTP/library.c(2): 0x1007
+0.312476 PTP/library.c(2): 0x1008
+0.312674 PTP/library.c(2): 0x1009
+0.312869 PTP/library.c(2): 0x100a
+0.313064 PTP/library.c(2): 0x100b
+0.313259 PTP/library.c(2): 0x100c
+0.313457 PTP/library.c(2): 0x100d
+0.313651 PTP/library.c(2): 0x100e
+0.313846 PTP/library.c(2): 0x100f
+0.314039 PTP/library.c(2): 0x1012
+0.314233 PTP/library.c(2): 0x1014
+0.321675 PTP/library.c(2): 0x1015
+0.322120 PTP/library.c(2): 0x1016
+0.322321 PTP/library.c(2): 0x101b
+0.322518 PTP/library.c(2): 0x9001
+0.322713 PTP/library.c(2): 0x9002
+0.322909 PTP/library.c(2): 0x9003
+0.323103 PTP/library.c(2): 0x9006
+0.323299 PTP/library.c(2): 0x9008
+0.323493 PTP/library.c(2): 0x9009
+0.323689 PTP/library.c(2): 0x900a
+0.323883 PTP/library.c(2): 0x900b
+0.324079 PTP/library.c(2): 0x900c
+0.324273 PTP/library.c(2): 0x900d
+0.324583 PTP/library.c(2): 0x900e
+0.324789 PTP/library.c(2): 0x900f
+0.324985 PTP/library.c(2): 0x9010
+0.325181 PTP/library.c(2): 0x9011
+0.325377 PTP/library.c(2): 0x9012
+0.325573 PTP/library.c(2): 0x9013
+0.325767 PTP/library.c(2): 0x9014
+0.325966 PTP/library.c(2): 0x9015
+0.326162 PTP/library.c(2): 0x9018
+0.326357 PTP/library.c(2): 0x9019
+0.326554 PTP/library.c(2): 0x901a
+0.326750 PTP/library.c(2): 0x901b
+0.326945 PTP/library.c(2): 0x901c
+0.327142 PTP/library.c(2): 0x901d
+0.327337 PTP/library.c(2): 0x901e
+0.327533 PTP/library.c(2): 0x901f
+0.327729 PTP/library.c(2): 0x9020
+0.327925 PTP/library.c(2): 0x9021
+0.555111 PTP2/library.c(2): Events Supported:
+0.555118 PTP2/library.c(2): 0x4001
+0.555125 PTP2/library.c(2): 0x4002
+0.555132 PTP2/library.c(2): 0x4003
+0.555138 PTP2/library.c(2): 0x4004
+0.555145 PTP2/library.c(2): 0x4005
+0.555152 PTP2/library.c(2): 0x4006
+0.555159 PTP2/library.c(2): 0x4008
+0.555165 PTP2/library.c(2): 0x400a
+0.555172 PTP2/library.c(2): 0x400c
+0.555179 PTP2/library.c(2): 0x400d
+0.555185 PTP2/library.c(2): 0xc001
+0.555192 PTP2/library.c(2): 0xc005
+0.555199 PTP2/library.c(2): 0xc006
+0.555206 PTP2/library.c(2): 0xc007
+0.555212 PTP2/library.c(2): 0xc008
+0.555219 PTP2/library.c(2): 0xc009
+0.555226 PTP2/library.c(2): 0xc00a
+0.555233 PTP2/library.c(2): 0xc00b
+0.555239 PTP2/library.c(2): 0xc00c
+0.555246 PTP2/library.c(2): 0xc00d
+0.555253 PTP2/library.c(2): Device Properties Supported:
+0.555260 PTP2/library.c(2): 0xd001
+0.555267 PTP2/library.c(2): 0xd002
+0.555273 PTP2/library.c(2): 0xd003
+0.555280 PTP2/library.c(2): 0xd02c
+0.555287 PTP2/library.c(2): 0xd02d
+0.555294 PTP2/library.c(2): 0xd02e
+0.555300 PTP2/library.c(2): 0xd02f
+0.555307 PTP2/library.c(2): 0xd030
+0.555314 PTP2/library.c(2): 0xd031
+0.555320 PTP2/library.c(2): 0xd032
+0.555327 PTP2/library.c(2): 0xd033
+0.555334 PTP2/library.c(2): 0xd034
+0.555341 PTP2/library.c(2): 0xd045
+0.555347 PTP2/library.c(2): 0xd046
+0.555354 PTP2/library.c(2): 0xd047
+0.555361 PTP2/library.c(2): 0xd048
+0.555368 PTP2/library.c(2): 0xd049
+
+0.509050 PTP/library.c(2): Device info:
+0.509067 PTP/library.c(2): Manufacturer: Canon Inc.
+0.509072 PTP/library.c(2): model: Canon DIGITAL IXUS II
+0.509077 PTP/library.c(2): device version:
+0.509082 PTP/library.c(2): Vendor extension description: (null)
+0.509091 PTP/library.c(2): Supported operations:
+0.509096 PTP/library.c(2): 0x1001
+0.509101 PTP/library.c(2): 0x1002
+0.509106 PTP/library.c(2): 0x1003
+0.509110 PTP/library.c(2): 0x1004
+0.509114 PTP/library.c(2): 0x1005
+0.509119 PTP/library.c(2): 0x1006
+0.509142 PTP/library.c(2): 0x1007
+0.509147 PTP/library.c(2): 0x1008
+0.509152 PTP/library.c(2): 0x1009
+0.509156 PTP/library.c(2): 0x100a
+0.509160 PTP/library.c(2): 0x100b
+0.509165 PTP/library.c(2): 0x100c
+0.509169 PTP/library.c(2): 0x100d
+0.509173 PTP/library.c(2): 0x100e
+0.509178 PTP/library.c(2): 0x100f
+0.509182 PTP/library.c(2): 0x1012
+0.509186 PTP/library.c(2): 0x1014
+0.509191 PTP/library.c(2): 0x1015
+0.509195 PTP/library.c(2): 0x1016
+0.509199 PTP/library.c(2): 0x101b
+0.509203 PTP/library.c(2): 0x9001
+0.509208 PTP/library.c(2): 0x9002
+0.509212 PTP/library.c(2): 0x9003
+0.509216 PTP/library.c(2): 0x9006
+0.509221 PTP/library.c(2): 0x9008
+0.509225 PTP/library.c(2): 0x9009
+0.509229 PTP/library.c(2): 0x900a
+0.509234 PTP/library.c(2): 0x900b
+0.509238 PTP/library.c(2): 0x900c
+0.509242 PTP/library.c(2): 0x900d
+0.509247 PTP/library.c(2): 0x900e
+0.509251 PTP/library.c(2): 0x900f
+0.509255 PTP/library.c(2): 0x9010
+0.509259 PTP/library.c(2): 0x9011
+0.509264 PTP/library.c(2): 0x9012
+0.509268 PTP/library.c(2): 0x9013
+0.509272 PTP/library.c(2): 0x9014
+0.509277 PTP/library.c(2): 0x9015
+0.509281 PTP/library.c(2): 0x9018
+0.509285 PTP/library.c(2): 0x9019
+0.509290 PTP/library.c(2): 0x901a
+0.509294 PTP/library.c(2): 0x901b
+0.509298 PTP/library.c(2): 0x901c
+0.509303 PTP/library.c(2): 0x901d
+0.509307 PTP/library.c(2): 0x901e
+0.509311 PTP/library.c(2): 0x901f
+0.509316 PTP/library.c(2): 0x9020
+0.509320 PTP/library.c(2): 0x9021
+
28 TODO
@@ -0,0 +1,28 @@
+
+1. poprawic ustawianie propertiesow: najpierw atoi sprawdza czy to jest
+numer, jesli numer to jedzie po numerze, jezeli nie numer to probuje po
+nazwie.
+
+2. poprawa capture: niech przed trigerem sprawdza ile wynosi "Exposure Time"
+i jezeli sie da odczytac to niech na tyle ustawia timeout.
+
+3. moze dobrze byloby zapuscic --initiate-capture?
+
+4. kilka opcji w linii: np. -c --time 20 -iso 200 -f-number 10
+
+
+
+
+Potwierdzenie delete.
+Sciaganie z kryterium daty (z danej daty, z tego samego dnia co okreslona
+fota itp.).
+Sprawdzanie rozmiaru (ile wszystkie, ile kryterium, czy wystarczy miejsca na
+dysku).
+
+TODO:
+
+- check for free() all malloced memory ( consider custom *alloc() wrappers )
+
+- add batching support
+- implement range download/delete and so on
+- file upload
7,028 aclocal.m4
7,028 additions, 0 deletions not shown
142 compile
@@ -0,0 +1,142 @@
+#! /bin/sh
+# Wrapper for compilers which do not understand `-c -o'.
+
+scriptversion=2005-02-03.08
+
+# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
+# Written by Tom Tromey <tromey@cygnus.com>.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# This file is maintained in Automake, please report
+# bugs to <bug-automake@gnu.org> or send patches to
+# <automake-patches@gnu.org>.
+
+case $1 in
+ '')
+ echo "$0: No command. Try \`$0 --help' for more information." 1>&2
+ exit 1;
+ ;;
+ -h | --h*)
+ cat <<\EOF
+Usage: compile [--help] [--version] PROGRAM [ARGS]
+
+Wrapper for compilers which do not understand `-c -o'.
+Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
+arguments, and rename the output as expected.
+
+If you are trying to build a whole package this is not the
+right script to run: please start by reading the file `INSTALL'.
+
+Report bugs to <bug-automake@gnu.org>.
+EOF
+ exit $?
+ ;;
+ -v | --v*)
+ echo "compile $scriptversion"
+ exit $?
+ ;;
+esac
+
+ofile=
+cfile=
+eat=
+
+for arg
+do
+ if test -n "$eat"; then
+ eat=
+ else
+ case $1 in
+ -o)
+ # configure might choose to run compile as `compile cc -o foo foo.c'.
+ # So we strip `-o arg' only if arg is an object.
+ eat=1
+ case $2 in
+ *.o | *.obj)
+ ofile=$2
+ ;;
+ *)
+ set x "$@" -o "$2"
+ shift
+ ;;
+ esac
+ ;;
+ *.c)
+ cfile=$1
+ set x "$@" "$1"
+ shift
+ ;;
+ *)
+ set x "$@" "$1"
+ shift
+ ;;
+ esac
+ fi
+ shift
+done
+
+if test -z "$ofile" || test -z "$cfile"; then
+ # If no `-o' option was seen then we might have been invoked from a
+ # pattern rule where we don't need one. That is ok -- this is a
+ # normal compilation that the losing compiler can handle. If no
+ # `.c' file was seen then we are probably linking. That is also
+ # ok.
+ exec "$@"
+fi
+
+# Name of file we expect compiler to create.
+cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
+
+# Create the lock directory.
+# Note: use `[/.-]' here to ensure that we don't use the same name
+# that we are using for the .o file. Also, base the name on the expected
+# object file name, since that is what matters with a parallel build.
+lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
+while true; do
+ if mkdir "$lockdir" >/dev/null 2>&1; then
+ break
+ fi
+ sleep 1
+done
+# FIXME: race condition here if user kills between mkdir and trap.
+trap "rmdir '$lockdir'; exit 1" 1 2 15
+
+# Run the compile.
+"$@"
+ret=$?
+
+if test -f "$cofile"; then
+ mv "$cofile" "$ofile"
+elif test -f "${cofile}bj"; then
+ mv "${cofile}bj" "$ofile"
+fi
+
+rmdir "$lockdir"
+exit $ret
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
1,466 config.guess
@@ -0,0 +1,1466 @@
+#! /bin/sh
+# Attempt to guess a canonical system name.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+
+timestamp='2005-08-03'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+# 02110-1301, USA.
+#