Commit Graph

15 Commits

Author SHA1 Message Date
axxel
5c9d7b2759 fix white-space and indentation inconsistencies in ... (#1002)
* examples
 * gphoto2
 * libgphoto2
 * libgphoto2_port

The code (at least in this part of the project) is effectively formated
using tabs with a tab-size of 8 as a means for indentation.

There have been a few places where spaces were introduced. Some obviously
with an indent size of 8 in mind, others with an indent size of 4.

This commit tries its best to make the use of tabs consistent again, at
least for indenting lines. The "intra line" indentation (white space after
the first non-white-space character) is still a bit of a mess.

Co-authored-by: axxel <awagger@web.de>
2024-09-05 09:25:57 +02:00
Siim Meerits
456a1d598b Remove trailing whitespace from all *.h and *.c files. 2020-07-27 17:37:00 +03:00
peterbud
230e2554f8 add O_BINARY flag for open() calls to write images in binary mode on Windows 2016-11-19 23:47:21 +01:00
Marcus Meissner
14aab4929c remove probably unistd.h include , or protected by ifdef for
building better with Visual C

https://github.com/gphoto/libgphoto2/issues/33
2016-01-03 18:25:33 +01:00
Marcus Meissner
1b9ead0602 pass onoff argument to autofocus
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15209 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-10-09 10:24:16 +00:00
Marcus Meissner
83fe1b32f8 remove warning
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14928 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-05-02 14:41:17 +00:00
Marcus Meissner
73861f1203 From: "Daniel P. Berrange" <dan@berrange.com>
A bunch of static functions are unused, so wrap them in
#if 0


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14898 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:12:39 +00:00
Marcus Meissner
c1ddde0315 From: "Daniel P. Berrange" <berrange@redhat.com>
A great many functions have variables which are set to some
value, but never read thereafter. All these variables can be
removed with no functional impact.



git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14896 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-04-11 20:10:32 +00:00
Marcus Meissner
4d3129c1c7 added a bit focusing to the preview sample, also added manual focusing
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14174 67ed7778-7388-44ab-90cf-0a291f65f57c
2013-01-09 19:58:56 +00:00
Marcus Meissner
bd7d4e26dc add a focusing sample to preview
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14173 67ed7778-7388-44ab-90cf-0a291f65f57c
2013-01-09 19:11:52 +00:00
Marcus Meissner
c7d639a0fd testcase for eos zooming
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@13059 67ed7778-7388-44ab-90cf-0a291f65f57c
2010-05-24 12:27:44 +00:00
Marcus Meissner
3efe841cc1 fixed for new gp_log functions
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12756 67ed7778-7388-44ab-90cf-0a291f65f57c
2010-03-13 11:39:14 +00:00
Marcus Meissner
1ec1f4fcd4 comment out capture (should just take previews)
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12618 67ed7778-7388-44ab-90cf-0a291f65f57c
2010-01-17 20:48:15 +00:00
Marcus Meissner
1d5162aebf owner -> ownername
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12300 67ed7778-7388-44ab-90cf-0a291f65f57c
2009-07-29 07:32:58 +00:00
Marcus Meissner
6ccd87a6b9 added a preview taking example
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12286 67ed7778-7388-44ab-90cf-0a291f65f57c
2009-07-28 07:50:22 +00:00