python/dbus-python: rename package to normalize it
[oi-userland.git] / components / library / sane-backends / patches / 02-sane-cap-always-enable.patch
blobbd87a6fd7a7aa045735522398874c3841585259e
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 06_cap_always_settable.dpatch by <jblache@debian.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Add back SANE_CAP_ALWAYS_SETTABLE which was erroneously removed in
6 ## DP: SANE 1.0.20.
8 @DPATCH@
9 diff -urNad sane-backends-1.0.20~/include/sane/sane.h sane-backends-1.0.20/include/sane/sane.h
10 --- sane-backends-1.0.20~/include/sane/sane.h 2009-04-23 21:59:23.000000000 +0200
11 +++ sane-backends-1.0.20/include/sane/sane.h 2009-05-08 21:02:46.805404666 +0200
12 @@ -115,6 +115,7 @@
13 #define SANE_CAP_AUTOMATIC (1 << 4)
14 #define SANE_CAP_INACTIVE (1 << 5)
15 #define SANE_CAP_ADVANCED (1 << 6)
16 +#define SANE_CAP_ALWAYS_SETTABLE (1 << 7)
18 #define SANE_OPTION_IS_ACTIVE(cap) (((cap) & SANE_CAP_INACTIVE) == 0)
19 #define SANE_OPTION_IS_SETTABLE(cap) (((cap) & SANE_CAP_SOFT_SELECT) != 0)