11 Commits

Author SHA1 Message Date
axxel
f41df32817 fix white-space and indentation inconsistencies (second round)
This is basically a continuation of the work from #1002 but her for the
camlibs directory. The purpose was to replace spaces as a means for
indentation with tab characters.

Note: there are some files which are still offending the general
rule but are (mostly) consistent within themselves. I let them be for
the moment. Fixing them would basically replace the whole file.

Also: there are still a ton of whitespace related inconsistencies like
"x=10" vs "x = 10" or "func(10)" vs "func (10)".

This is a whitespace only change (if you include newlines as whitespace).
2024-09-15 10:53:41 +02:00
Marcus Meissner
ab33b92159 report file info 2021-10-03 14:54:05 +02:00
Siim Meerits
4d161b4647 Fix examples compilation warnings.
* best-iso.c: Remove or comment out unused variables.
* sample-afl.c: Remove or comment out unused variables.
* sample-capture.c: Fix signed-unsigned compare issue.
* sample-trigger-capture.c: Fix signed-unsigned compare issue.
2020-08-03 08:50:12 +02:00
Siim Meerits
456a1d598b Remove trailing whitespace from all *.h and *.c files. 2020-07-27 17:37:00 +03:00
Marcus Meissner
29a061ce26 move gp_file_free up 2016-11-19 23:51:59 +01: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
b4af65be7c remove gp_file_free which will zero out the returned data which we still
need (makes CameraFile* leak here).


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14392 67ed7778-7388-44ab-90cf-0a291f65f57c
2013-05-03 22:31:13 +00:00
Marcus Meissner
ca55fb156d fixed sample_open_camera to load the abilities and portinfolist
(was done by sample_autodetect before)


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14352 67ed7778-7388-44ab-90cf-0a291f65f57c
2013-04-25 07:39:18 +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
35611300e1 added a minimalistic capture sample
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12733 67ed7778-7388-44ab-90cf-0a291f65f57c
2010-03-05 23:12:31 +00:00