From 23a3dc6838d8b60b0b4b0c3c33e7ba489d3906ff Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Thu, 15 Sep 2011 09:50:31 +0200 Subject: Imported Upstream version 3.1.91 --- src/sane.vapi | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) (limited to 'src/sane.vapi') 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; } - -- cgit v1.2.3