diff options
author | Alessio Treglia <alessio@debian.org> | 2011-09-15 09:50:37 +0200 |
---|---|---|
committer | Alessio Treglia <alessio@debian.org> | 2011-09-15 09:50:37 +0200 |
commit | 9097fc9898cbe625774298600a0bb64f71b0fefa (patch) | |
tree | 2af66b8acaa9c1fb562169d0e31e39a801e125b5 /src/sane.vapi | |
parent | d5a65678615027cd6efd4a34d43b945a5b765f73 (diff) | |
parent | 23a3dc6838d8b60b0b4b0c3c33e7ba489d3906ff (diff) |
Merge commit 'upstream/3.1.91'
Diffstat (limited to 'src/sane.vapi')
-rw-r--r-- | src/sane.vapi | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/src/sane.vapi b/src/sane.vapi index ae69940..aa3d90c 100644 --- a/src/sane.vapi +++ b/src/sane.vapi @@ -7,19 +7,19 @@ namespace Sane { } [SimpleType] - [IntegerType] + [IntegerType (rank = 9)] public struct Int { } [SimpleType] - [IntegerType] + [IntegerType (rank = 9)] public struct Fixed { } [SimpleType] - [IntegerType] + [IntegerType (rank = 9)] public struct Word { } @@ -155,7 +155,7 @@ namespace Sane { MICROSECOND } - [CCode (cname = "const SANE_Constraint_Type", cprefix = "SANE_CONSTRAINT_")] + [CCode (cname = "SANE_Constraint_Type", cprefix = "SANE_CONSTRAINT_")] public enum ConstraintType { NONE, @@ -183,26 +183,24 @@ namespace Sane { ADVANCED } - [CCode (cname = "const SANE_Option_Descriptor", ref_function = "", unref_function = "")] + [CCode (cname = "SANE_Option_Descriptor", ref_function = "", unref_function = "")] public class OptionDescriptor { - public string name; - public string title; - public string desc; + public unowned string name; + public unowned string title; + public unowned string desc; public ValueType type; public Unit unit; public Int size; public Int cap; public ConstraintType constraint_type; - public struct _Constraint - { - [CCode (array_length = false, null_terminated = true)] - public string[] string_list; - public Word[] word_list; - public Range range; - } - public _Constraint constraint; + [CCode (cname = "constraint.string_list", array_length = false, null_terminated = true)] + public string[] string_list; + [CCode (cname = "constraint.word_list", array_length = false)] + public Word[] word_list; + [CCode (cname = "constraint.range")] + public Range range; } [CCode (type = "Int", cprefix = "SANE_INFO_")] @@ -754,4 +752,3 @@ namespace Sane { [CCode (cname = "SANE_VALUE_SCAN_MODE_LINEART", cheader_filename = "sane/saneopts.h")] public static string VALUE_SCAN_MODE_LINEART; } - |