From 312c33406052ae5709046182c4f3d8271136959a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 18 Aug 2014 20:28:25 +0200 Subject: Imported Upstream version 3.13.90 --- src/scanner.c | 4439 +++++++++++++++++++++++++++--------------------------- src/scanner.vala | 5 +- 2 files changed, 2231 insertions(+), 2213 deletions(-) (limited to 'src') diff --git a/src/scanner.c b/src/scanner.c index a9fd325..57323b2 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -8737,19 +8737,19 @@ static void scanner_do_get_option (Scanner* self) { SANE_Int _tmp7_ = {0}; SANE_Int _tmp8_ = {0}; SANE_Option_Descriptor* _tmp9_ = NULL; - SANE_Int _tmp353_ = {0}; - SANE_Option_Descriptor* _tmp354_ = NULL; - SANE_Option_Descriptor* _tmp355_ = NULL; - SANE_Value_Type _tmp356_ = 0; + SANE_Int _tmp356_ = {0}; SANE_Option_Descriptor* _tmp357_ = NULL; - SANE_Int _tmp358_ = {0}; - SANE_Option_Descriptor* _tmp359_ = NULL; - const gchar* _tmp360_ = NULL; - GHashTable* _tmp361_ = NULL; + SANE_Option_Descriptor* _tmp358_ = NULL; + SANE_Value_Type _tmp359_ = 0; + SANE_Option_Descriptor* _tmp360_ = NULL; + SANE_Int _tmp361_ = {0}; SANE_Option_Descriptor* _tmp362_ = NULL; const gchar* _tmp363_ = NULL; - gchar* _tmp364_ = NULL; - SANE_Int _tmp365_ = {0}; + GHashTable* _tmp364_ = NULL; + SANE_Option_Descriptor* _tmp365_ = NULL; + const gchar* _tmp366_ = NULL; + gchar* _tmp367_ = NULL; + SANE_Int _tmp368_ = {0}; #line 879 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_if_fail (self != NULL); #line 881 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" @@ -8791,61 +8791,61 @@ static void scanner_do_get_option (Scanner* self) { SANE_Option_Descriptor* _tmp13_ = NULL; SANE_Option_Descriptor* _tmp14_ = NULL; SANE_Option_Descriptor* _tmp18_ = NULL; - SANE_Handle _tmp93_ = {0}; - const gchar* _tmp94_ = NULL; - gint _tmp95_ = 0; - SANE_Option_Descriptor* _tmp96_ = NULL; - SANE_Option_Descriptor* _tmp97_ = NULL; - SANE_Handle _tmp153_ = {0}; - gint _tmp154_ = 0; - SANE_Option_Descriptor* _tmp155_ = NULL; - SANE_Option_Descriptor* _tmp156_ = NULL; - SANE_Handle _tmp164_ = {0}; - gint _tmp165_ = 0; - SANE_Option_Descriptor* _tmp166_ = NULL; - SANE_Option_Descriptor* _tmp167_ = NULL; - SANE_Handle _tmp175_ = {0}; - gint _tmp176_ = 0; - SANE_Option_Descriptor* _tmp177_ = NULL; - SANE_Option_Descriptor* _tmp178_ = NULL; - SANE_Handle _tmp191_ = {0}; - const gchar* _tmp192_ = NULL; - gint _tmp193_ = 0; - SANE_Option_Descriptor* _tmp194_ = NULL; - SANE_Option_Descriptor* _tmp195_ = NULL; - SANE_Handle _tmp215_ = {0}; - const gchar* _tmp216_ = NULL; - gint _tmp217_ = 0; - SANE_Option_Descriptor* _tmp218_ = NULL; - SANE_Option_Descriptor* _tmp219_ = NULL; - SANE_Handle _tmp234_ = {0}; - const gchar* _tmp235_ = NULL; - gint _tmp236_ = 0; - SANE_Option_Descriptor* _tmp237_ = NULL; - SANE_Option_Descriptor* _tmp238_ = NULL; - SANE_Handle _tmp253_ = {0}; - const gchar* _tmp254_ = NULL; - gint _tmp255_ = 0; - SANE_Option_Descriptor* _tmp256_ = NULL; - gboolean _tmp257_ = FALSE; - SANE_Option_Descriptor* _tmp258_ = NULL; - SANE_Handle _tmp270_ = {0}; - const gchar* _tmp271_ = NULL; - gint _tmp272_ = 0; - SANE_Option_Descriptor* _tmp273_ = NULL; - gboolean _tmp274_ = FALSE; - SANE_Option_Descriptor* _tmp275_ = NULL; - SANE_Handle _tmp287_ = {0}; - const gchar* _tmp288_ = NULL; - gint _tmp289_ = 0; - SANE_Option_Descriptor* _tmp290_ = NULL; - SANE_Option_Descriptor* _tmp291_ = NULL; - SANE_Handle _tmp302_ = {0}; - const gchar* _tmp303_ = NULL; - gint _tmp304_ = 0; - SANE_Option_Descriptor* _tmp305_ = NULL; - SANE_Option_Descriptor* _tmp306_ = NULL; - const gchar* _tmp317_ = NULL; + SANE_Handle _tmp96_ = {0}; + const gchar* _tmp97_ = NULL; + gint _tmp98_ = 0; + SANE_Option_Descriptor* _tmp99_ = NULL; + SANE_Option_Descriptor* _tmp100_ = NULL; + SANE_Handle _tmp156_ = {0}; + gint _tmp157_ = 0; + SANE_Option_Descriptor* _tmp158_ = NULL; + SANE_Option_Descriptor* _tmp159_ = NULL; + SANE_Handle _tmp167_ = {0}; + gint _tmp168_ = 0; + SANE_Option_Descriptor* _tmp169_ = NULL; + SANE_Option_Descriptor* _tmp170_ = NULL; + SANE_Handle _tmp178_ = {0}; + gint _tmp179_ = 0; + SANE_Option_Descriptor* _tmp180_ = NULL; + SANE_Option_Descriptor* _tmp181_ = NULL; + SANE_Handle _tmp194_ = {0}; + const gchar* _tmp195_ = NULL; + gint _tmp196_ = 0; + SANE_Option_Descriptor* _tmp197_ = NULL; + SANE_Option_Descriptor* _tmp198_ = NULL; + SANE_Handle _tmp218_ = {0}; + const gchar* _tmp219_ = NULL; + gint _tmp220_ = 0; + SANE_Option_Descriptor* _tmp221_ = NULL; + SANE_Option_Descriptor* _tmp222_ = NULL; + SANE_Handle _tmp237_ = {0}; + const gchar* _tmp238_ = NULL; + gint _tmp239_ = 0; + SANE_Option_Descriptor* _tmp240_ = NULL; + SANE_Option_Descriptor* _tmp241_ = NULL; + SANE_Handle _tmp256_ = {0}; + const gchar* _tmp257_ = NULL; + gint _tmp258_ = 0; + SANE_Option_Descriptor* _tmp259_ = NULL; + gboolean _tmp260_ = FALSE; + SANE_Option_Descriptor* _tmp261_ = NULL; + SANE_Handle _tmp273_ = {0}; + const gchar* _tmp274_ = NULL; + gint _tmp275_ = 0; + SANE_Option_Descriptor* _tmp276_ = NULL; + gboolean _tmp277_ = FALSE; + SANE_Option_Descriptor* _tmp278_ = NULL; + SANE_Handle _tmp290_ = {0}; + const gchar* _tmp291_ = NULL; + gint _tmp292_ = 0; + SANE_Option_Descriptor* _tmp293_ = NULL; + SANE_Option_Descriptor* _tmp294_ = NULL; + SANE_Handle _tmp305_ = {0}; + const gchar* _tmp306_ = NULL; + gint _tmp307_ = 0; + SANE_Option_Descriptor* _tmp308_ = NULL; + SANE_Option_Descriptor* _tmp309_ = NULL; + const gchar* _tmp320_ = NULL; #line 892 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp10_ = self->priv->handle; #line 892 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" @@ -8927,11 +8927,14 @@ static void scanner_do_get_option (Scanner* self) { gchar* _tmp48_ = NULL; gchar* _tmp49_ = NULL; gchar* _tmp50_ = NULL; - gchar** _tmp51_ = NULL; + gchar* _tmp51_ = NULL; + gchar* _tmp52_ = NULL; + gchar* _tmp53_ = NULL; + gchar** _tmp54_ = NULL; gint adf_duplex_sources_length1 = 0; gint _adf_duplex_sources_size_ = 0; - ScanJob* _tmp52_ = NULL; - ScanType _tmp53_ = 0; + ScanJob* _tmp55_ = NULL; + ScanType _tmp56_ = 0; #line 900 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp19_ = g_strdup ("Auto"); #line 900 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" @@ -9055,241 +9058,253 @@ static void scanner_do_get_option (Scanner* self) { #line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp50_ = g_strdup ("ADF Duplex - Short-Edge Binding"); #line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp51_ = g_new0 (gchar*, 4 + 1); + _tmp51_ = g_strdup ("Duplex"); +#line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp52_ = g_strdup ("Automatic Document Feeder(centrally aligned,Duplex)"); +#line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp53_ = g_strdup ("Automatic Document Feeder(left aligned,Duplex)"); +#line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp54_ = g_new0 (gchar*, 7 + 1); +#line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp54_[0] = _tmp46_; #line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp51_[0] = _tmp46_; + _tmp54_[1] = _tmp48_; #line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp51_[1] = _tmp48_; + _tmp54_[2] = _tmp49_; #line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp51_[2] = _tmp49_; + _tmp54_[3] = _tmp50_; #line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp51_[3] = _tmp50_; + _tmp54_[4] = _tmp51_; #line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - adf_duplex_sources = _tmp51_; + _tmp54_[5] = _tmp52_; #line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - adf_duplex_sources_length1 = 4; + _tmp54_[6] = _tmp53_; +#line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + adf_duplex_sources = _tmp54_; +#line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + adf_duplex_sources_length1 = 7; #line 933 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _adf_duplex_sources_size_ = adf_duplex_sources_length1; -#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp52_ = job; -#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp53_ = _tmp52_->type; -#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - switch (_tmp53_) { -#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - case SCAN_TYPE_SINGLE: -#line 9074 "scanner.c" - { - SANE_Handle _tmp54_ = {0}; - SANE_Option_Descriptor* _tmp55_ = NULL; - SANE_Int _tmp56_ = {0}; - gboolean _tmp57_ = FALSE; #line 944 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp54_ = self->priv->handle; + _tmp55_ = job; #line 944 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp55_ = option; + _tmp56_ = _tmp55_->type; #line 944 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp56_ = index; + switch (_tmp56_) { #line 944 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp57_ = scanner_set_default_option (self, _tmp54_, _tmp55_, _tmp56_); -#line 944 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (!_tmp57_) { -#line 9090 "scanner.c" - SANE_Handle _tmp58_ = {0}; - SANE_Option_Descriptor* _tmp59_ = NULL; - SANE_Int _tmp60_ = {0}; - gchar** _tmp61_ = NULL; - gint _tmp61__length1 = 0; - gboolean _tmp62_ = FALSE; -#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp58_ = self->priv->handle; -#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp59_ = option; -#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp60_ = index; -#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp61_ = flatbed_sources; -#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp61__length1 = flatbed_sources_length1; -#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp62_ = scanner_set_constrained_string_option (self, _tmp58_, _tmp59_, _tmp60_, _tmp61_, _tmp61__length1, NULL); -#line 945 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (!_tmp62_) { -#line 946 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_warning ("scanner.vala:946: Unable to set single page source, please file a bug"); -#line 9113 "scanner.c" + case SCAN_TYPE_SINGLE: +#line 9089 "scanner.c" + { + SANE_Handle _tmp57_ = {0}; + SANE_Option_Descriptor* _tmp58_ = NULL; + SANE_Int _tmp59_ = {0}; + gboolean _tmp60_ = FALSE; +#line 947 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp57_ = self->priv->handle; +#line 947 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp58_ = option; +#line 947 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp59_ = index; +#line 947 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp60_ = scanner_set_default_option (self, _tmp57_, _tmp58_, _tmp59_); +#line 947 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (!_tmp60_) { +#line 9105 "scanner.c" + SANE_Handle _tmp61_ = {0}; + SANE_Option_Descriptor* _tmp62_ = NULL; + SANE_Int _tmp63_ = {0}; + gchar** _tmp64_ = NULL; + gint _tmp64__length1 = 0; + gboolean _tmp65_ = FALSE; +#line 948 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp61_ = self->priv->handle; +#line 948 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp62_ = option; +#line 948 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp63_ = index; +#line 948 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp64_ = flatbed_sources; +#line 948 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp64__length1 = flatbed_sources_length1; +#line 948 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp65_ = scanner_set_constrained_string_option (self, _tmp61_, _tmp62_, _tmp63_, _tmp64_, _tmp64__length1, NULL); +#line 948 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (!_tmp65_) { +#line 949 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_warning ("scanner.vala:949: Unable to set single page source, please file a bug"); +#line 9128 "scanner.c" } } -#line 947 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 950 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 9118 "scanner.c" +#line 9133 "scanner.c" } -#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 944 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_TYPE_ADF_FRONT: -#line 9122 "scanner.c" +#line 9137 "scanner.c" { - SANE_Handle _tmp63_ = {0}; - SANE_Option_Descriptor* _tmp64_ = NULL; - SANE_Int _tmp65_ = {0}; - gchar** _tmp66_ = NULL; - gint _tmp66__length1 = 0; - gboolean _tmp67_ = FALSE; -#line 949 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp63_ = self->priv->handle; -#line 949 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp64_ = option; -#line 949 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp65_ = index; -#line 949 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp66_ = adf_front_sources; -#line 949 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp66__length1 = adf_front_sources_length1; -#line 949 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp67_ = scanner_set_constrained_string_option (self, _tmp63_, _tmp64_, _tmp65_, _tmp66_, _tmp66__length1, NULL); -#line 949 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (!_tmp67_) { -#line 9144 "scanner.c" - SANE_Handle _tmp68_ = {0}; - SANE_Option_Descriptor* _tmp69_ = NULL; - SANE_Int _tmp70_ = {0}; - gchar** _tmp71_ = NULL; - gint _tmp71__length1 = 0; - gboolean _tmp72_ = FALSE; -#line 950 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp68_ = self->priv->handle; -#line 950 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp69_ = option; -#line 950 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp70_ = index; -#line 950 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp71_ = adf_sources; -#line 950 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp71__length1 = adf_sources_length1; -#line 950 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp72_ = scanner_set_constrained_string_option (self, _tmp68_, _tmp69_, _tmp70_, _tmp71_, _tmp71__length1, NULL); -#line 950 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (!_tmp72_) { -#line 951 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_warning ("scanner.vala:951: Unable to set front ADF source, please file a bug"); -#line 9167 "scanner.c" + SANE_Handle _tmp66_ = {0}; + SANE_Option_Descriptor* _tmp67_ = NULL; + SANE_Int _tmp68_ = {0}; + gchar** _tmp69_ = NULL; + gint _tmp69__length1 = 0; + gboolean _tmp70_ = FALSE; +#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp66_ = self->priv->handle; +#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp67_ = option; +#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp68_ = index; +#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp69_ = adf_front_sources; +#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp69__length1 = adf_front_sources_length1; +#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp70_ = scanner_set_constrained_string_option (self, _tmp66_, _tmp67_, _tmp68_, _tmp69_, _tmp69__length1, NULL); +#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (!_tmp70_) { +#line 9159 "scanner.c" + SANE_Handle _tmp71_ = {0}; + SANE_Option_Descriptor* _tmp72_ = NULL; + SANE_Int _tmp73_ = {0}; + gchar** _tmp74_ = NULL; + gint _tmp74__length1 = 0; + gboolean _tmp75_ = FALSE; +#line 953 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp71_ = self->priv->handle; +#line 953 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp72_ = option; +#line 953 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp73_ = index; +#line 953 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp74_ = adf_sources; +#line 953 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp74__length1 = adf_sources_length1; +#line 953 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp75_ = scanner_set_constrained_string_option (self, _tmp71_, _tmp72_, _tmp73_, _tmp74_, _tmp74__length1, NULL); +#line 953 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (!_tmp75_) { +#line 954 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_warning ("scanner.vala:954: Unable to set front ADF source, please file a bug"); +#line 9182 "scanner.c" } } -#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 955 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 9172 "scanner.c" +#line 9187 "scanner.c" } -#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 944 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_TYPE_ADF_BACK: -#line 9176 "scanner.c" +#line 9191 "scanner.c" { - SANE_Handle _tmp73_ = {0}; - SANE_Option_Descriptor* _tmp74_ = NULL; - SANE_Int _tmp75_ = {0}; - gchar** _tmp76_ = NULL; - gint _tmp76__length1 = 0; - gboolean _tmp77_ = FALSE; -#line 954 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp73_ = self->priv->handle; -#line 954 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp74_ = option; -#line 954 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp75_ = index; -#line 954 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp76_ = adf_back_sources; -#line 954 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp76__length1 = adf_back_sources_length1; -#line 954 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp77_ = scanner_set_constrained_string_option (self, _tmp73_, _tmp74_, _tmp75_, _tmp76_, _tmp76__length1, NULL); -#line 954 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (!_tmp77_) { -#line 9198 "scanner.c" - SANE_Handle _tmp78_ = {0}; - SANE_Option_Descriptor* _tmp79_ = NULL; - SANE_Int _tmp80_ = {0}; - gchar** _tmp81_ = NULL; - gint _tmp81__length1 = 0; - gboolean _tmp82_ = FALSE; -#line 955 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp78_ = self->priv->handle; -#line 955 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp79_ = option; -#line 955 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp80_ = index; -#line 955 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp81_ = adf_sources; -#line 955 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp81__length1 = adf_sources_length1; -#line 955 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp82_ = scanner_set_constrained_string_option (self, _tmp78_, _tmp79_, _tmp80_, _tmp81_, _tmp81__length1, NULL); -#line 955 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (!_tmp82_) { -#line 956 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_warning ("scanner.vala:956: Unable to set back ADF source, please file a bug"); -#line 9221 "scanner.c" + SANE_Handle _tmp76_ = {0}; + SANE_Option_Descriptor* _tmp77_ = NULL; + SANE_Int _tmp78_ = {0}; + gchar** _tmp79_ = NULL; + gint _tmp79__length1 = 0; + gboolean _tmp80_ = FALSE; +#line 957 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp76_ = self->priv->handle; +#line 957 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp77_ = option; +#line 957 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp78_ = index; +#line 957 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp79_ = adf_back_sources; +#line 957 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp79__length1 = adf_back_sources_length1; +#line 957 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp80_ = scanner_set_constrained_string_option (self, _tmp76_, _tmp77_, _tmp78_, _tmp79_, _tmp79__length1, NULL); +#line 957 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (!_tmp80_) { +#line 9213 "scanner.c" + SANE_Handle _tmp81_ = {0}; + SANE_Option_Descriptor* _tmp82_ = NULL; + SANE_Int _tmp83_ = {0}; + gchar** _tmp84_ = NULL; + gint _tmp84__length1 = 0; + gboolean _tmp85_ = FALSE; +#line 958 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp81_ = self->priv->handle; +#line 958 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp82_ = option; +#line 958 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp83_ = index; +#line 958 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp84_ = adf_sources; +#line 958 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp84__length1 = adf_sources_length1; +#line 958 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp85_ = scanner_set_constrained_string_option (self, _tmp81_, _tmp82_, _tmp83_, _tmp84_, _tmp84__length1, NULL); +#line 958 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (!_tmp85_) { +#line 959 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_warning ("scanner.vala:959: Unable to set back ADF source, please file a bug"); +#line 9236 "scanner.c" } } -#line 957 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 960 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 9226 "scanner.c" +#line 9241 "scanner.c" } -#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 944 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_TYPE_ADF_BOTH: -#line 9230 "scanner.c" +#line 9245 "scanner.c" { - SANE_Handle _tmp83_ = {0}; - SANE_Option_Descriptor* _tmp84_ = NULL; - SANE_Int _tmp85_ = {0}; - gchar** _tmp86_ = NULL; - gint _tmp86__length1 = 0; - gboolean _tmp87_ = FALSE; -#line 959 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp83_ = self->priv->handle; -#line 959 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp84_ = option; -#line 959 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp85_ = index; -#line 959 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp86_ = adf_duplex_sources; -#line 959 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp86__length1 = adf_duplex_sources_length1; -#line 959 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp87_ = scanner_set_constrained_string_option (self, _tmp83_, _tmp84_, _tmp85_, _tmp86_, _tmp86__length1, NULL); -#line 959 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (!_tmp87_) { -#line 9252 "scanner.c" - SANE_Handle _tmp88_ = {0}; - SANE_Option_Descriptor* _tmp89_ = NULL; - SANE_Int _tmp90_ = {0}; - gchar** _tmp91_ = NULL; - gint _tmp91__length1 = 0; - gboolean _tmp92_ = FALSE; -#line 960 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp88_ = self->priv->handle; -#line 960 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp89_ = option; -#line 960 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp90_ = index; -#line 960 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp91_ = adf_sources; -#line 960 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp91__length1 = adf_sources_length1; -#line 960 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp92_ = scanner_set_constrained_string_option (self, _tmp88_, _tmp89_, _tmp90_, _tmp91_, _tmp91__length1, NULL); -#line 960 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (!_tmp92_) { -#line 961 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_warning ("scanner.vala:961: Unable to set duplex ADF source, please file a bug"); -#line 9275 "scanner.c" + SANE_Handle _tmp86_ = {0}; + SANE_Option_Descriptor* _tmp87_ = NULL; + SANE_Int _tmp88_ = {0}; + gchar** _tmp89_ = NULL; + gint _tmp89__length1 = 0; + gboolean _tmp90_ = FALSE; +#line 962 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp86_ = self->priv->handle; +#line 962 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp87_ = option; +#line 962 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp88_ = index; +#line 962 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp89_ = adf_duplex_sources; +#line 962 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp89__length1 = adf_duplex_sources_length1; +#line 962 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp90_ = scanner_set_constrained_string_option (self, _tmp86_, _tmp87_, _tmp88_, _tmp89_, _tmp89__length1, NULL); +#line 962 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (!_tmp90_) { +#line 9267 "scanner.c" + SANE_Handle _tmp91_ = {0}; + SANE_Option_Descriptor* _tmp92_ = NULL; + SANE_Int _tmp93_ = {0}; + gchar** _tmp94_ = NULL; + gint _tmp94__length1 = 0; + gboolean _tmp95_ = FALSE; +#line 963 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp91_ = self->priv->handle; +#line 963 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp92_ = option; +#line 963 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp93_ = index; +#line 963 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp94_ = adf_sources; +#line 963 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp94__length1 = adf_sources_length1; +#line 963 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp95_ = scanner_set_constrained_string_option (self, _tmp91_, _tmp92_, _tmp93_, _tmp94_, _tmp94__length1, NULL); +#line 963 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (!_tmp95_) { +#line 964 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_warning ("scanner.vala:964: Unable to set duplex ADF source, please file a bug"); +#line 9290 "scanner.c" } } -#line 962 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 965 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 9280 "scanner.c" +#line 9295 "scanner.c" } default: -#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 944 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 9285 "scanner.c" +#line 9300 "scanner.c" } #line 898 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" adf_duplex_sources = (_vala_array_free (adf_duplex_sources, adf_duplex_sources_length1, (GDestroyNotify) g_free), NULL); @@ -9301,50 +9316,47 @@ static void scanner_do_get_option (Scanner* self) { adf_sources = (_vala_array_free (adf_sources, adf_sources_length1, (GDestroyNotify) g_free), NULL); #line 898 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" flatbed_sources = (_vala_array_free (flatbed_sources, flatbed_sources_length1, (GDestroyNotify) g_free), NULL); -#line 9297 "scanner.c" +#line 9312 "scanner.c" } -#line 967 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp93_ = self->priv->handle; -#line 967 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp94_ = SANE_NAME_SCAN_MODE; -#line 967 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp96_ = scanner_get_option_by_name (self, _tmp93_, _tmp94_, &_tmp95_); -#line 967 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp95_; -#line 967 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp96_; -#line 968 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp97_ = option; -#line 968 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp97_ != NULL) { -#line 9313 "scanner.c" +#line 970 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp96_ = self->priv->handle; +#line 970 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp97_ = SANE_NAME_SCAN_MODE; +#line 970 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp99_ = scanner_get_option_by_name (self, _tmp96_, _tmp97_, &_tmp98_); +#line 970 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + index = (SANE_Int) _tmp98_; +#line 970 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + option = _tmp99_; +#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp100_ = option; +#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (_tmp100_ != NULL) { +#line 9328 "scanner.c" gchar** color_scan_modes = NULL; - const gchar* _tmp98_ = NULL; - gchar* _tmp99_ = NULL; - gchar* _tmp100_ = NULL; - gchar* _tmp101_ = NULL; + const gchar* _tmp101_ = NULL; gchar* _tmp102_ = NULL; - gchar** _tmp103_ = NULL; + gchar* _tmp103_ = NULL; + gchar* _tmp104_ = NULL; + gchar* _tmp105_ = NULL; + gchar** _tmp106_ = NULL; gint color_scan_modes_length1 = 0; gint _color_scan_modes_size_ = 0; gchar** gray_scan_modes = NULL; - const gchar* _tmp104_ = NULL; - gchar* _tmp105_ = NULL; - gchar* _tmp106_ = NULL; - gchar* _tmp107_ = NULL; - const gchar* _tmp108_ = NULL; + const gchar* _tmp107_ = NULL; + gchar* _tmp108_ = NULL; gchar* _tmp109_ = NULL; gchar* _tmp110_ = NULL; - gchar* _tmp111_ = NULL; - gchar** _tmp112_ = NULL; + const gchar* _tmp111_ = NULL; + gchar* _tmp112_ = NULL; + gchar* _tmp113_ = NULL; + gchar* _tmp114_ = NULL; + gchar** _tmp115_ = NULL; gint gray_scan_modes_length1 = 0; gint _gray_scan_modes_size_ = 0; gchar** lineart_scan_modes = NULL; - const gchar* _tmp113_ = NULL; - gchar* _tmp114_ = NULL; - gchar* _tmp115_ = NULL; - gchar* _tmp116_ = NULL; - const gchar* _tmp117_ = NULL; + const gchar* _tmp116_ = NULL; + gchar* _tmp117_ = NULL; gchar* _tmp118_ = NULL; gchar* _tmp119_ = NULL; const gchar* _tmp120_ = NULL; @@ -9356,1128 +9368,1131 @@ static void scanner_do_get_option (Scanner* self) { const gchar* _tmp126_ = NULL; gchar* _tmp127_ = NULL; gchar* _tmp128_ = NULL; - gchar* _tmp129_ = NULL; - const gchar* _tmp130_ = NULL; + const gchar* _tmp129_ = NULL; + gchar* _tmp130_ = NULL; gchar* _tmp131_ = NULL; gchar* _tmp132_ = NULL; - gchar* _tmp133_ = NULL; + const gchar* _tmp133_ = NULL; gchar* _tmp134_ = NULL; - gchar** _tmp135_ = NULL; + gchar* _tmp135_ = NULL; + gchar* _tmp136_ = NULL; + gchar* _tmp137_ = NULL; + gchar** _tmp138_ = NULL; gint lineart_scan_modes_length1 = 0; gint _lineart_scan_modes_size_ = 0; - ScanJob* _tmp136_ = NULL; - ScanMode _tmp137_ = 0; -#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp98_ = SANE_VALUE_SCAN_MODE_COLOR; -#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp99_ = g_strdup (_tmp98_); -#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp100_ = g_strdup ("Color"); -#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp101_ = g_strdup ("24bit Color"); -#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp102_ = g_strdup ("Color - 16 Million Colors"); -#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp103_ = g_new0 (gchar*, 4 + 1); -#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp103_[0] = _tmp99_; -#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp103_[1] = _tmp100_; -#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp103_[2] = _tmp101_; -#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp103_[3] = _tmp102_; -#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - color_scan_modes = _tmp103_; -#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + ScanJob* _tmp139_ = NULL; + ScanMode _tmp140_ = 0; +#line 974 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp101_ = SANE_VALUE_SCAN_MODE_COLOR; +#line 974 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp102_ = g_strdup (_tmp101_); +#line 974 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp103_ = g_strdup ("Color"); +#line 974 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp104_ = g_strdup ("24bit Color"); +#line 974 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp105_ = g_strdup ("Color - 16 Million Colors"); +#line 974 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp106_ = g_new0 (gchar*, 4 + 1); +#line 974 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp106_[0] = _tmp102_; +#line 974 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp106_[1] = _tmp103_; +#line 974 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp106_[2] = _tmp104_; +#line 974 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp106_[3] = _tmp105_; +#line 974 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + color_scan_modes = _tmp106_; +#line 974 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" color_scan_modes_length1 = 4; -#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 974 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _color_scan_modes_size_ = color_scan_modes_length1; -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp104_ = SANE_VALUE_SCAN_MODE_GRAY; -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp105_ = g_strdup (_tmp104_); -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp106_ = g_strdup ("Gray"); -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp107_ = g_strdup ("Grayscale"); -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp108_ = SANE_I18N ("Grayscale"); -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp109_ = g_strdup (_tmp108_); -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp110_ = g_strdup ("True Gray"); -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp111_ = g_strdup ("Grayscale - 256 Levels"); -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp112_ = g_new0 (gchar*, 6 + 1); -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp112_[0] = _tmp105_; -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp112_[1] = _tmp106_; -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp112_[2] = _tmp107_; -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp112_[3] = _tmp109_; -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp112_[4] = _tmp110_; -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp112_[5] = _tmp111_; -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - gray_scan_modes = _tmp112_; -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp107_ = SANE_VALUE_SCAN_MODE_GRAY; +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp108_ = g_strdup (_tmp107_); +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp109_ = g_strdup ("Gray"); +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp110_ = g_strdup ("Grayscale"); +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp111_ = SANE_I18N ("Grayscale"); +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp112_ = g_strdup (_tmp111_); +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp113_ = g_strdup ("True Gray"); +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp114_ = g_strdup ("Grayscale - 256 Levels"); +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp115_ = g_new0 (gchar*, 6 + 1); +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp115_[0] = _tmp108_; +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp115_[1] = _tmp109_; +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp115_[2] = _tmp110_; +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp115_[3] = _tmp112_; +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp115_[4] = _tmp113_; +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp115_[5] = _tmp114_; +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + gray_scan_modes = _tmp115_; +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" gray_scan_modes_length1 = 6; -#line 978 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 981 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _gray_scan_modes_size_ = gray_scan_modes_length1; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp113_ = SANE_VALUE_SCAN_MODE_LINEART; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp114_ = g_strdup (_tmp113_); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp115_ = g_strdup ("Lineart"); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp116_ = g_strdup ("LineArt"); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp117_ = SANE_I18N ("LineArt"); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp118_ = g_strdup (_tmp117_); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp119_ = g_strdup ("Black & White"); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp120_ = SANE_I18N ("Black & White"); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp116_ = SANE_VALUE_SCAN_MODE_LINEART; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp117_ = g_strdup (_tmp116_); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp118_ = g_strdup ("Lineart"); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp119_ = g_strdup ("LineArt"); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp120_ = SANE_I18N ("LineArt"); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp121_ = g_strdup (_tmp120_); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp122_ = g_strdup ("Binary"); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp123_ = SANE_I18N ("Binary"); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp122_ = g_strdup ("Black & White"); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp123_ = SANE_I18N ("Black & White"); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp124_ = g_strdup (_tmp123_); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp125_ = g_strdup ("Thresholded"); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp126_ = SANE_VALUE_SCAN_MODE_GRAY; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp125_ = g_strdup ("Binary"); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp126_ = SANE_I18N ("Binary"); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp127_ = g_strdup (_tmp126_); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp128_ = g_strdup ("Gray"); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp129_ = g_strdup ("Grayscale"); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp130_ = SANE_I18N ("Grayscale"); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp131_ = g_strdup (_tmp130_); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp132_ = g_strdup ("True Gray"); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp133_ = g_strdup ("Black and White - Line Art"); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp134_ = g_strdup ("Black and White - Halftone"); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_ = g_new0 (gchar*, 16 + 1); -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[0] = _tmp114_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[1] = _tmp115_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[2] = _tmp116_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[3] = _tmp118_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[4] = _tmp119_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[5] = _tmp121_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[6] = _tmp122_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[7] = _tmp124_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[8] = _tmp125_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[9] = _tmp127_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[10] = _tmp128_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[11] = _tmp129_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[12] = _tmp131_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[13] = _tmp132_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[14] = _tmp133_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp135_[15] = _tmp134_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - lineart_scan_modes = _tmp135_; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp128_ = g_strdup ("Thresholded"); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp129_ = SANE_VALUE_SCAN_MODE_GRAY; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp130_ = g_strdup (_tmp129_); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp131_ = g_strdup ("Gray"); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp132_ = g_strdup ("Grayscale"); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp133_ = SANE_I18N ("Grayscale"); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp134_ = g_strdup (_tmp133_); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp135_ = g_strdup ("True Gray"); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp136_ = g_strdup ("Black and White - Line Art"); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp137_ = g_strdup ("Black and White - Halftone"); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_ = g_new0 (gchar*, 16 + 1); +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[0] = _tmp117_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[1] = _tmp118_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[2] = _tmp119_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[3] = _tmp121_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[4] = _tmp122_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[5] = _tmp124_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[6] = _tmp125_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[7] = _tmp127_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[8] = _tmp128_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[9] = _tmp130_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[10] = _tmp131_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[11] = _tmp132_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[12] = _tmp134_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[13] = _tmp135_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[14] = _tmp136_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp138_[15] = _tmp137_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + lineart_scan_modes = _tmp138_; +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" lineart_scan_modes_length1 = 16; -#line 987 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 990 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _lineart_scan_modes_size_ = lineart_scan_modes_length1; -#line 1007 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp136_ = job; -#line 1007 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp137_ = _tmp136_->scan_mode; -#line 1007 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - switch (_tmp137_) { -#line 1007 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - case SCAN_MODE_COLOR: -#line 9517 "scanner.c" - { - SANE_Handle _tmp138_ = {0}; - SANE_Option_Descriptor* _tmp139_ = NULL; - SANE_Int _tmp140_ = {0}; - gchar** _tmp141_ = NULL; - gint _tmp141__length1 = 0; - gboolean _tmp142_ = FALSE; -#line 1010 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp138_ = self->priv->handle; #line 1010 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp139_ = option; + _tmp139_ = job; #line 1010 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp140_ = index; + _tmp140_ = _tmp139_->scan_mode; #line 1010 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp141_ = color_scan_modes; + switch (_tmp140_) { #line 1010 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp141__length1 = color_scan_modes_length1; -#line 1010 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp142_ = scanner_set_constrained_string_option (self, _tmp138_, _tmp139_, _tmp140_, _tmp141_, _tmp141__length1, NULL); -#line 1010 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (!_tmp142_) { -#line 1011 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_warning ("scanner.vala:1011: Unable to set Color mode, please file a bug"); -#line 9541 "scanner.c" + case SCAN_MODE_COLOR: +#line 9532 "scanner.c" + { + SANE_Handle _tmp141_ = {0}; + SANE_Option_Descriptor* _tmp142_ = NULL; + SANE_Int _tmp143_ = {0}; + gchar** _tmp144_ = NULL; + gint _tmp144__length1 = 0; + gboolean _tmp145_ = FALSE; +#line 1013 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp141_ = self->priv->handle; +#line 1013 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp142_ = option; +#line 1013 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp143_ = index; +#line 1013 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp144_ = color_scan_modes; +#line 1013 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp144__length1 = color_scan_modes_length1; +#line 1013 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp145_ = scanner_set_constrained_string_option (self, _tmp141_, _tmp142_, _tmp143_, _tmp144_, _tmp144__length1, NULL); +#line 1013 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (!_tmp145_) { +#line 1014 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_warning ("scanner.vala:1014: Unable to set Color mode, please file a bug"); +#line 9556 "scanner.c" } -#line 1012 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1015 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 9545 "scanner.c" +#line 9560 "scanner.c" } -#line 1007 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1010 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_MODE_GRAY: -#line 9549 "scanner.c" +#line 9564 "scanner.c" { - SANE_Handle _tmp143_ = {0}; - SANE_Option_Descriptor* _tmp144_ = NULL; - SANE_Int _tmp145_ = {0}; - gchar** _tmp146_ = NULL; - gint _tmp146__length1 = 0; - gboolean _tmp147_ = FALSE; -#line 1014 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp143_ = self->priv->handle; -#line 1014 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp144_ = option; -#line 1014 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp145_ = index; -#line 1014 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp146_ = gray_scan_modes; -#line 1014 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp146__length1 = gray_scan_modes_length1; -#line 1014 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp147_ = scanner_set_constrained_string_option (self, _tmp143_, _tmp144_, _tmp145_, _tmp146_, _tmp146__length1, NULL); -#line 1014 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (!_tmp147_) { -#line 1015 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_warning ("scanner.vala:1015: Unable to set Gray mode, please file a bug"); -#line 9573 "scanner.c" + SANE_Handle _tmp146_ = {0}; + SANE_Option_Descriptor* _tmp147_ = NULL; + SANE_Int _tmp148_ = {0}; + gchar** _tmp149_ = NULL; + gint _tmp149__length1 = 0; + gboolean _tmp150_ = FALSE; +#line 1017 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp146_ = self->priv->handle; +#line 1017 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp147_ = option; +#line 1017 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp148_ = index; +#line 1017 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp149_ = gray_scan_modes; +#line 1017 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp149__length1 = gray_scan_modes_length1; +#line 1017 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp150_ = scanner_set_constrained_string_option (self, _tmp146_, _tmp147_, _tmp148_, _tmp149_, _tmp149__length1, NULL); +#line 1017 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (!_tmp150_) { +#line 1018 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_warning ("scanner.vala:1018: Unable to set Gray mode, please file a bug"); +#line 9588 "scanner.c" } -#line 1016 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1019 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 9577 "scanner.c" +#line 9592 "scanner.c" } -#line 1007 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1010 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_MODE_LINEART: -#line 9581 "scanner.c" +#line 9596 "scanner.c" { - SANE_Handle _tmp148_ = {0}; - SANE_Option_Descriptor* _tmp149_ = NULL; - SANE_Int _tmp150_ = {0}; - gchar** _tmp151_ = NULL; - gint _tmp151__length1 = 0; - gboolean _tmp152_ = FALSE; -#line 1018 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp148_ = self->priv->handle; -#line 1018 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp149_ = option; -#line 1018 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp150_ = index; -#line 1018 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp151_ = lineart_scan_modes; -#line 1018 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp151__length1 = lineart_scan_modes_length1; -#line 1018 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp152_ = scanner_set_constrained_string_option (self, _tmp148_, _tmp149_, _tmp150_, _tmp151_, _tmp151__length1, NULL); -#line 1018 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (!_tmp152_) { -#line 1019 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_warning ("scanner.vala:1019: Unable to set Lineart mode, please file a bug"); -#line 9605 "scanner.c" + SANE_Handle _tmp151_ = {0}; + SANE_Option_Descriptor* _tmp152_ = NULL; + SANE_Int _tmp153_ = {0}; + gchar** _tmp154_ = NULL; + gint _tmp154__length1 = 0; + gboolean _tmp155_ = FALSE; +#line 1021 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp151_ = self->priv->handle; +#line 1021 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp152_ = option; +#line 1021 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp153_ = index; +#line 1021 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp154_ = lineart_scan_modes; +#line 1021 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp154__length1 = lineart_scan_modes_length1; +#line 1021 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp155_ = scanner_set_constrained_string_option (self, _tmp151_, _tmp152_, _tmp153_, _tmp154_, _tmp154__length1, NULL); +#line 1021 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (!_tmp155_) { +#line 1022 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_warning ("scanner.vala:1022: Unable to set Lineart mode, please file a bug"); +#line 9620 "scanner.c" } -#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1023 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 9609 "scanner.c" +#line 9624 "scanner.c" } default: { -#line 1022 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1025 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 9615 "scanner.c" +#line 9630 "scanner.c" } } -#line 968 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" lineart_scan_modes = (_vala_array_free (lineart_scan_modes, lineart_scan_modes_length1, (GDestroyNotify) g_free), NULL); -#line 968 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" gray_scan_modes = (_vala_array_free (gray_scan_modes, gray_scan_modes_length1, (GDestroyNotify) g_free), NULL); -#line 968 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 971 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" color_scan_modes = (_vala_array_free (color_scan_modes, color_scan_modes_length1, (GDestroyNotify) g_free), NULL); -#line 9624 "scanner.c" +#line 9639 "scanner.c" } -#line 1027 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp153_ = self->priv->handle; -#line 1027 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp155_ = scanner_get_option_by_name (self, _tmp153_, "duplex", &_tmp154_); -#line 1027 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp154_; -#line 1027 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp155_; -#line 1028 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp156_ = option; -#line 1028 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp156_ != NULL) { -#line 9638 "scanner.c" - SANE_Option_Descriptor* _tmp157_ = NULL; - SANE_Value_Type _tmp158_ = 0; #line 1030 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp157_ = option; + _tmp156_ = self->priv->handle; #line 1030 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp158_ = _tmp157_->type; + _tmp158_ = scanner_get_option_by_name (self, _tmp156_, "duplex", &_tmp157_); #line 1030 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp158_ == SANE_TYPE_BOOL) { -#line 9647 "scanner.c" - SANE_Handle _tmp159_ = {0}; - SANE_Option_Descriptor* _tmp160_ = NULL; - SANE_Int _tmp161_ = {0}; - ScanJob* _tmp162_ = NULL; - ScanType _tmp163_ = 0; -#line 1031 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp159_ = self->priv->handle; -#line 1031 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp160_ = option; -#line 1031 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp161_ = index; -#line 1031 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp162_ = job; + index = (SANE_Int) _tmp157_; +#line 1030 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + option = _tmp158_; #line 1031 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp163_ = _tmp162_->type; + _tmp159_ = option; #line 1031 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_bool_option (self, _tmp159_, _tmp160_, _tmp161_, _tmp163_ == SCAN_TYPE_ADF_BOTH, NULL); -#line 9665 "scanner.c" + if (_tmp159_ != NULL) { +#line 9653 "scanner.c" + SANE_Option_Descriptor* _tmp160_ = NULL; + SANE_Value_Type _tmp161_ = 0; +#line 1033 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp160_ = option; +#line 1033 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp161_ = _tmp160_->type; +#line 1033 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (_tmp161_ == SANE_TYPE_BOOL) { +#line 9662 "scanner.c" + SANE_Handle _tmp162_ = {0}; + SANE_Option_Descriptor* _tmp163_ = NULL; + SANE_Int _tmp164_ = {0}; + ScanJob* _tmp165_ = NULL; + ScanType _tmp166_ = 0; +#line 1034 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp162_ = self->priv->handle; +#line 1034 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp163_ = option; +#line 1034 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp164_ = index; +#line 1034 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp165_ = job; +#line 1034 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp166_ = _tmp165_->type; +#line 1034 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + scanner_set_bool_option (self, _tmp162_, _tmp163_, _tmp164_, _tmp166_ == SCAN_TYPE_ADF_BOTH, NULL); +#line 9680 "scanner.c" } } -#line 1035 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp164_ = self->priv->handle; -#line 1035 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp166_ = scanner_get_option_by_name (self, _tmp164_, "batch-scan", &_tmp165_); -#line 1035 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp165_; -#line 1035 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp166_; -#line 1036 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp167_ = option; -#line 1036 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp167_ != NULL) { -#line 9680 "scanner.c" - SANE_Option_Descriptor* _tmp168_ = NULL; - SANE_Value_Type _tmp169_ = 0; #line 1038 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp168_ = option; + _tmp167_ = self->priv->handle; #line 1038 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp169_ = _tmp168_->type; + _tmp169_ = scanner_get_option_by_name (self, _tmp167_, "batch-scan", &_tmp168_); #line 1038 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp169_ == SANE_TYPE_BOOL) { -#line 9689 "scanner.c" - SANE_Handle _tmp170_ = {0}; - SANE_Option_Descriptor* _tmp171_ = NULL; - SANE_Int _tmp172_ = {0}; - ScanJob* _tmp173_ = NULL; - ScanType _tmp174_ = 0; -#line 1039 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp170_ = self->priv->handle; -#line 1039 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp171_ = option; -#line 1039 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp172_ = index; -#line 1039 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp173_ = job; + index = (SANE_Int) _tmp168_; +#line 1038 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + option = _tmp169_; #line 1039 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp174_ = _tmp173_->type; + _tmp170_ = option; #line 1039 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_bool_option (self, _tmp170_, _tmp171_, _tmp172_, _tmp174_ != SCAN_TYPE_SINGLE, NULL); -#line 9707 "scanner.c" + if (_tmp170_ != NULL) { +#line 9695 "scanner.c" + SANE_Option_Descriptor* _tmp171_ = NULL; + SANE_Value_Type _tmp172_ = 0; +#line 1041 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp171_ = option; +#line 1041 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp172_ = _tmp171_->type; +#line 1041 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (_tmp172_ == SANE_TYPE_BOOL) { +#line 9704 "scanner.c" + SANE_Handle _tmp173_ = {0}; + SANE_Option_Descriptor* _tmp174_ = NULL; + SANE_Int _tmp175_ = {0}; + ScanJob* _tmp176_ = NULL; + ScanType _tmp177_ = 0; +#line 1042 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp173_ = self->priv->handle; +#line 1042 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp174_ = option; +#line 1042 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp175_ = index; +#line 1042 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp176_ = job; +#line 1042 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp177_ = _tmp176_->type; +#line 1042 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + scanner_set_bool_option (self, _tmp173_, _tmp174_, _tmp175_, _tmp177_ != SCAN_TYPE_SINGLE, NULL); +#line 9722 "scanner.c" } } -#line 1043 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp175_ = self->priv->handle; -#line 1043 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp177_ = scanner_get_option_by_name (self, _tmp175_, "compression", &_tmp176_); -#line 1043 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp176_; -#line 1043 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp177_; -#line 1044 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp178_ = option; -#line 1044 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp178_ != NULL) { -#line 9722 "scanner.c" - gchar** disable_compression_names = NULL; - const gchar* _tmp179_ = NULL; - gchar* _tmp180_ = NULL; - const gchar* _tmp181_ = NULL; - gchar* _tmp182_ = NULL; - gchar* _tmp183_ = NULL; - gchar* _tmp184_ = NULL; - gchar** _tmp185_ = NULL; - gint disable_compression_names_length1 = 0; - gint _disable_compression_names_size_ = 0; - SANE_Handle _tmp186_ = {0}; - SANE_Option_Descriptor* _tmp187_ = NULL; - SANE_Int _tmp188_ = {0}; - gchar** _tmp189_ = NULL; - gint _tmp189__length1 = 0; - gboolean _tmp190_ = FALSE; -#line 1046 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp179_ = SANE_I18N ("None"); -#line 1046 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp180_ = g_strdup (_tmp179_); #line 1046 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp181_ = SANE_I18N ("none"); + _tmp178_ = self->priv->handle; #line 1046 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp182_ = g_strdup (_tmp181_); + _tmp180_ = scanner_get_option_by_name (self, _tmp178_, "compression", &_tmp179_); #line 1046 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp183_ = g_strdup ("None"); -#line 1046 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp184_ = g_strdup ("none"); -#line 1046 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp185_ = g_new0 (gchar*, 4 + 1); -#line 1046 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp185_[0] = _tmp180_; -#line 1046 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp185_[1] = _tmp182_; -#line 1046 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp185_[2] = _tmp183_; -#line 1046 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp185_[3] = _tmp184_; -#line 1046 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - disable_compression_names = _tmp185_; + index = (SANE_Int) _tmp179_; #line 1046 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + option = _tmp180_; +#line 1047 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp181_ = option; +#line 1047 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (_tmp181_ != NULL) { +#line 9737 "scanner.c" + gchar** disable_compression_names = NULL; + const gchar* _tmp182_ = NULL; + gchar* _tmp183_ = NULL; + const gchar* _tmp184_ = NULL; + gchar* _tmp185_ = NULL; + gchar* _tmp186_ = NULL; + gchar* _tmp187_ = NULL; + gchar** _tmp188_ = NULL; + gint disable_compression_names_length1 = 0; + gint _disable_compression_names_size_ = 0; + SANE_Handle _tmp189_ = {0}; + SANE_Option_Descriptor* _tmp190_ = NULL; + SANE_Int _tmp191_ = {0}; + gchar** _tmp192_ = NULL; + gint _tmp192__length1 = 0; + gboolean _tmp193_ = FALSE; +#line 1049 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp182_ = SANE_I18N ("None"); +#line 1049 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp183_ = g_strdup (_tmp182_); +#line 1049 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp184_ = SANE_I18N ("none"); +#line 1049 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp185_ = g_strdup (_tmp184_); +#line 1049 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp186_ = g_strdup ("None"); +#line 1049 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp187_ = g_strdup ("none"); +#line 1049 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp188_ = g_new0 (gchar*, 4 + 1); +#line 1049 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp188_[0] = _tmp183_; +#line 1049 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp188_[1] = _tmp185_; +#line 1049 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp188_[2] = _tmp186_; +#line 1049 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp188_[3] = _tmp187_; +#line 1049 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + disable_compression_names = _tmp188_; +#line 1049 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" disable_compression_names_length1 = 4; -#line 1046 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1049 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _disable_compression_names_size_ = disable_compression_names_length1; -#line 1054 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp186_ = self->priv->handle; -#line 1054 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp187_ = option; -#line 1054 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp188_ = index; -#line 1054 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp189_ = disable_compression_names; -#line 1054 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp189__length1 = disable_compression_names_length1; -#line 1054 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp190_ = scanner_set_constrained_string_option (self, _tmp186_, _tmp187_, _tmp188_, _tmp189_, _tmp189__length1, NULL); -#line 1054 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (!_tmp190_) { -#line 1055 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_warning ("scanner.vala:1055: Unable to disable compression, please file a bug"); -#line 9783 "scanner.c" +#line 1057 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp189_ = self->priv->handle; +#line 1057 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp190_ = option; +#line 1057 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp191_ = index; +#line 1057 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp192_ = disable_compression_names; +#line 1057 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp192__length1 = disable_compression_names_length1; +#line 1057 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp193_ = scanner_set_constrained_string_option (self, _tmp189_, _tmp190_, _tmp191_, _tmp192_, _tmp192__length1, NULL); +#line 1057 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (!_tmp193_) { +#line 1058 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_warning ("scanner.vala:1058: Unable to disable compression, please file a bug"); +#line 9798 "scanner.c" } -#line 1044 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1047 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" disable_compression_names = (_vala_array_free (disable_compression_names, disable_compression_names_length1, (GDestroyNotify) g_free), NULL); -#line 9787 "scanner.c" +#line 9802 "scanner.c" } -#line 1059 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp191_ = self->priv->handle; -#line 1059 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp192_ = SANE_NAME_SCAN_RESOLUTION; -#line 1059 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp194_ = scanner_get_option_by_name (self, _tmp191_, _tmp192_, &_tmp193_); -#line 1059 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp193_; -#line 1059 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp194_; -#line 1060 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp195_ = option; -#line 1060 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp195_ != NULL) { -#line 9803 "scanner.c" - SANE_Handle _tmp196_ = {0}; - SANE_Option_Descriptor* _tmp197_ = NULL; - SANE_Int _tmp198_ = {0}; - ScanJob* _tmp199_ = NULL; - gdouble _tmp200_ = 0.0; - ScanJob* _tmp201_ = NULL; - gdouble _tmp202_ = 0.0; - SANE_Handle _tmp203_ = {0}; - const gchar* _tmp204_ = NULL; - gint _tmp205_ = 0; - SANE_Option_Descriptor* _tmp206_ = NULL; - SANE_Option_Descriptor* _tmp207_ = NULL; -#line 1062 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp196_ = self->priv->handle; -#line 1062 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp197_ = option; #line 1062 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp198_ = index; + _tmp194_ = self->priv->handle; #line 1062 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp199_ = job; + _tmp195_ = SANE_NAME_SCAN_RESOLUTION; #line 1062 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp200_ = _tmp199_->dpi; + _tmp197_ = scanner_get_option_by_name (self, _tmp194_, _tmp195_, &_tmp196_); #line 1062 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp201_ = job; + index = (SANE_Int) _tmp196_; #line 1062 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_fixed_or_int_option (self, _tmp196_, _tmp197_, _tmp198_, _tmp200_, &_tmp202_); -#line 1062 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp201_->dpi = _tmp202_; -#line 1063 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp203_ = self->priv->handle; -#line 1063 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp204_ = SANE_NAME_BIT_DEPTH; -#line 1063 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp206_ = scanner_get_option_by_name (self, _tmp203_, _tmp204_, &_tmp205_); + option = _tmp197_; #line 1063 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp205_; + _tmp198_ = option; #line 1063 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp206_; -#line 1064 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp207_ = option; -#line 1064 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp207_ != NULL) { -#line 9846 "scanner.c" - ScanJob* _tmp208_ = NULL; - gint _tmp209_ = 0; + if (_tmp198_ != NULL) { +#line 9818 "scanner.c" + SANE_Handle _tmp199_ = {0}; + SANE_Option_Descriptor* _tmp200_ = NULL; + SANE_Int _tmp201_ = {0}; + ScanJob* _tmp202_ = NULL; + gdouble _tmp203_ = 0.0; + ScanJob* _tmp204_ = NULL; + gdouble _tmp205_ = 0.0; + SANE_Handle _tmp206_ = {0}; + const gchar* _tmp207_ = NULL; + gint _tmp208_ = 0; + SANE_Option_Descriptor* _tmp209_ = NULL; + SANE_Option_Descriptor* _tmp210_ = NULL; +#line 1065 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp199_ = self->priv->handle; +#line 1065 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp200_ = option; +#line 1065 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp201_ = index; +#line 1065 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp202_ = job; +#line 1065 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp203_ = _tmp202_->dpi; +#line 1065 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp204_ = job; +#line 1065 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + scanner_set_fixed_or_int_option (self, _tmp199_, _tmp200_, _tmp201_, _tmp203_, &_tmp205_); +#line 1065 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp204_->dpi = _tmp205_; #line 1066 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp208_ = job; + _tmp206_ = self->priv->handle; #line 1066 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp209_ = _tmp208_->depth; + _tmp207_ = SANE_NAME_BIT_DEPTH; #line 1066 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp209_ > 0) { -#line 9855 "scanner.c" - SANE_Handle _tmp210_ = {0}; - SANE_Option_Descriptor* _tmp211_ = NULL; - SANE_Int _tmp212_ = {0}; - ScanJob* _tmp213_ = NULL; - gint _tmp214_ = 0; -#line 1067 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp210_ = self->priv->handle; -#line 1067 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp211_ = option; -#line 1067 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp212_ = index; -#line 1067 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp213_ = job; + _tmp209_ = scanner_get_option_by_name (self, _tmp206_, _tmp207_, &_tmp208_); +#line 1066 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + index = (SANE_Int) _tmp208_; +#line 1066 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + option = _tmp209_; #line 1067 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp214_ = _tmp213_->depth; + _tmp210_ = option; #line 1067 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_int_option (self, _tmp210_, _tmp211_, _tmp212_, _tmp214_, NULL); -#line 9873 "scanner.c" + if (_tmp210_ != NULL) { +#line 9861 "scanner.c" + ScanJob* _tmp211_ = NULL; + gint _tmp212_ = 0; +#line 1069 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp211_ = job; +#line 1069 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp212_ = _tmp211_->depth; +#line 1069 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (_tmp212_ > 0) { +#line 9870 "scanner.c" + SANE_Handle _tmp213_ = {0}; + SANE_Option_Descriptor* _tmp214_ = NULL; + SANE_Int _tmp215_ = {0}; + ScanJob* _tmp216_ = NULL; + gint _tmp217_ = 0; +#line 1070 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp213_ = self->priv->handle; +#line 1070 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp214_ = option; +#line 1070 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp215_ = index; +#line 1070 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp216_ = job; +#line 1070 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp217_ = _tmp216_->depth; +#line 1070 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + scanner_set_int_option (self, _tmp213_, _tmp214_, _tmp215_, _tmp217_, NULL); +#line 9888 "scanner.c" } } } -#line 1072 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp215_ = self->priv->handle; -#line 1072 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp216_ = SANE_NAME_SCAN_BR_X; -#line 1072 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp218_ = scanner_get_option_by_name (self, _tmp215_, _tmp216_, &_tmp217_); -#line 1072 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp217_; -#line 1072 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp218_; -#line 1073 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp219_ = option; -#line 1073 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp219_ != NULL) { -#line 9891 "scanner.c" - ScanJob* _tmp220_ = NULL; - gint _tmp221_ = 0; #line 1075 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp220_ = job; + _tmp218_ = self->priv->handle; #line 1075 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp221_ = _tmp220_->page_width; + _tmp219_ = SANE_NAME_SCAN_BR_X; #line 1075 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp221_ > 0) { -#line 9900 "scanner.c" - SANE_Handle _tmp222_ = {0}; - SANE_Option_Descriptor* _tmp223_ = NULL; - SANE_Int _tmp224_ = {0}; - SANE_Option_Descriptor* _tmp225_ = NULL; - ScanJob* _tmp226_ = NULL; - gint _tmp227_ = 0; - ScanJob* _tmp228_ = NULL; - gdouble _tmp229_ = 0.0; - gdouble _tmp230_ = 0.0; -#line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp222_ = self->priv->handle; -#line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp223_ = option; -#line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp224_ = index; -#line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp225_ = option; -#line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp226_ = job; -#line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp227_ = _tmp226_->page_width; -#line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp228_ = job; -#line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp229_ = _tmp228_->dpi; + _tmp221_ = scanner_get_option_by_name (self, _tmp218_, _tmp219_, &_tmp220_); +#line 1075 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + index = (SANE_Int) _tmp220_; +#line 1075 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + option = _tmp221_; #line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp230_ = scanner_convert_page_size (self, _tmp225_, (gdouble) _tmp227_, _tmp229_); + _tmp222_ = option; #line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_fixed_or_int_option (self, _tmp222_, _tmp223_, _tmp224_, _tmp230_, NULL); -#line 9930 "scanner.c" - } else { - SANE_Handle _tmp231_ = {0}; - SANE_Option_Descriptor* _tmp232_ = NULL; - SANE_Int _tmp233_ = {0}; + if (_tmp222_ != NULL) { +#line 9906 "scanner.c" + ScanJob* _tmp223_ = NULL; + gint _tmp224_ = 0; #line 1078 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp231_ = self->priv->handle; + _tmp223_ = job; #line 1078 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp232_ = option; + _tmp224_ = _tmp223_->page_width; #line 1078 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp233_ = index; -#line 1078 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_option_to_max (self, _tmp231_, _tmp232_, _tmp233_); -#line 9943 "scanner.c" - } - } -#line 1080 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp234_ = self->priv->handle; -#line 1080 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp235_ = SANE_NAME_SCAN_BR_Y; -#line 1080 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp237_ = scanner_get_option_by_name (self, _tmp234_, _tmp235_, &_tmp236_); -#line 1080 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp236_; -#line 1080 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp237_; + if (_tmp224_ > 0) { +#line 9915 "scanner.c" + SANE_Handle _tmp225_ = {0}; + SANE_Option_Descriptor* _tmp226_ = NULL; + SANE_Int _tmp227_ = {0}; + SANE_Option_Descriptor* _tmp228_ = NULL; + ScanJob* _tmp229_ = NULL; + gint _tmp230_ = 0; + ScanJob* _tmp231_ = NULL; + gdouble _tmp232_ = 0.0; + gdouble _tmp233_ = 0.0; +#line 1079 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp225_ = self->priv->handle; +#line 1079 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp226_ = option; +#line 1079 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp227_ = index; +#line 1079 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp228_ = option; +#line 1079 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp229_ = job; +#line 1079 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp230_ = _tmp229_->page_width; +#line 1079 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp231_ = job; +#line 1079 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp232_ = _tmp231_->dpi; +#line 1079 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp233_ = scanner_convert_page_size (self, _tmp228_, (gdouble) _tmp230_, _tmp232_); +#line 1079 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + scanner_set_fixed_or_int_option (self, _tmp225_, _tmp226_, _tmp227_, _tmp233_, NULL); +#line 9945 "scanner.c" + } else { + SANE_Handle _tmp234_ = {0}; + SANE_Option_Descriptor* _tmp235_ = NULL; + SANE_Int _tmp236_ = {0}; +#line 1081 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp234_ = self->priv->handle; +#line 1081 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp235_ = option; #line 1081 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp238_ = option; + _tmp236_ = index; #line 1081 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp238_ != NULL) { -#line 9960 "scanner.c" - ScanJob* _tmp239_ = NULL; - gint _tmp240_ = 0; + scanner_set_option_to_max (self, _tmp234_, _tmp235_, _tmp236_); +#line 9958 "scanner.c" + } + } #line 1083 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp239_ = job; + _tmp237_ = self->priv->handle; #line 1083 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp240_ = _tmp239_->page_height; + _tmp238_ = SANE_NAME_SCAN_BR_Y; #line 1083 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp240_ > 0) { -#line 9969 "scanner.c" - SANE_Handle _tmp241_ = {0}; - SANE_Option_Descriptor* _tmp242_ = NULL; - SANE_Int _tmp243_ = {0}; - SANE_Option_Descriptor* _tmp244_ = NULL; - ScanJob* _tmp245_ = NULL; - gint _tmp246_ = 0; - ScanJob* _tmp247_ = NULL; - gdouble _tmp248_ = 0.0; - gdouble _tmp249_ = 0.0; -#line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp241_ = self->priv->handle; -#line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp242_ = option; -#line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp243_ = index; -#line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp244_ = option; -#line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp245_ = job; -#line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp246_ = _tmp245_->page_height; -#line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp247_ = job; -#line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp248_ = _tmp247_->dpi; + _tmp240_ = scanner_get_option_by_name (self, _tmp237_, _tmp238_, &_tmp239_); +#line 1083 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + index = (SANE_Int) _tmp239_; +#line 1083 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + option = _tmp240_; #line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp249_ = scanner_convert_page_size (self, _tmp244_, (gdouble) _tmp246_, _tmp248_); + _tmp241_ = option; #line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_fixed_or_int_option (self, _tmp241_, _tmp242_, _tmp243_, _tmp249_, NULL); -#line 9999 "scanner.c" - } else { - SANE_Handle _tmp250_ = {0}; - SANE_Option_Descriptor* _tmp251_ = NULL; - SANE_Int _tmp252_ = {0}; -#line 1086 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp250_ = self->priv->handle; + if (_tmp241_ != NULL) { +#line 9975 "scanner.c" + ScanJob* _tmp242_ = NULL; + gint _tmp243_ = 0; #line 1086 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp251_ = option; + _tmp242_ = job; #line 1086 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp252_ = index; + _tmp243_ = _tmp242_->page_height; #line 1086 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_option_to_max (self, _tmp250_, _tmp251_, _tmp252_); -#line 10012 "scanner.c" + if (_tmp243_ > 0) { +#line 9984 "scanner.c" + SANE_Handle _tmp244_ = {0}; + SANE_Option_Descriptor* _tmp245_ = NULL; + SANE_Int _tmp246_ = {0}; + SANE_Option_Descriptor* _tmp247_ = NULL; + ScanJob* _tmp248_ = NULL; + gint _tmp249_ = 0; + ScanJob* _tmp250_ = NULL; + gdouble _tmp251_ = 0.0; + gdouble _tmp252_ = 0.0; +#line 1087 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp244_ = self->priv->handle; +#line 1087 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp245_ = option; +#line 1087 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp246_ = index; +#line 1087 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp247_ = option; +#line 1087 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp248_ = job; +#line 1087 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp249_ = _tmp248_->page_height; +#line 1087 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp250_ = job; +#line 1087 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp251_ = _tmp250_->dpi; +#line 1087 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp252_ = scanner_convert_page_size (self, _tmp247_, (gdouble) _tmp249_, _tmp251_); +#line 1087 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + scanner_set_fixed_or_int_option (self, _tmp244_, _tmp245_, _tmp246_, _tmp252_, NULL); +#line 10014 "scanner.c" + } else { + SANE_Handle _tmp253_ = {0}; + SANE_Option_Descriptor* _tmp254_ = NULL; + SANE_Int _tmp255_ = {0}; +#line 1089 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp253_ = self->priv->handle; +#line 1089 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp254_ = option; +#line 1089 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp255_ = index; +#line 1089 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + scanner_set_option_to_max (self, _tmp253_, _tmp254_, _tmp255_); +#line 10027 "scanner.c" } } -#line 1090 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp253_ = self->priv->handle; -#line 1090 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp254_ = SANE_NAME_PAGE_WIDTH; -#line 1090 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp256_ = scanner_get_option_by_name (self, _tmp253_, _tmp254_, &_tmp255_); -#line 1090 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp255_; -#line 1090 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp256_; -#line 1091 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp258_ = option; -#line 1091 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp258_ != NULL) { -#line 10029 "scanner.c" - ScanJob* _tmp259_ = NULL; - gint _tmp260_ = 0; -#line 1091 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp259_ = job; -#line 1091 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp260_ = _tmp259_->page_width; -#line 1091 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp257_ = ((gdouble) _tmp260_) > 0.0; -#line 10038 "scanner.c" - } else { -#line 1091 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp257_ = FALSE; -#line 10042 "scanner.c" - } -#line 1091 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp257_) { -#line 10046 "scanner.c" - SANE_Handle _tmp261_ = {0}; - SANE_Option_Descriptor* _tmp262_ = NULL; - SANE_Int _tmp263_ = {0}; - SANE_Option_Descriptor* _tmp264_ = NULL; - ScanJob* _tmp265_ = NULL; - gint _tmp266_ = 0; - ScanJob* _tmp267_ = NULL; - gdouble _tmp268_ = 0.0; - gdouble _tmp269_ = 0.0; -#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp261_ = self->priv->handle; -#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp262_ = option; -#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp263_ = index; -#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp264_ = option; -#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp265_ = job; -#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp266_ = _tmp265_->page_width; -#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp267_ = job; -#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp268_ = _tmp267_->dpi; -#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp269_ = scanner_convert_page_size (self, _tmp264_, (gdouble) _tmp266_, _tmp268_); -#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_fixed_or_int_option (self, _tmp261_, _tmp262_, _tmp263_, _tmp269_, NULL); -#line 10076 "scanner.c" - } #line 1093 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp270_ = self->priv->handle; + _tmp256_ = self->priv->handle; #line 1093 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp271_ = SANE_NAME_PAGE_HEIGHT; + _tmp257_ = SANE_NAME_PAGE_WIDTH; #line 1093 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp273_ = scanner_get_option_by_name (self, _tmp270_, _tmp271_, &_tmp272_); + _tmp259_ = scanner_get_option_by_name (self, _tmp256_, _tmp257_, &_tmp258_); #line 1093 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp272_; + index = (SANE_Int) _tmp258_; #line 1093 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp273_; + option = _tmp259_; #line 1094 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp275_ = option; + _tmp261_ = option; #line 1094 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp275_ != NULL) { -#line 10092 "scanner.c" - ScanJob* _tmp276_ = NULL; - gint _tmp277_ = 0; + if (_tmp261_ != NULL) { +#line 10044 "scanner.c" + ScanJob* _tmp262_ = NULL; + gint _tmp263_ = 0; #line 1094 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp276_ = job; + _tmp262_ = job; #line 1094 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp277_ = _tmp276_->page_height; + _tmp263_ = _tmp262_->page_width; #line 1094 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp274_ = ((gdouble) _tmp277_) > 0.0; -#line 10101 "scanner.c" + _tmp260_ = ((gdouble) _tmp263_) > 0.0; +#line 10053 "scanner.c" } else { #line 1094 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp274_ = FALSE; -#line 10105 "scanner.c" + _tmp260_ = FALSE; +#line 10057 "scanner.c" } #line 1094 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp274_) { -#line 10109 "scanner.c" - SANE_Handle _tmp278_ = {0}; - SANE_Option_Descriptor* _tmp279_ = NULL; - SANE_Int _tmp280_ = {0}; - SANE_Option_Descriptor* _tmp281_ = NULL; - ScanJob* _tmp282_ = NULL; - gint _tmp283_ = 0; - ScanJob* _tmp284_ = NULL; - gdouble _tmp285_ = 0.0; - gdouble _tmp286_ = 0.0; + if (_tmp260_) { +#line 10061 "scanner.c" + SANE_Handle _tmp264_ = {0}; + SANE_Option_Descriptor* _tmp265_ = NULL; + SANE_Int _tmp266_ = {0}; + SANE_Option_Descriptor* _tmp267_ = NULL; + ScanJob* _tmp268_ = NULL; + gint _tmp269_ = 0; + ScanJob* _tmp270_ = NULL; + gdouble _tmp271_ = 0.0; + gdouble _tmp272_ = 0.0; #line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp278_ = self->priv->handle; + _tmp264_ = self->priv->handle; #line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp279_ = option; + _tmp265_ = option; #line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp280_ = index; + _tmp266_ = index; #line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp281_ = option; + _tmp267_ = option; #line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp282_ = job; + _tmp268_ = job; #line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp283_ = _tmp282_->page_height; + _tmp269_ = _tmp268_->page_width; #line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp284_ = job; + _tmp270_ = job; #line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp285_ = _tmp284_->dpi; + _tmp271_ = _tmp270_->dpi; #line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp286_ = scanner_convert_page_size (self, _tmp281_, (gdouble) _tmp283_, _tmp285_); + _tmp272_ = scanner_convert_page_size (self, _tmp267_, (gdouble) _tmp269_, _tmp271_); #line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_fixed_or_int_option (self, _tmp278_, _tmp279_, _tmp280_, _tmp286_, NULL); -#line 10139 "scanner.c" + scanner_set_fixed_or_int_option (self, _tmp264_, _tmp265_, _tmp266_, _tmp272_, NULL); +#line 10091 "scanner.c" } +#line 1096 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp273_ = self->priv->handle; +#line 1096 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp274_ = SANE_NAME_PAGE_HEIGHT; +#line 1096 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp276_ = scanner_get_option_by_name (self, _tmp273_, _tmp274_, &_tmp275_); +#line 1096 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + index = (SANE_Int) _tmp275_; +#line 1096 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + option = _tmp276_; +#line 1097 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp278_ = option; +#line 1097 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (_tmp278_ != NULL) { +#line 10107 "scanner.c" + ScanJob* _tmp279_ = NULL; + gint _tmp280_ = 0; #line 1097 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp287_ = self->priv->handle; + _tmp279_ = job; #line 1097 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp288_ = SANE_NAME_BRIGHTNESS; + _tmp280_ = _tmp279_->page_height; #line 1097 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp290_ = scanner_get_option_by_name (self, _tmp287_, _tmp288_, &_tmp289_); + _tmp277_ = ((gdouble) _tmp280_) > 0.0; +#line 10116 "scanner.c" + } else { #line 1097 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp289_; + _tmp277_ = FALSE; +#line 10120 "scanner.c" + } #line 1097 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp290_; + if (_tmp277_) { +#line 10124 "scanner.c" + SANE_Handle _tmp281_ = {0}; + SANE_Option_Descriptor* _tmp282_ = NULL; + SANE_Int _tmp283_ = {0}; + SANE_Option_Descriptor* _tmp284_ = NULL; + ScanJob* _tmp285_ = NULL; + gint _tmp286_ = 0; + ScanJob* _tmp287_ = NULL; + gdouble _tmp288_ = 0.0; + gdouble _tmp289_ = 0.0; +#line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp281_ = self->priv->handle; +#line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp282_ = option; +#line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp283_ = index; +#line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp284_ = option; +#line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp285_ = job; +#line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp286_ = _tmp285_->page_height; #line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp291_ = option; + _tmp287_ = job; #line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp291_ != NULL) { -#line 10155 "scanner.c" - ScanJob* _tmp292_ = NULL; - gint _tmp293_ = 0; + _tmp288_ = _tmp287_->dpi; +#line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp289_ = scanner_convert_page_size (self, _tmp284_, (gdouble) _tmp286_, _tmp288_); +#line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + scanner_set_fixed_or_int_option (self, _tmp281_, _tmp282_, _tmp283_, _tmp289_, NULL); +#line 10154 "scanner.c" + } #line 1100 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp292_ = job; + _tmp290_ = self->priv->handle; #line 1100 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp293_ = _tmp292_->brightness; + _tmp291_ = SANE_NAME_BRIGHTNESS; #line 1100 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp293_ != 0) { -#line 10164 "scanner.c" - gint brightness = 0; - SANE_Option_Descriptor* _tmp294_ = NULL; - ScanJob* _tmp295_ = NULL; - gint _tmp296_ = 0; - gint _tmp297_ = 0; - SANE_Handle _tmp298_ = {0}; - SANE_Option_Descriptor* _tmp299_ = NULL; - SANE_Int _tmp300_ = {0}; - gint _tmp301_ = 0; -#line 1102 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp294_ = option; -#line 1102 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp295_ = job; -#line 1102 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp296_ = _tmp295_->brightness; -#line 1102 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp297_ = scanner_scale_int (self, -100, 100, _tmp294_, _tmp296_); -#line 1102 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - brightness = _tmp297_; -#line 1103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp298_ = self->priv->handle; -#line 1103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp299_ = option; + _tmp293_ = scanner_get_option_by_name (self, _tmp290_, _tmp291_, &_tmp292_); +#line 1100 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + index = (SANE_Int) _tmp292_; +#line 1100 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + option = _tmp293_; +#line 1101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp294_ = option; +#line 1101 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (_tmp294_ != NULL) { +#line 10170 "scanner.c" + ScanJob* _tmp295_ = NULL; + gint _tmp296_ = 0; #line 1103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp300_ = index; + _tmp295_ = job; #line 1103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp301_ = brightness; + _tmp296_ = _tmp295_->brightness; #line 1103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_int_option (self, _tmp298_, _tmp299_, _tmp300_, _tmp301_, NULL); -#line 10194 "scanner.c" - } - } + if (_tmp296_ != 0) { +#line 10179 "scanner.c" + gint brightness = 0; + SANE_Option_Descriptor* _tmp297_ = NULL; + ScanJob* _tmp298_ = NULL; + gint _tmp299_ = 0; + gint _tmp300_ = 0; + SANE_Handle _tmp301_ = {0}; + SANE_Option_Descriptor* _tmp302_ = NULL; + SANE_Int _tmp303_ = {0}; + gint _tmp304_ = 0; +#line 1105 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp297_ = option; +#line 1105 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp298_ = job; +#line 1105 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp299_ = _tmp298_->brightness; +#line 1105 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp300_ = scanner_scale_int (self, -100, 100, _tmp297_, _tmp299_); +#line 1105 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + brightness = _tmp300_; #line 1106 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp302_ = self->priv->handle; + _tmp301_ = self->priv->handle; #line 1106 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp303_ = SANE_NAME_CONTRAST; + _tmp302_ = option; #line 1106 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp305_ = scanner_get_option_by_name (self, _tmp302_, _tmp303_, &_tmp304_); + _tmp303_ = index; #line 1106 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp304_; + _tmp304_ = brightness; #line 1106 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp305_; -#line 1107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp306_ = option; -#line 1107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp306_ != NULL) { -#line 10211 "scanner.c" - ScanJob* _tmp307_ = NULL; - gint _tmp308_ = 0; + scanner_set_int_option (self, _tmp301_, _tmp302_, _tmp303_, _tmp304_, NULL); +#line 10209 "scanner.c" + } + } #line 1109 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp307_ = job; + _tmp305_ = self->priv->handle; #line 1109 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp308_ = _tmp307_->contrast; + _tmp306_ = SANE_NAME_CONTRAST; #line 1109 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp308_ != 0) { -#line 10220 "scanner.c" - gint contrast = 0; - SANE_Option_Descriptor* _tmp309_ = NULL; - ScanJob* _tmp310_ = NULL; - gint _tmp311_ = 0; - gint _tmp312_ = 0; - SANE_Handle _tmp313_ = {0}; - SANE_Option_Descriptor* _tmp314_ = NULL; - SANE_Int _tmp315_ = {0}; - gint _tmp316_ = 0; -#line 1111 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp309_ = option; -#line 1111 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp310_ = job; -#line 1111 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp311_ = _tmp310_->contrast; -#line 1111 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp312_ = scanner_scale_int (self, -100, 100, _tmp309_, _tmp311_); -#line 1111 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - contrast = _tmp312_; -#line 1112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp313_ = self->priv->handle; -#line 1112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp314_ = option; + _tmp308_ = scanner_get_option_by_name (self, _tmp305_, _tmp306_, &_tmp307_); +#line 1109 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + index = (SANE_Int) _tmp307_; +#line 1109 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + option = _tmp308_; +#line 1110 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp309_ = option; +#line 1110 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (_tmp309_ != NULL) { +#line 10226 "scanner.c" + ScanJob* _tmp310_ = NULL; + gint _tmp311_ = 0; #line 1112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp315_ = index; + _tmp310_ = job; #line 1112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp316_ = contrast; + _tmp311_ = _tmp310_->contrast; #line 1112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_int_option (self, _tmp313_, _tmp314_, _tmp315_, _tmp316_, NULL); -#line 10250 "scanner.c" + if (_tmp311_ != 0) { +#line 10235 "scanner.c" + gint contrast = 0; + SANE_Option_Descriptor* _tmp312_ = NULL; + ScanJob* _tmp313_ = NULL; + gint _tmp314_ = 0; + gint _tmp315_ = 0; + SANE_Handle _tmp316_ = {0}; + SANE_Option_Descriptor* _tmp317_ = NULL; + SANE_Int _tmp318_ = {0}; + gint _tmp319_ = 0; +#line 1114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp312_ = option; +#line 1114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp313_ = job; +#line 1114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp314_ = _tmp313_->contrast; +#line 1114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp315_ = scanner_scale_int (self, -100, 100, _tmp312_, _tmp314_); +#line 1114 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + contrast = _tmp315_; +#line 1115 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp316_ = self->priv->handle; +#line 1115 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp317_ = option; +#line 1115 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp318_ = index; +#line 1115 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp319_ = contrast; +#line 1115 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + scanner_set_int_option (self, _tmp316_, _tmp317_, _tmp318_, _tmp319_, NULL); +#line 10265 "scanner.c" } } -#line 1117 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp317_ = self->priv->current_device; -#line 1117 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (g_strcmp0 (_tmp317_, "test") == 0) { -#line 10257 "scanner.c" - SANE_Handle _tmp318_ = {0}; - gint _tmp319_ = 0; - SANE_Option_Descriptor* _tmp320_ = NULL; - SANE_Option_Descriptor* _tmp321_ = NULL; - SANE_Handle _tmp325_ = {0}; - gint _tmp326_ = 0; - SANE_Option_Descriptor* _tmp327_ = NULL; - SANE_Option_Descriptor* _tmp328_ = NULL; - SANE_Handle _tmp332_ = {0}; - gint _tmp333_ = 0; - SANE_Option_Descriptor* _tmp334_ = NULL; - SANE_Option_Descriptor* _tmp335_ = NULL; - SANE_Handle _tmp339_ = {0}; - gint _tmp340_ = 0; - SANE_Option_Descriptor* _tmp341_ = NULL; - SANE_Option_Descriptor* _tmp342_ = NULL; - SANE_Handle _tmp346_ = {0}; - gint _tmp347_ = 0; - SANE_Option_Descriptor* _tmp348_ = NULL; - SANE_Option_Descriptor* _tmp349_ = NULL; -#line 1119 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp318_ = self->priv->handle; -#line 1119 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp320_ = scanner_get_option_by_name (self, _tmp318_, "hand-scanner", &_tmp319_); -#line 1119 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp319_; -#line 1119 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp320_; #line 1120 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp321_ = option; + _tmp320_ = self->priv->current_device; #line 1120 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp321_ != NULL) { -#line 10290 "scanner.c" - SANE_Handle _tmp322_ = {0}; - SANE_Option_Descriptor* _tmp323_ = NULL; - SANE_Int _tmp324_ = {0}; -#line 1121 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp322_ = self->priv->handle; -#line 1121 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp323_ = option; -#line 1121 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp324_ = index; -#line 1121 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_bool_option (self, _tmp322_, _tmp323_, _tmp324_, FALSE, NULL); -#line 10302 "scanner.c" - } + if (g_strcmp0 (_tmp320_, "test") == 0) { +#line 10272 "scanner.c" + SANE_Handle _tmp321_ = {0}; + gint _tmp322_ = 0; + SANE_Option_Descriptor* _tmp323_ = NULL; + SANE_Option_Descriptor* _tmp324_ = NULL; + SANE_Handle _tmp328_ = {0}; + gint _tmp329_ = 0; + SANE_Option_Descriptor* _tmp330_ = NULL; + SANE_Option_Descriptor* _tmp331_ = NULL; + SANE_Handle _tmp335_ = {0}; + gint _tmp336_ = 0; + SANE_Option_Descriptor* _tmp337_ = NULL; + SANE_Option_Descriptor* _tmp338_ = NULL; + SANE_Handle _tmp342_ = {0}; + gint _tmp343_ = 0; + SANE_Option_Descriptor* _tmp344_ = NULL; + SANE_Option_Descriptor* _tmp345_ = NULL; + SANE_Handle _tmp349_ = {0}; + gint _tmp350_ = 0; + SANE_Option_Descriptor* _tmp351_ = NULL; + SANE_Option_Descriptor* _tmp352_ = NULL; #line 1122 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp325_ = self->priv->handle; + _tmp321_ = self->priv->handle; #line 1122 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp327_ = scanner_get_option_by_name (self, _tmp325_, "three-pass", &_tmp326_); + _tmp323_ = scanner_get_option_by_name (self, _tmp321_, "hand-scanner", &_tmp322_); #line 1122 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp326_; + index = (SANE_Int) _tmp322_; #line 1122 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp327_; + option = _tmp323_; #line 1123 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp328_ = option; + _tmp324_ = option; #line 1123 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp328_ != NULL) { -#line 10316 "scanner.c" - SANE_Handle _tmp329_ = {0}; - SANE_Option_Descriptor* _tmp330_ = NULL; - SANE_Int _tmp331_ = {0}; + if (_tmp324_ != NULL) { +#line 10305 "scanner.c" + SANE_Handle _tmp325_ = {0}; + SANE_Option_Descriptor* _tmp326_ = NULL; + SANE_Int _tmp327_ = {0}; #line 1124 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp329_ = self->priv->handle; + _tmp325_ = self->priv->handle; #line 1124 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp330_ = option; + _tmp326_ = option; #line 1124 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp331_ = index; + _tmp327_ = index; #line 1124 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_bool_option (self, _tmp329_, _tmp330_, _tmp331_, FALSE, NULL); -#line 10328 "scanner.c" + scanner_set_bool_option (self, _tmp325_, _tmp326_, _tmp327_, FALSE, NULL); +#line 10317 "scanner.c" } #line 1125 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp332_ = self->priv->handle; + _tmp328_ = self->priv->handle; #line 1125 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp334_ = scanner_get_option_by_name (self, _tmp332_, "test-picture", &_tmp333_); + _tmp330_ = scanner_get_option_by_name (self, _tmp328_, "three-pass", &_tmp329_); #line 1125 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp333_; + index = (SANE_Int) _tmp329_; #line 1125 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp334_; + option = _tmp330_; #line 1126 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp335_ = option; + _tmp331_ = option; #line 1126 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp335_ != NULL) { -#line 10342 "scanner.c" - SANE_Handle _tmp336_ = {0}; - SANE_Option_Descriptor* _tmp337_ = NULL; - SANE_Int _tmp338_ = {0}; + if (_tmp331_ != NULL) { +#line 10331 "scanner.c" + SANE_Handle _tmp332_ = {0}; + SANE_Option_Descriptor* _tmp333_ = NULL; + SANE_Int _tmp334_ = {0}; #line 1127 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp336_ = self->priv->handle; + _tmp332_ = self->priv->handle; #line 1127 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp337_ = option; + _tmp333_ = option; #line 1127 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp338_ = index; + _tmp334_ = index; #line 1127 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_string_option (self, _tmp336_, _tmp337_, _tmp338_, "Color pattern", NULL); -#line 10354 "scanner.c" + scanner_set_bool_option (self, _tmp332_, _tmp333_, _tmp334_, FALSE, NULL); +#line 10343 "scanner.c" } #line 1128 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp339_ = self->priv->handle; + _tmp335_ = self->priv->handle; #line 1128 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp341_ = scanner_get_option_by_name (self, _tmp339_, "read-delay", &_tmp340_); + _tmp337_ = scanner_get_option_by_name (self, _tmp335_, "test-picture", &_tmp336_); #line 1128 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp340_; + index = (SANE_Int) _tmp336_; #line 1128 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp341_; + option = _tmp337_; #line 1129 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp342_ = option; + _tmp338_ = option; #line 1129 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp342_ != NULL) { -#line 10368 "scanner.c" - SANE_Handle _tmp343_ = {0}; - SANE_Option_Descriptor* _tmp344_ = NULL; - SANE_Int _tmp345_ = {0}; + if (_tmp338_ != NULL) { +#line 10357 "scanner.c" + SANE_Handle _tmp339_ = {0}; + SANE_Option_Descriptor* _tmp340_ = NULL; + SANE_Int _tmp341_ = {0}; #line 1130 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp343_ = self->priv->handle; + _tmp339_ = self->priv->handle; #line 1130 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp344_ = option; + _tmp340_ = option; #line 1130 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp345_ = index; + _tmp341_ = index; #line 1130 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_bool_option (self, _tmp343_, _tmp344_, _tmp345_, TRUE, NULL); -#line 10380 "scanner.c" + scanner_set_string_option (self, _tmp339_, _tmp340_, _tmp341_, "Color pattern", NULL); +#line 10369 "scanner.c" } #line 1131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp346_ = self->priv->handle; + _tmp342_ = self->priv->handle; #line 1131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp348_ = scanner_get_option_by_name (self, _tmp346_, "read-delay-duration", &_tmp347_); + _tmp344_ = scanner_get_option_by_name (self, _tmp342_, "read-delay", &_tmp343_); #line 1131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - index = (SANE_Int) _tmp347_; + index = (SANE_Int) _tmp343_; #line 1131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - option = _tmp348_; + option = _tmp344_; #line 1132 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp349_ = option; + _tmp345_ = option; #line 1132 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp349_ != NULL) { -#line 10394 "scanner.c" - SANE_Handle _tmp350_ = {0}; - SANE_Option_Descriptor* _tmp351_ = NULL; - SANE_Int _tmp352_ = {0}; + if (_tmp345_ != NULL) { +#line 10383 "scanner.c" + SANE_Handle _tmp346_ = {0}; + SANE_Option_Descriptor* _tmp347_ = NULL; + SANE_Int _tmp348_ = {0}; #line 1133 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp350_ = self->priv->handle; + _tmp346_ = self->priv->handle; #line 1133 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp351_ = option; + _tmp347_ = option; #line 1133 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp352_ = index; + _tmp348_ = index; #line 1133 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_set_int_option (self, _tmp350_, _tmp351_, _tmp352_, 200000, NULL); -#line 10406 "scanner.c" + scanner_set_bool_option (self, _tmp346_, _tmp347_, _tmp348_, TRUE, NULL); +#line 10395 "scanner.c" } - } +#line 1134 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp349_ = self->priv->handle; +#line 1134 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp351_ = scanner_get_option_by_name (self, _tmp349_, "read-delay-duration", &_tmp350_); +#line 1134 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + index = (SANE_Int) _tmp350_; +#line 1134 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + option = _tmp351_; +#line 1135 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp352_ = option; +#line 1135 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (_tmp352_ != NULL) { +#line 10409 "scanner.c" + SANE_Handle _tmp353_ = {0}; + SANE_Option_Descriptor* _tmp354_ = NULL; + SANE_Int _tmp355_ = {0}; +#line 1136 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp353_ = self->priv->handle; +#line 1136 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp354_ = option; +#line 1136 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp355_ = index; #line 1136 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + scanner_set_int_option (self, _tmp353_, _tmp354_, _tmp355_, 200000, NULL); +#line 10421 "scanner.c" + } + } +#line 1139 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->state = SCAN_STATE_START; -#line 1137 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1140 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _scan_job_unref0 (job); -#line 1137 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1140 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return; -#line 10415 "scanner.c" +#line 10430 "scanner.c" } -#line 1140 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp353_ = index; -#line 1140 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp354_ = option; -#line 1140 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_log_option (self, _tmp353_, _tmp354_); -#line 1143 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp355_ = option; #line 1143 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp356_ = _tmp355_->type; + _tmp356_ = index; #line 1143 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp356_ == SANE_TYPE_GROUP) { -#line 1144 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _scan_job_unref0 (job); -#line 1144 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - return; -#line 10433 "scanner.c" - } -#line 1147 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp357_ = option; +#line 1143 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + scanner_log_option (self, _tmp356_, _tmp357_); +#line 1146 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp358_ = option; +#line 1146 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp359_ = _tmp358_->type; +#line 1146 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if (_tmp359_ == SANE_TYPE_GROUP) { #line 1147 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp358_ = _tmp357_->cap; -#line 1147 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if ((_tmp358_ & SANE_CAP_INACTIVE) != ((SANE_Int) 0)) { -#line 1148 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _scan_job_unref0 (job); -#line 1148 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1147 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return; -#line 10445 "scanner.c" - } +#line 10448 "scanner.c" + } +#line 1150 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp360_ = option; +#line 1150 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp361_ = _tmp360_->cap; +#line 1150 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + if ((_tmp361_ & SANE_CAP_INACTIVE) != ((SANE_Int) 0)) { #line 1151 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp359_ = option; -#line 1151 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp360_ = _tmp359_->name; -#line 1151 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - if (_tmp360_ == NULL) { -#line 1152 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _scan_job_unref0 (job); -#line 1152 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1151 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return; -#line 10457 "scanner.c" +#line 10460 "scanner.c" } -#line 1154 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp361_ = self->priv->options; #line 1154 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp362_ = option; #line 1154 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp363_ = _tmp362_->name; #line 1154 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp364_ = g_strdup (_tmp363_); -#line 1154 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp365_ = index; -#line 1154 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_hash_table_insert (_tmp361_, _tmp364_, (gpointer) ((gintptr) ((gint) _tmp365_))); + if (_tmp363_ == NULL) { +#line 1155 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _scan_job_unref0 (job); +#line 1155 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + return; +#line 10472 "scanner.c" + } +#line 1157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp364_ = self->priv->options; +#line 1157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp365_ = option; +#line 1157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp366_ = _tmp365_->name; +#line 1157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp367_ = g_strdup (_tmp366_); +#line 1157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp368_ = index; +#line 1157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_hash_table_insert (_tmp364_, _tmp367_, (gpointer) ((gintptr) ((gint) _tmp368_))); #line 879 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _scan_job_unref0 (job); -#line 10473 "scanner.c" +#line 10488 "scanner.c" } @@ -10485,54 +10500,54 @@ static gdouble scanner_convert_page_size (Scanner* self, SANE_Option_Descriptor* gdouble result = 0.0; SANE_Option_Descriptor* _tmp0_ = NULL; SANE_Unit _tmp1_ = 0; -#line 1157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_val_if_fail (self != NULL, 0.0); -#line 1157 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_val_if_fail (option != NULL, 0.0); -#line 1159 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1162 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = option; -#line 1159 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1162 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp1_ = _tmp0_->unit; -#line 1159 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1162 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp1_ == SANE_UNIT_PIXEL) { -#line 10491 "scanner.c" +#line 10506 "scanner.c" gdouble _tmp2_ = 0.0; gdouble _tmp3_ = 0.0; -#line 1160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1163 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp2_ = dpi; -#line 1160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1163 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp3_ = size; -#line 1160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1163 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = (_tmp2_ * _tmp3_) / 254.0; -#line 1160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1163 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 10502 "scanner.c" +#line 10517 "scanner.c" } else { SANE_Option_Descriptor* _tmp4_ = NULL; SANE_Unit _tmp5_ = 0; -#line 1161 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1164 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp4_ = option; -#line 1161 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1164 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp5_ = _tmp4_->unit; -#line 1161 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1164 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp5_ == SANE_UNIT_MM) { -#line 10512 "scanner.c" +#line 10527 "scanner.c" gdouble _tmp6_ = 0.0; -#line 1162 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1165 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp6_ = size; -#line 1162 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1165 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = _tmp6_ / 10.0; -#line 1162 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1165 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 10520 "scanner.c" +#line 10535 "scanner.c" } else { -#line 1165 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_warning ("scanner.vala:1165: Unable to set unsupported unit type"); -#line 1166 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1168 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_warning ("scanner.vala:1168: Unable to set unsupported unit type"); +#line 1169 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = (gdouble) 0.0f; -#line 1166 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1169 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 10528 "scanner.c" +#line 10543 "scanner.c" } } } @@ -10548,51 +10563,51 @@ static SANE_Option_Descriptor* scanner_get_option_by_name (Scanner* self, SANE_H SANE_Handle _tmp4_ = {0}; gint _tmp5_ = 0; SANE_Option_Descriptor* _tmp6_ = NULL; -#line 1170 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1173 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_val_if_fail (self != NULL, NULL); -#line 1170 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1173 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_val_if_fail (name != NULL, NULL); -#line 1172 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1175 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = self->priv->options; -#line 1172 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1175 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp1_ = name; -#line 1172 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1175 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp2_ = g_hash_table_lookup (_tmp0_, _tmp1_); -#line 1172 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1175 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _vala_index = (gint) ((gintptr) _tmp2_); -#line 1173 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1176 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp3_ = _vala_index; -#line 1173 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1176 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp3_ == 0) { -#line 1174 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1177 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = NULL; -#line 1174 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1177 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (index) { -#line 1174 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1177 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" *index = _vala_index; -#line 10566 "scanner.c" +#line 10581 "scanner.c" } -#line 1174 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1177 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 10570 "scanner.c" +#line 10585 "scanner.c" } -#line 1176 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1179 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp4_ = handle; -#line 1176 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1179 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp5_ = _vala_index; -#line 1176 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1179 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp6_ = sane_get_option_descriptor (_tmp4_, (SANE_Int) _tmp5_); -#line 1176 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1179 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = _tmp6_; -#line 1176 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1179 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (index) { -#line 1176 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1179 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" *index = _vala_index; -#line 10584 "scanner.c" +#line 10599 "scanner.c" } -#line 1176 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1179 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 10588 "scanner.c" +#line 10603 "scanner.c" } @@ -10602,41 +10617,41 @@ static void scanner_do_complete_document (Scanner* self) { GList* _tmp2_ = NULL; NotifyDocumentDone* _tmp3_ = NULL; NotifyDocumentDone* _tmp4_ = NULL; -#line 1179 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1182 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_if_fail (self != NULL); -#line 1181 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1184 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = self->priv->handle; -#line 1181 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - sane_cancel (_tmp0_); -#line 1182 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_debug ("scanner.vala:1182: sane_cancel ()"); #line 1184 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + sane_cancel (_tmp0_); +#line 1185 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_debug ("scanner.vala:1185: sane_cancel ()"); +#line 1187 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp1_ = self->priv->job_queue; -#line 1184 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1187 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->job_queue = g_list_remove_link (self->priv->job_queue, _tmp1_); -#line 1186 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - self->priv->state = SCAN_STATE_IDLE; #line 1189 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + self->priv->state = SCAN_STATE_IDLE; +#line 1192 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp2_ = self->priv->job_queue; -#line 1189 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1192 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp2_ != NULL) { -#line 1191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1194 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->state = SCAN_STATE_OPEN; -#line 1192 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1195 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return; -#line 10620 "scanner.c" +#line 10635 "scanner.c" } -#line 1198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1201 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp3_ = notify_document_done_new (); -#line 1198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1201 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp4_ = _tmp3_; -#line 1198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1201 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_notify (self, (Notify*) _tmp4_); -#line 1198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1201 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _notify_unref0 (_tmp4_); -#line 1199 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1202 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_set_scanning (self, FALSE); -#line 10632 "scanner.c" +#line 10647 "scanner.c" } @@ -10652,70 +10667,70 @@ static void scanner_do_start (Scanner* self) { gchar* _tmp7_ = NULL; gchar* _tmp8_ = NULL; SANE_Status _tmp9_ = 0; -#line 1202 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1205 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_if_fail (self != NULL); -#line 1206 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1209 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = notify_expect_page_new (); -#line 1206 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1209 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp1_ = _tmp0_; -#line 1206 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1209 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_notify (self, (Notify*) _tmp1_); -#line 1206 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1209 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _notify_unref0 (_tmp1_); -#line 1208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1211 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp2_ = self->priv->handle; -#line 1208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1211 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp3_ = sane_start (_tmp2_); -#line 1208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1211 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" status = _tmp3_; -#line 1209 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1212 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp4_ = self->priv->page_number; -#line 1209 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1212 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp5_ = self->priv->pass_number; -#line 1209 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1212 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp6_ = status; -#line 1209 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1212 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp7_ = sane_status_to_string (_tmp6_); -#line 1209 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1212 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp8_ = _tmp7_; -#line 1209 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_debug ("scanner.vala:1209: sane_start (page=%d, pass=%d) -> %s", _tmp4_, _tmp5_, _tmp8_); -#line 1209 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1212 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_debug ("scanner.vala:1212: sane_start (page=%d, pass=%d) -> %s", _tmp4_, _tmp5_, _tmp8_); +#line 1212 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _g_free0 (_tmp8_); -#line 1210 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1213 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp9_ = status; -#line 1210 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1213 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp9_ == SANE_STATUS_GOOD) { -#line 1211 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1214 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->state = SCAN_STATE_GET_PARAMETERS; -#line 10684 "scanner.c" +#line 10699 "scanner.c" } else { SANE_Status _tmp10_ = 0; -#line 1212 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1215 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp10_ = status; -#line 1212 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1215 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp10_ == SANE_STATUS_NO_DOCS) { -#line 1213 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1216 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_do_complete_document (self); -#line 10693 "scanner.c" +#line 10708 "scanner.c" } else { SANE_Status _tmp11_ = 0; const gchar* _tmp12_ = NULL; SANE_Status _tmp13_ = 0; const gchar* _tmp14_ = NULL; -#line 1216 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1219 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp11_ = status; -#line 1216 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1219 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp12_ = sane_strstatus (_tmp11_); -#line 1216 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_warning ("scanner.vala:1216: Unable to start device: %s", _tmp12_); -#line 1217 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1219 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_warning ("scanner.vala:1219: Unable to start device: %s", _tmp12_); +#line 1220 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp13_ = status; -#line 1217 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1220 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp14_ = _ ("Unable to start scan"); -#line 1217 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1220 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_fail_scan (self, (gint) _tmp13_, _tmp14_); -#line 10711 "scanner.c" +#line 10726 "scanner.c" } } } @@ -10730,7 +10745,7 @@ static gchar* sane_frame_to_string (SANE_Frame frame) { switch (_tmp0_) { #line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" case SANE_FRAME_GRAY: -#line 10726 "scanner.c" +#line 10741 "scanner.c" { gchar* _tmp1_ = NULL; #line 106 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" @@ -10739,11 +10754,11 @@ static gchar* sane_frame_to_string (SANE_Frame frame) { result = _tmp1_; #line 106 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" return result; -#line 10735 "scanner.c" +#line 10750 "scanner.c" } #line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" case SANE_FRAME_RGB: -#line 10739 "scanner.c" +#line 10754 "scanner.c" { gchar* _tmp2_ = NULL; #line 108 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" @@ -10752,11 +10767,11 @@ static gchar* sane_frame_to_string (SANE_Frame frame) { result = _tmp2_; #line 108 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" return result; -#line 10748 "scanner.c" +#line 10763 "scanner.c" } #line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" case SANE_FRAME_RED: -#line 10752 "scanner.c" +#line 10767 "scanner.c" { gchar* _tmp3_ = NULL; #line 110 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" @@ -10765,11 +10780,11 @@ static gchar* sane_frame_to_string (SANE_Frame frame) { result = _tmp3_; #line 110 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" return result; -#line 10761 "scanner.c" +#line 10776 "scanner.c" } #line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" case SANE_FRAME_GREEN: -#line 10765 "scanner.c" +#line 10780 "scanner.c" { gchar* _tmp4_ = NULL; #line 112 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" @@ -10778,11 +10793,11 @@ static gchar* sane_frame_to_string (SANE_Frame frame) { result = _tmp4_; #line 112 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" return result; -#line 10774 "scanner.c" +#line 10789 "scanner.c" } #line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" case SANE_FRAME_BLUE: -#line 10778 "scanner.c" +#line 10793 "scanner.c" { gchar* _tmp5_ = NULL; #line 114 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" @@ -10791,7 +10806,7 @@ static gchar* sane_frame_to_string (SANE_Frame frame) { result = _tmp5_; #line 114 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" return result; -#line 10787 "scanner.c" +#line 10802 "scanner.c" } default: { @@ -10805,7 +10820,7 @@ static gchar* sane_frame_to_string (SANE_Frame frame) { result = _tmp7_; #line 116 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi" return result; -#line 10801 "scanner.c" +#line 10816 "scanner.c" } } } @@ -10872,301 +10887,301 @@ static void scanner_do_get_parameters (Scanner* self) { gint _tmp72_ = 0; gint _tmp73_ = 0; guchar* _tmp74_ = NULL; -#line 1223 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_if_fail (self != NULL); -#line 1225 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1228 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = self->priv->handle; -#line 1225 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1228 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp2_ = sane_get_parameters (_tmp0_, &_tmp1_); -#line 1225 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1228 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->parameters = _tmp1_; -#line 1225 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1228 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" status = _tmp2_; -#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1229 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp3_ = status; -#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1229 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp4_ = sane_status_to_string (_tmp3_); -#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1229 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp5_ = _tmp4_; -#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_debug ("scanner.vala:1226: sane_get_parameters () -> %s", _tmp5_); -#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1229 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_debug ("scanner.vala:1229: sane_get_parameters () -> %s", _tmp5_); +#line 1229 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _g_free0 (_tmp5_); -#line 1227 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1230 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp6_ = status; -#line 1227 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1230 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp6_ != SANE_STATUS_GOOD) { -#line 10892 "scanner.c" +#line 10907 "scanner.c" SANE_Status _tmp7_ = 0; const gchar* _tmp8_ = NULL; SANE_Status _tmp9_ = 0; const gchar* _tmp10_ = NULL; -#line 1229 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1232 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp7_ = status; -#line 1229 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1232 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp8_ = sane_strstatus (_tmp7_); -#line 1229 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_warning ("scanner.vala:1229: Unable to get device parameters: %s", _tmp8_); -#line 1230 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1232 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_warning ("scanner.vala:1232: Unable to get device parameters: %s", _tmp8_); +#line 1233 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp9_ = status; -#line 1230 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1233 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp10_ = _ ("Error communicating with scanner"); -#line 1230 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_fail_scan (self, (gint) _tmp9_, _tmp10_); #line 1233 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + scanner_fail_scan (self, (gint) _tmp9_, _tmp10_); +#line 1236 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return; -#line 10911 "scanner.c" +#line 10926 "scanner.c" } -#line 1236 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1239 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp11_ = self->priv->job_queue; -#line 1236 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1239 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp12_ = _tmp11_->data; -#line 1236 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1239 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp13_ = _scan_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST ((ScanJob*) _tmp12_, TYPE_SCAN_JOB, ScanJob)); -#line 1236 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1239 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" job = _tmp13_; -#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1243 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp15_ = self->priv->parameters; -#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1243 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp16_ = _tmp15_.last_frame; -#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1243 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp16_) { -#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1243 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp14_ = "SANE_TRUE"; -#line 10929 "scanner.c" +#line 10944 "scanner.c" } else { -#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1243 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp14_ = "SANE_FALSE"; -#line 10933 "scanner.c" +#line 10948 "scanner.c" } -#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp17_ = self->priv->parameters; -#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp18_ = _tmp17_.format; -#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp19_ = sane_frame_to_string (_tmp18_); -#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp20_ = _tmp19_; -#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp21_ = self->priv->parameters; -#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp22_ = _tmp21_.bytes_per_line; -#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp23_ = self->priv->parameters; -#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp24_ = _tmp23_.pixels_per_line; -#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp25_ = self->priv->parameters; -#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp26_ = _tmp25_.lines; -#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp27_ = self->priv->parameters; -#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp28_ = _tmp27_.depth; -#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_debug ("scanner.vala:1238: Parameters: format=%s last_frame=%s bytes_per_line=" \ +#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_debug ("scanner.vala:1241: Parameters: format=%s last_frame=%s bytes_per_line=" \ "%d pixels_per_line=%d lines=%d depth=%d", _tmp20_, _tmp14_, _tmp22_, _tmp24_, _tmp26_, _tmp28_); -#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1241 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _g_free0 (_tmp20_); -#line 1246 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1249 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp29_ = scan_page_info_new (); -#line 1246 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1249 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" info = _tmp29_; -#line 1247 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1250 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp30_ = info; -#line 1247 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1250 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp31_ = self->priv->parameters; -#line 1247 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1250 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp32_ = _tmp31_.pixels_per_line; -#line 1247 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1250 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp30_->width = _tmp32_; -#line 1248 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1251 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp33_ = info; -#line 1248 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1251 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp34_ = self->priv->parameters; -#line 1248 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1251 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp35_ = _tmp34_.lines; -#line 1248 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1251 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp33_->height = _tmp35_; -#line 1249 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp36_ = info; -#line 1249 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp37_ = self->priv->parameters; -#line 1249 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp38_ = _tmp37_.depth; -#line 1249 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp36_->depth = _tmp38_; #line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp36_->depth = _tmp38_; +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp42_ = self->priv->parameters; -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp43_ = _tmp42_.depth; -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp43_ == 8) { -#line 10997 "scanner.c" +#line 11012 "scanner.c" SANE_Parameters _tmp44_ = {0}; SANE_Frame _tmp45_ = 0; -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp44_ = self->priv->parameters; -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp45_ = _tmp44_.format; -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp41_ = _tmp45_ == SANE_FRAME_GRAY; -#line 11006 "scanner.c" +#line 11021 "scanner.c" } else { -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp41_ = FALSE; -#line 11010 "scanner.c" +#line 11025 "scanner.c" } -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp41_) { -#line 11014 "scanner.c" +#line 11029 "scanner.c" ScanJob* _tmp46_ = NULL; gint _tmp47_ = 0; -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp46_ = job; -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp47_ = _tmp46_->depth; -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp40_ = _tmp47_ == 2; -#line 11023 "scanner.c" +#line 11038 "scanner.c" } else { -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp40_ = FALSE; -#line 11027 "scanner.c" +#line 11042 "scanner.c" } -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp40_) { -#line 11031 "scanner.c" +#line 11046 "scanner.c" ScanJob* _tmp48_ = NULL; ScanMode _tmp49_ = 0; -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp48_ = job; -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp49_ = _tmp48_->scan_mode; -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp39_ = _tmp49_ == SCAN_MODE_GRAY; -#line 11040 "scanner.c" +#line 11055 "scanner.c" } else { -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp39_ = FALSE; -#line 11044 "scanner.c" +#line 11059 "scanner.c" } -#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp39_) { -#line 11048 "scanner.c" +#line 11063 "scanner.c" ScanPageInfo* _tmp50_ = NULL; ScanJob* _tmp51_ = NULL; gint _tmp52_ = 0; -#line 1253 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1256 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp50_ = info; -#line 1253 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1256 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp51_ = job; -#line 1253 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1256 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp52_ = _tmp51_->depth; -#line 1253 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1256 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp50_->depth = _tmp52_; -#line 11060 "scanner.c" +#line 11075 "scanner.c" } -#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1257 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp54_ = self->priv->parameters; -#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1257 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp55_ = _tmp54_.format; -#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1257 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp55_ == SANE_FRAME_GRAY) { -#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1257 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp53_ = 1; -#line 11070 "scanner.c" +#line 11085 "scanner.c" } else { -#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1257 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp53_ = 3; -#line 11074 "scanner.c" +#line 11089 "scanner.c" } -#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1257 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp56_ = info; -#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1257 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp56_->n_channels = _tmp53_; -#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1258 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp57_ = info; -#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1258 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp58_ = job; -#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1258 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp59_ = _tmp58_->dpi; -#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1258 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp57_->dpi = _tmp59_; -#line 1256 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1259 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp60_ = info; -#line 1256 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1259 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp61_ = self->priv->current_device; -#line 1256 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1259 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp62_ = g_strdup (_tmp61_); -#line 1256 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1259 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _g_free0 (_tmp60_->device); -#line 1256 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1259 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp60_->device = _tmp62_; -#line 1258 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1261 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp63_ = self->priv->page_number; -#line 1258 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1261 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp64_ = self->priv->notified_page; -#line 1258 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1261 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp63_ != _tmp64_) { -#line 11104 "scanner.c" +#line 11119 "scanner.c" ScanJob* _tmp65_ = NULL; gint _tmp66_ = 0; ScanPageInfo* _tmp67_ = NULL; NotifyGotPageInfo* _tmp68_ = NULL; NotifyGotPageInfo* _tmp69_ = NULL; gint _tmp70_ = 0; -#line 1260 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1263 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp65_ = job; -#line 1260 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1263 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp66_ = _tmp65_->id; -#line 1260 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1263 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp67_ = info; -#line 1260 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1263 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp68_ = notify_got_page_info_new (_tmp66_, _tmp67_); -#line 1260 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1263 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp69_ = _tmp68_; -#line 1260 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1263 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_notify (self, (Notify*) _tmp69_); -#line 1260 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1263 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _notify_unref0 (_tmp69_); -#line 1261 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1264 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp70_ = self->priv->page_number; -#line 1261 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1264 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->notified_page = _tmp70_; -#line 11129 "scanner.c" +#line 11144 "scanner.c" } -#line 1265 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1268 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp71_ = self->priv->parameters; -#line 1265 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1268 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp72_ = _tmp71_.bytes_per_line; -#line 1265 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1268 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" buffer_size = _tmp72_ + 1; -#line 1266 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1269 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp73_ = buffer_size; -#line 1266 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1269 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp74_ = g_new0 (guchar, _tmp73_); -#line 1266 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1269 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->buffer = (g_free (self->priv->buffer), NULL); -#line 1266 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1269 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->buffer = _tmp74_; -#line 1266 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1269 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->buffer_length1 = _tmp73_; -#line 1266 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1269 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->_buffer_size_ = self->priv->buffer_length1; -#line 1267 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1270 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->n_used = 0; -#line 1268 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1271 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->line_count = 0; -#line 1269 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1272 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->pass_number = 0; -#line 1270 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1273 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->state = SCAN_STATE_READ; -#line 1223 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _scan_page_info_unref0 (info); -#line 1223 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1226 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _scan_job_unref0 (job); -#line 11161 "scanner.c" +#line 11176 "scanner.c" } @@ -11183,91 +11198,91 @@ static void scanner_do_complete_page (Scanner* self) { gboolean _tmp8_ = FALSE; ScanJob* _tmp10_ = NULL; ScanType _tmp11_ = 0; -#line 1273 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1276 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_if_fail (self != NULL); -#line 1275 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1278 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = self->priv->job_queue; -#line 1275 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1278 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp1_ = _tmp0_->data; -#line 1275 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1278 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp2_ = _scan_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST ((ScanJob*) _tmp1_, TYPE_SCAN_JOB, ScanJob)); -#line 1275 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1278 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" job = _tmp2_; -#line 1277 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp3_ = job; -#line 1277 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp4_ = _tmp3_->id; -#line 1277 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp5_ = notify_page_done_new (_tmp4_); -#line 1277 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp6_ = _tmp5_; -#line 1277 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_notify (self, (Notify*) _tmp6_); -#line 1277 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _notify_unref0 (_tmp6_); -#line 1280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp7_ = self->priv->parameters; #line 1280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _notify_unref0 (_tmp6_); +#line 1283 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp7_ = self->priv->parameters; +#line 1283 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp8_ = _tmp7_.last_frame; -#line 1280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1283 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (!_tmp8_) { -#line 11206 "scanner.c" +#line 11221 "scanner.c" gint _tmp9_ = 0; -#line 1282 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1285 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp9_ = self->priv->pass_number; -#line 1282 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1285 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->pass_number = _tmp9_ + 1; -#line 1283 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1286 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->state = SCAN_STATE_START; -#line 1284 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1287 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _scan_job_unref0 (job); -#line 1284 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1287 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return; -#line 11218 "scanner.c" +#line 11233 "scanner.c" } -#line 1288 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1291 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp10_ = job; -#line 1288 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1291 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp11_ = _tmp10_->type; -#line 1288 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1291 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp11_ != SCAN_TYPE_SINGLE) { -#line 11226 "scanner.c" +#line 11241 "scanner.c" gint _tmp12_ = 0; ScanJob* _tmp13_ = NULL; gint _tmp14_ = 0; NotifyPageDone* _tmp15_ = NULL; NotifyPageDone* _tmp16_ = NULL; -#line 1290 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1293 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp12_ = self->priv->page_number; -#line 1290 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1293 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->page_number = _tmp12_ + 1; -#line 1291 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1294 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->pass_number = 0; -#line 1292 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1295 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp13_ = job; -#line 1292 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1295 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp14_ = _tmp13_->id; -#line 1292 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1295 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp15_ = notify_page_done_new (_tmp14_); -#line 1292 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1295 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp16_ = _tmp15_; -#line 1292 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1295 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_notify (self, (Notify*) _tmp16_); -#line 1292 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1295 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _notify_unref0 (_tmp16_); -#line 1293 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1296 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->state = SCAN_STATE_START; -#line 1294 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1297 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _scan_job_unref0 (job); -#line 1294 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1297 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return; -#line 11256 "scanner.c" +#line 11271 "scanner.c" } -#line 1297 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_do_complete_document (self); -#line 1273 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1276 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _scan_job_unref0 (job); -#line 11262 "scanner.c" +#line 11277 "scanner.c" } @@ -11306,199 +11321,199 @@ static void scanner_do_read (Scanner* self) { gint _tmp40_ = 0; SANE_Parameters _tmp41_ = {0}; gint _tmp42_ = 0; -#line 1300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_if_fail (self != NULL); -#line 1302 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1305 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = self->priv->job_queue; -#line 1302 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1305 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp1_ = _tmp0_->data; -#line 1302 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1305 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp2_ = _scan_job_ref0 (G_TYPE_CHECK_INSTANCE_CAST ((ScanJob*) _tmp1_, TYPE_SCAN_JOB, ScanJob)); -#line 1302 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - job = _tmp2_; #line 1305 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + job = _tmp2_; +#line 1308 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp3_ = self->priv->buffer; -#line 1305 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1308 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp3__length1 = self->priv->buffer_length1; -#line 1305 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1308 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp4_ = self->priv->n_used; -#line 1305 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - n_to_read = _tmp3__length1 - _tmp4_; #line 1308 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + n_to_read = _tmp3__length1 - _tmp4_; +#line 1311 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp5_ = self->priv->buffer; -#line 1308 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1311 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp5__length1 = self->priv->buffer_length1; -#line 1308 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1311 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" b = (guchar*) _tmp5_; -#line 1309 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1312 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp6_ = self->priv->handle; -#line 1309 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1312 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp7_ = b; -#line 1309 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1312 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp8_ = self->priv->n_used; -#line 1309 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1312 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp9_ = n_to_read; -#line 1309 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1312 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp11_ = sane_read (_tmp6_, (guint8*) (_tmp7_ + _tmp8_), (SANE_Int) _tmp9_, &_tmp10_); -#line 1309 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1312 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" n_read = _tmp10_; -#line 1309 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1312 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" status = _tmp11_; -#line 1310 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1313 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp12_ = n_to_read; -#line 1310 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1313 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp13_ = status; -#line 1310 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1313 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp14_ = sane_status_to_string (_tmp13_); -#line 1310 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1313 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp15_ = _tmp14_; -#line 1310 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1313 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp16_ = n_read; -#line 1310 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_debug ("scanner.vala:1310: sane_read (%d) -> (%s, %d)", _tmp12_, _tmp15_, (gint) _tmp16_); -#line 1310 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _g_free0 (_tmp15_); #line 1313 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - _tmp17_ = status; + g_debug ("scanner.vala:1313: sane_read (%d) -> (%s, %d)", _tmp12_, _tmp15_, (gint) _tmp16_); #line 1313 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _g_free0 (_tmp15_); +#line 1316 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + _tmp17_ = status; +#line 1316 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp17_ == SANE_STATUS_EOF) { -#line 11357 "scanner.c" +#line 11372 "scanner.c" gboolean _tmp18_ = FALSE; SANE_Parameters _tmp19_ = {0}; gint _tmp20_ = 0; gint _tmp27_ = 0; -#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1318 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp19_ = self->priv->parameters; -#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1318 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp20_ = _tmp19_.lines; -#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1318 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp20_ > 0) { -#line 11368 "scanner.c" +#line 11383 "scanner.c" gint _tmp21_ = 0; SANE_Parameters _tmp22_ = {0}; gint _tmp23_ = 0; -#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1318 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp21_ = self->priv->line_count; -#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1318 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp22_ = self->priv->parameters; -#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1318 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp23_ = _tmp22_.lines; -#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1318 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp18_ = _tmp21_ != _tmp23_; -#line 11380 "scanner.c" +#line 11395 "scanner.c" } else { -#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1318 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp18_ = FALSE; -#line 11384 "scanner.c" +#line 11399 "scanner.c" } -#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1318 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp18_) { -#line 11388 "scanner.c" +#line 11403 "scanner.c" gint _tmp24_ = 0; SANE_Parameters _tmp25_ = {0}; gint _tmp26_ = 0; -#line 1316 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1319 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp24_ = self->priv->line_count; -#line 1316 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1319 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp25_ = self->priv->parameters; -#line 1316 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1319 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp26_ = _tmp25_.lines; -#line 1316 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_warning ("scanner.vala:1316: Scan completed with %d lines, expected %d lines", _tmp24_, _tmp26_); -#line 11400 "scanner.c" +#line 1319 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_warning ("scanner.vala:1319: Scan completed with %d lines, expected %d lines", _tmp24_, _tmp26_); +#line 11415 "scanner.c" } -#line 1317 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1320 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp27_ = self->priv->n_used; -#line 1317 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1320 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp27_ > 0) { -#line 11406 "scanner.c" +#line 11421 "scanner.c" gint _tmp28_ = 0; -#line 1318 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1321 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp28_ = self->priv->n_used; -#line 1318 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_warning ("scanner.vala:1318: Scan complete with %d bytes of unused data", _tmp28_); -#line 11412 "scanner.c" +#line 1321 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_warning ("scanner.vala:1321: Scan complete with %d bytes of unused data", _tmp28_); +#line 11427 "scanner.c" } -#line 1319 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1322 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_do_complete_page (self); -#line 1320 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1323 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _scan_job_unref0 (job); -#line 1320 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1323 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return; -#line 11420 "scanner.c" +#line 11435 "scanner.c" } -#line 1324 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp29_ = status; -#line 1324 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp29_ != SANE_STATUS_GOOD) { -#line 11426 "scanner.c" +#line 11441 "scanner.c" SANE_Status _tmp30_ = 0; const gchar* _tmp31_ = NULL; SANE_Status _tmp32_ = 0; const gchar* _tmp33_ = NULL; -#line 1326 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1329 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp30_ = status; -#line 1326 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1329 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp31_ = sane_strstatus (_tmp30_); -#line 1326 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_warning ("scanner.vala:1326: Unable to read frame from device: %s", _tmp31_); -#line 1327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1329 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_warning ("scanner.vala:1329: Unable to read frame from device: %s", _tmp31_); +#line 1330 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp32_ = status; -#line 1327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1330 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp33_ = _ ("Error communicating with scanner"); -#line 1327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - scanner_fail_scan (self, (gint) _tmp32_, _tmp33_); #line 1330 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + scanner_fail_scan (self, (gint) _tmp32_, _tmp33_); +#line 1333 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _scan_job_unref0 (job); -#line 1330 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1333 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return; -#line 11447 "scanner.c" +#line 11462 "scanner.c" } -#line 1333 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1336 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" full_read = FALSE; -#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1337 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp35_ = self->priv->n_used; -#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1337 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp35_ == 0) { -#line 11455 "scanner.c" +#line 11470 "scanner.c" SANE_Int _tmp36_ = {0}; guchar* _tmp37_ = NULL; gint _tmp37__length1 = 0; -#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1337 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp36_ = n_read; -#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1337 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp37_ = self->priv->buffer; -#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1337 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp37__length1 = self->priv->buffer_length1; -#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1337 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp34_ = _tmp36_ == ((SANE_Int) _tmp37__length1); -#line 11467 "scanner.c" +#line 11482 "scanner.c" } else { -#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1337 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp34_ = FALSE; -#line 11471 "scanner.c" +#line 11486 "scanner.c" } -#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1337 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp34_) { -#line 1335 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1338 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" full_read = TRUE; -#line 11477 "scanner.c" +#line 11492 "scanner.c" } -#line 1336 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp38_ = self->priv->n_used; -#line 1336 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp39_ = n_read; -#line 1336 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - self->priv->n_used = _tmp38_ + ((gint) _tmp39_); #line 1339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + self->priv->n_used = _tmp38_ + ((gint) _tmp39_); +#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp40_ = self->priv->n_used; -#line 1339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp41_ = self->priv->parameters; -#line 1339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp42_ = _tmp41_.bytes_per_line; -#line 1339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp40_ >= _tmp42_) { -#line 11493 "scanner.c" +#line 11508 "scanner.c" ScanLine* line = NULL; ScanLine* _tmp43_ = NULL; SANE_Parameters _tmp44_ = {0}; @@ -11547,215 +11562,215 @@ static void scanner_do_read (Scanner* self) { ScanLine* _tmp155_ = NULL; NotifyGotLine* _tmp156_ = NULL; NotifyGotLine* _tmp157_ = NULL; -#line 1341 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1344 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp43_ = scan_line_new (); -#line 1341 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1344 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" line = _tmp43_; -#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1345 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp44_ = self->priv->parameters; -#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1345 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp45_ = _tmp44_.format; -#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1345 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" switch (_tmp45_) { -#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1345 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SANE_FRAME_GRAY: -#line 11554 "scanner.c" +#line 11569 "scanner.c" { ScanLine* _tmp46_ = NULL; -#line 1345 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp46_ = line; -#line 1345 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp46_->channel = 0; -#line 1346 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1349 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 11563 "scanner.c" +#line 11578 "scanner.c" } -#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1345 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SANE_FRAME_RGB: -#line 11567 "scanner.c" +#line 11582 "scanner.c" { ScanLine* _tmp47_ = NULL; -#line 1348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1351 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp47_ = line; -#line 1348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1351 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp47_->channel = -1; -#line 1349 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1352 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 11576 "scanner.c" +#line 11591 "scanner.c" } -#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1345 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SANE_FRAME_RED: -#line 11580 "scanner.c" +#line 11595 "scanner.c" { ScanLine* _tmp48_ = NULL; -#line 1351 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp48_ = line; -#line 1351 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp48_->channel = 0; -#line 1352 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1355 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 11589 "scanner.c" +#line 11604 "scanner.c" } -#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1345 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SANE_FRAME_GREEN: -#line 11593 "scanner.c" +#line 11608 "scanner.c" { ScanLine* _tmp49_ = NULL; -#line 1354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp49_ = line; -#line 1354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp49_->channel = 1; -#line 1355 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1358 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 11602 "scanner.c" +#line 11617 "scanner.c" } -#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1345 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SANE_FRAME_BLUE: -#line 11606 "scanner.c" +#line 11621 "scanner.c" { ScanLine* _tmp50_ = NULL; -#line 1357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1360 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp50_ = line; -#line 1357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1360 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp50_->channel = 2; -#line 1358 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 11615 "scanner.c" +#line 11630 "scanner.c" } default: -#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1345 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 11620 "scanner.c" +#line 11635 "scanner.c" } -#line 1360 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp51_ = line; -#line 1360 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp52_ = self->priv->parameters; -#line 1360 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp53_ = _tmp52_.pixels_per_line; -#line 1360 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp51_->width = _tmp53_; -#line 1361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1364 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp54_ = line; -#line 1361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1364 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp55_ = self->priv->parameters; -#line 1361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1364 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp56_ = _tmp55_.depth; -#line 1361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1364 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp54_->depth = _tmp56_; -#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp57_ = line; -#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp58_ = self->priv->buffer; -#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp58__length1 = self->priv->buffer_length1; -#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->buffer = NULL; -#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->buffer_length1 = 0; -#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp57_->data = (g_free (_tmp57_->data), NULL); -#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp57_->data = _tmp58_; -#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp57_->data_length1 = _tmp58__length1; -#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1366 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp59_ = line; -#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1366 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp60_ = self->priv->parameters; -#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1366 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp61_ = _tmp60_.bytes_per_line; -#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1366 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp59_->data_length = _tmp61_; -#line 1364 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp62_ = line; -#line 1364 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp63_ = self->priv->line_count; -#line 1364 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp62_->number = _tmp63_; -#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1368 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp64_ = line; -#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1368 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp65_ = self->priv->n_used; -#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1368 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp66_ = line; -#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1368 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp67_ = _tmp66_->data_length; -#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1368 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp64_->n_lines = _tmp65_ / _tmp67_; -#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1370 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp68_ = self->priv->line_count; -#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1370 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp69_ = line; -#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1370 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp70_ = _tmp69_->n_lines; -#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - self->priv->line_count = _tmp68_ + _tmp70_; #line 1370 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + self->priv->line_count = _tmp68_ + _tmp70_; +#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp71_ = line; -#line 1370 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp72_ = _tmp71_->data; -#line 1370 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp72__length1 = _tmp71_->data_length1; -#line 1370 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1373 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" buffer_size = _tmp72__length1; -#line 1371 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp73_ = full_read; -#line 1371 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp73_) { -#line 11698 "scanner.c" +#line 11713 "scanner.c" gint _tmp74_ = 0; SANE_Parameters _tmp75_ = {0}; gint _tmp76_ = 0; -#line 1372 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1375 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp74_ = buffer_size; -#line 1372 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1375 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp75_ = self->priv->parameters; -#line 1372 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1375 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp76_ = _tmp75_.bytes_per_line; -#line 1372 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1375 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" buffer_size = _tmp74_ + _tmp76_; -#line 11710 "scanner.c" +#line 11725 "scanner.c" } -#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp77_ = buffer_size; -#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp78_ = g_new0 (guchar, _tmp77_); -#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->buffer = (g_free (self->priv->buffer), NULL); -#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->buffer = _tmp78_; -#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->buffer_length1 = _tmp77_; -#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->_buffer_size_ = self->priv->buffer_length1; -#line 1375 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1378 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp79_ = self->priv->n_used; -#line 1375 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1378 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp80_ = line; -#line 1375 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1378 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp81_ = _tmp80_->n_lines; -#line 1375 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1378 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp82_ = line; -#line 1375 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1378 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp83_ = _tmp82_->data_length; -#line 1375 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1378 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" n_remaining = _tmp79_ - (_tmp81_ * _tmp83_); -#line 1376 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->n_used = 0; -#line 11738 "scanner.c" +#line 11753 "scanner.c" { gint i = 0; -#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" i = 0; -#line 11743 "scanner.c" +#line 11758 "scanner.c" { gboolean _tmp84_ = FALSE; -#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp84_ = TRUE; -#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" while (TRUE) { -#line 11750 "scanner.c" +#line 11765 "scanner.c" gint _tmp86_ = 0; gint _tmp87_ = 0; guchar* _tmp88_ = NULL; @@ -11772,147 +11787,147 @@ static void scanner_do_read (Scanner* self) { guchar _tmp97_ = '\0'; guchar _tmp98_ = '\0'; gint _tmp99_ = 0; -#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (!_tmp84_) { -#line 11769 "scanner.c" +#line 11784 "scanner.c" gint _tmp85_ = 0; -#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp85_ = i; -#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" i = _tmp85_ + 1; -#line 11775 "scanner.c" +#line 11790 "scanner.c" } -#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp84_ = FALSE; -#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp86_ = i; -#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp87_ = n_remaining; -#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (!(_tmp86_ < _tmp87_)) { -#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 11787 "scanner.c" +#line 11802 "scanner.c" } -#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp88_ = self->priv->buffer; -#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp88__length1 = self->priv->buffer_length1; -#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp89_ = i; -#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp90_ = line; -#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp91_ = _tmp90_->data; -#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp91__length1 = _tmp90_->data_length1; -#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp92_ = i; -#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp93_ = line; -#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp94_ = _tmp93_->n_lines; -#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp95_ = line; -#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp96_ = _tmp95_->data_length; -#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp97_ = _tmp91_[_tmp92_ + (_tmp94_ * _tmp96_)]; -#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp88_[_tmp89_] = _tmp97_; -#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp98_ = _tmp88_[_tmp89_]; -#line 1380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1383 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp99_ = self->priv->n_used; -#line 1380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1383 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->n_used = _tmp99_ + 1; -#line 11821 "scanner.c" +#line 11836 "scanner.c" } } } -#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1388 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp103_ = self->priv->parameters; -#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1388 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp104_ = _tmp103_.depth; -#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1388 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp104_ == 8) { -#line 11831 "scanner.c" +#line 11846 "scanner.c" SANE_Parameters _tmp105_ = {0}; SANE_Frame _tmp106_ = 0; -#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1388 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp105_ = self->priv->parameters; -#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1388 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp106_ = _tmp105_.format; -#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1388 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp102_ = _tmp106_ == SANE_FRAME_GRAY; -#line 11840 "scanner.c" +#line 11855 "scanner.c" } else { -#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1388 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp102_ = FALSE; -#line 11844 "scanner.c" +#line 11859 "scanner.c" } -#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1388 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp102_) { -#line 11848 "scanner.c" +#line 11863 "scanner.c" ScanJob* _tmp107_ = NULL; gint _tmp108_ = 0; -#line 1386 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1389 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp107_ = job; -#line 1386 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1389 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp108_ = _tmp107_->depth; -#line 1386 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1389 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp101_ = _tmp108_ == 2; -#line 11857 "scanner.c" +#line 11872 "scanner.c" } else { -#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1388 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp101_ = FALSE; -#line 11861 "scanner.c" +#line 11876 "scanner.c" } -#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1388 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp101_) { -#line 11865 "scanner.c" +#line 11880 "scanner.c" ScanJob* _tmp109_ = NULL; ScanMode _tmp110_ = 0; -#line 1386 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1389 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp109_ = job; -#line 1386 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1389 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp110_ = _tmp109_->scan_mode; -#line 1386 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1389 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp100_ = _tmp110_ == SCAN_MODE_GRAY; -#line 11874 "scanner.c" +#line 11889 "scanner.c" } else { -#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1388 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp100_ = FALSE; -#line 11878 "scanner.c" +#line 11893 "scanner.c" } -#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1388 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp100_) { -#line 11882 "scanner.c" +#line 11897 "scanner.c" guchar block = '\0'; gint write_offset = 0; gint block_shift = 0; ScanLine* _tmp150_ = NULL; ScanLine* _tmp151_ = NULL; gint _tmp152_ = 0; -#line 1388 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" block = (guchar) 0; -#line 1389 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1392 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" write_offset = 0; -#line 1390 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1393 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" block_shift = 6; -#line 11895 "scanner.c" +#line 11910 "scanner.c" { gint i = 0; -#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" i = 0; -#line 11900 "scanner.c" +#line 11915 "scanner.c" { gboolean _tmp111_ = FALSE; -#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp111_ = TRUE; -#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" while (TRUE) { -#line 11907 "scanner.c" +#line 11922 "scanner.c" gint _tmp113_ = 0; ScanLine* _tmp114_ = NULL; gint _tmp115_ = 0; @@ -11921,51 +11936,51 @@ static void scanner_do_read (Scanner* self) { ScanLine* _tmp117_ = NULL; gint _tmp118_ = 0; gint _tmp143_ = 0; -#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (!_tmp111_) { -#line 11918 "scanner.c" +#line 11933 "scanner.c" gint _tmp112_ = 0; -#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp112_ = i; -#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" i = _tmp112_ + 1; -#line 11924 "scanner.c" +#line 11939 "scanner.c" } -#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp111_ = FALSE; -#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp113_ = i; -#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp114_ = line; -#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp115_ = _tmp114_->n_lines; -#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (!(_tmp113_ < _tmp115_)) { -#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 11938 "scanner.c" +#line 11953 "scanner.c" } -#line 1393 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp116_ = i; -#line 1393 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp117_ = line; -#line 1393 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp118_ = _tmp117_->data_length; -#line 1393 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" offset = _tmp116_ * _tmp118_; -#line 11948 "scanner.c" +#line 11963 "scanner.c" { gint x = 0; -#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" x = 0; -#line 11953 "scanner.c" +#line 11968 "scanner.c" { gboolean _tmp119_ = FALSE; -#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp119_ = TRUE; -#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" while (TRUE) { -#line 11960 "scanner.c" +#line 11975 "scanner.c" gint _tmp121_ = 0; ScanLine* _tmp122_ = NULL; gint _tmp123_ = 0; @@ -11982,89 +11997,89 @@ static void scanner_do_read (Scanner* self) { guchar _tmp133_ = '\0'; gint _tmp134_ = 0; gint _tmp135_ = 0; -#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (!_tmp119_) { -#line 11979 "scanner.c" +#line 11994 "scanner.c" gint _tmp120_ = 0; -#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp120_ = x; -#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" x = _tmp120_ + 1; -#line 11985 "scanner.c" +#line 12000 "scanner.c" } -#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp119_ = FALSE; -#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp121_ = x; -#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp122_ = line; -#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp123_ = _tmp122_->width; -#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (!(_tmp121_ < _tmp123_)) { -#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 11999 "scanner.c" +#line 12014 "scanner.c" } -#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp124_ = line; -#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp125_ = _tmp124_->data; -#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp125__length1 = _tmp124_->data_length1; -#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp126_ = offset; -#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp127_ = x; -#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp128_ = _tmp125_[_tmp126_ + _tmp127_]; -#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - p = _tmp128_; #line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + p = _tmp128_; +#line 1402 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp129_ = p; -#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1402 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (((gint) _tmp129_) >= 192) { -#line 1400 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1403 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" sample = (guchar) 3; -#line 12021 "scanner.c" +#line 12036 "scanner.c" } else { guchar _tmp130_ = '\0'; -#line 1401 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1404 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp130_ = p; -#line 1401 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1404 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (((gint) _tmp130_) >= 128) { -#line 1402 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1405 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" sample = (guchar) 2; -#line 12030 "scanner.c" +#line 12045 "scanner.c" } else { guchar _tmp131_ = '\0'; -#line 1403 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1406 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp131_ = p; -#line 1403 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1406 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (((gint) _tmp131_) >= 64) { -#line 1404 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1407 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" sample = (guchar) 1; -#line 12039 "scanner.c" +#line 12054 "scanner.c" } else { -#line 1406 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1409 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" sample = (guchar) 0; -#line 12043 "scanner.c" +#line 12058 "scanner.c" } } } -#line 1408 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp132_ = block; -#line 1408 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp133_ = sample; -#line 1408 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp134_ = block_shift; -#line 1408 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" block = _tmp132_ | (_tmp133_ << _tmp134_); -#line 1409 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1412 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp135_ = block_shift; -#line 1409 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1412 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp135_ == 0) { -#line 12059 "scanner.c" +#line 12074 "scanner.c" ScanLine* _tmp136_ = NULL; guchar* _tmp137_ = NULL; gint _tmp137__length1 = 0; @@ -12072,45 +12087,45 @@ static void scanner_do_read (Scanner* self) { guchar _tmp139_ = '\0'; guchar _tmp140_ = '\0'; gint _tmp141_ = 0; -#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1414 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp136_ = line; -#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1414 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp137_ = _tmp136_->data; -#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1414 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp137__length1 = _tmp136_->data_length1; -#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1414 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp138_ = write_offset; -#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1414 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp139_ = block; -#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1414 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp137_[_tmp138_] = _tmp139_; -#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1414 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp140_ = _tmp137_[_tmp138_]; -#line 1412 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1415 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp141_ = write_offset; -#line 1412 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1415 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" write_offset = _tmp141_ + 1; -#line 1413 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1416 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" block = (guchar) 0; -#line 1414 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1417 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" block_shift = 6; -#line 12089 "scanner.c" +#line 12104 "scanner.c" } else { gint _tmp142_ = 0; -#line 1417 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1420 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp142_ = block_shift; -#line 1417 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1420 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" block_shift = _tmp142_ - 2; -#line 12096 "scanner.c" +#line 12111 "scanner.c" } } } } -#line 1421 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1424 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp143_ = block_shift; -#line 1421 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1424 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp143_ != 6) { -#line 12105 "scanner.c" +#line 12120 "scanner.c" ScanLine* _tmp144_ = NULL; guchar* _tmp145_ = NULL; gint _tmp145__length1 = 0; @@ -12118,71 +12133,71 @@ static void scanner_do_read (Scanner* self) { guchar _tmp147_ = '\0'; guchar _tmp148_ = '\0'; gint _tmp149_ = 0; -#line 1423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1426 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp144_ = line; -#line 1423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1426 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp145_ = _tmp144_->data; -#line 1423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1426 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp145__length1 = _tmp144_->data_length1; -#line 1423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1426 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp146_ = write_offset; -#line 1423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1426 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp147_ = block; -#line 1423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1426 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp145_[_tmp146_] = _tmp147_; -#line 1423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1426 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp148_ = _tmp145_[_tmp146_]; -#line 1424 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1427 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp149_ = write_offset; -#line 1424 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1427 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" write_offset = _tmp149_ + 1; -#line 1425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1428 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" block = (guchar) 0; -#line 1426 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1429 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" block_shift = 6; -#line 12135 "scanner.c" +#line 12150 "scanner.c" } } } } -#line 1430 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp150_ = line; -#line 1430 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp151_ = line; -#line 1430 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp152_ = _tmp151_->width; -#line 1430 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp150_->data_length = ((_tmp152_ * 2) + 7) / 8; -#line 12148 "scanner.c" +#line 12163 "scanner.c" } -#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1436 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp153_ = job; -#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1436 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp154_ = _tmp153_->id; -#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1436 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp155_ = line; -#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1436 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp156_ = notify_got_line_new (_tmp154_, _tmp155_); -#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1436 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp157_ = _tmp156_; -#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1436 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_notify (self, (Notify*) _tmp157_); -#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1436 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _notify_unref0 (_tmp157_); -#line 1339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _scan_line_unref0 (line); -#line 12166 "scanner.c" +#line 12181 "scanner.c" } -#line 1300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _scan_job_unref0 (job); -#line 12170 "scanner.c" +#line 12185 "scanner.c" } static void _scanner_authorization_cb_sane_authcallback (const gchar* resource, gchar* username, gchar* password) { -#line 1442 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1445 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_authorization_cb (resource, username, -1, password, -1); -#line 12177 "scanner.c" +#line 12192 "scanner.c" } @@ -12202,211 +12217,211 @@ static void* scanner_scan_thread (Scanner* self) { gint _tmp11_ = 0; SANE_Int _tmp12_ = {0}; gint _tmp13_ = 0; -#line 1437 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1440 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_val_if_fail (self != NULL, NULL); -#line 1439 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - self->priv->state = SCAN_STATE_IDLE; #line 1442 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + self->priv->state = SCAN_STATE_IDLE; +#line 1445 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp1_ = sane_init (&_tmp0_, _scanner_authorization_cb_sane_authcallback); -#line 1442 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1445 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" version_code = _tmp0_; -#line 1442 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1445 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" status = _tmp1_; -#line 1443 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1446 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp2_ = status; -#line 1443 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1446 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp3_ = sane_status_to_string (_tmp2_); -#line 1443 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1446 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp4_ = _tmp3_; -#line 1443 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_debug ("scanner.vala:1443: sane_init () -> %s", _tmp4_); -#line 1443 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1446 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_debug ("scanner.vala:1446: sane_init () -> %s", _tmp4_); +#line 1446 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _g_free0 (_tmp4_); -#line 1444 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp5_ = status; -#line 1444 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp5_ != SANE_STATUS_GOOD) { -#line 12221 "scanner.c" +#line 12236 "scanner.c" SANE_Status _tmp6_ = 0; const gchar* _tmp7_ = NULL; -#line 1446 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp6_ = status; -#line 1446 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp7_ = sane_strstatus (_tmp6_); -#line 1446 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_warning ("scanner.vala:1446: Unable to initialize SANE backend: %s", _tmp7_); -#line 1447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_warning ("scanner.vala:1449: Unable to initialize SANE backend: %s", _tmp7_); +#line 1450 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = NULL; -#line 1447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1450 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 12234 "scanner.c" +#line 12249 "scanner.c" } -#line 1449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1452 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp8_ = version_code; -#line 1449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1452 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp9_ = SANE_VERSION_MAJOR (_tmp8_); -#line 1449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1452 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp10_ = version_code; -#line 1449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1452 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp11_ = SANE_VERSION_MINOR (_tmp10_); -#line 1449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1452 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp12_ = version_code; -#line 1449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1452 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp13_ = SANE_VERSION_BUILD (_tmp12_); -#line 1449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_debug ("scanner.vala:1449: SANE version %d.%d.%d", _tmp9_, _tmp11_, _tmp13_); -#line 1455 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1452 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_debug ("scanner.vala:1452: SANE version %d.%d.%d", _tmp9_, _tmp11_, _tmp13_); +#line 1458 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_redetect (self); -#line 1457 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1460 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" while (TRUE) { -#line 12254 "scanner.c" +#line 12269 "scanner.c" gboolean _tmp14_ = FALSE; ScanState _tmp15_ = 0; -#line 1457 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1460 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp14_ = scanner_handle_requests (self); -#line 1457 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1460 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (!_tmp14_) { -#line 1457 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1460 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 12263 "scanner.c" +#line 12278 "scanner.c" } -#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp15_ = self->priv->state; -#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" switch (_tmp15_) { -#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_STATE_IDLE: -#line 12271 "scanner.c" +#line 12286 "scanner.c" { GList* _tmp16_ = NULL; -#line 1462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1465 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp16_ = self->priv->job_queue; -#line 1462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1465 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp16_ != NULL) { -#line 1464 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1467 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_set_scanning (self, TRUE); -#line 1465 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1468 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->state = SCAN_STATE_OPEN; -#line 12282 "scanner.c" +#line 12297 "scanner.c" } -#line 1467 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1470 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 12286 "scanner.c" +#line 12301 "scanner.c" } -#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_STATE_REDETECT: -#line 12290 "scanner.c" +#line 12305 "scanner.c" { -#line 1469 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1472 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_do_redetect (self); -#line 1470 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1473 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 12296 "scanner.c" +#line 12311 "scanner.c" } -#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_STATE_OPEN: -#line 12300 "scanner.c" +#line 12315 "scanner.c" { -#line 1472 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1475 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_do_open (self); -#line 1473 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1476 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 12306 "scanner.c" +#line 12321 "scanner.c" } -#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_STATE_GET_OPTION: -#line 12310 "scanner.c" +#line 12325 "scanner.c" { -#line 1475 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1478 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_do_get_option (self); -#line 1476 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1479 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 12316 "scanner.c" +#line 12331 "scanner.c" } -#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_STATE_START: -#line 12320 "scanner.c" +#line 12335 "scanner.c" { -#line 1478 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1481 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_do_start (self); -#line 1479 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1482 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 12326 "scanner.c" +#line 12341 "scanner.c" } -#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_STATE_GET_PARAMETERS: -#line 12330 "scanner.c" +#line 12345 "scanner.c" { -#line 1481 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1484 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_do_get_parameters (self); -#line 1482 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1485 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 12336 "scanner.c" +#line 12351 "scanner.c" } -#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_STATE_READ: -#line 12340 "scanner.c" +#line 12355 "scanner.c" { -#line 1484 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1487 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_do_read (self); -#line 1485 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 12346 "scanner.c" +#line 12361 "scanner.c" } default: -#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" break; -#line 12351 "scanner.c" +#line 12366 "scanner.c" } } -#line 1489 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1492 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = NULL; -#line 1489 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1492 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 12358 "scanner.c" +#line 12373 "scanner.c" } static gpointer _scanner_scan_thread_gthread_func (gpointer self) { gpointer result; result = scanner_scan_thread ((Scanner*) self); -#line 1496 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1499 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_unref (self); -#line 1496 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1499 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 12369 "scanner.c" +#line 12384 "scanner.c" } void scanner_start (Scanner* self) { GError * _inner_error_ = NULL; -#line 1492 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1495 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_if_fail (self != NULL); -#line 12377 "scanner.c" +#line 12392 "scanner.c" { GThread* _tmp0_ = NULL; GThread* _tmp1_ = NULL; GThread* _tmp2_ = NULL; -#line 1496 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1499 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp1_ = g_thread_try_new ("scan-thread", _scanner_scan_thread_gthread_func, scanner_ref (self), &_inner_error_); -#line 1496 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1499 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = _tmp1_; -#line 1496 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1499 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_inner_error_ != NULL) { -#line 12388 "scanner.c" +#line 12403 "scanner.c" goto __catch15_g_error; } -#line 1496 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1499 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp2_ = _tmp0_; -#line 1496 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1499 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = NULL; -#line 1496 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1499 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _g_thread_unref0 (self->priv->thread); -#line 1496 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1499 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->thread = _tmp2_; -#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1497 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _g_thread_unref0 (_tmp0_); -#line 12401 "scanner.c" +#line 12416 "scanner.c" } goto __finally15; __catch15_g_error: @@ -12414,30 +12429,30 @@ void scanner_start (Scanner* self) { GError* e = NULL; GError* _tmp3_ = NULL; const gchar* _tmp4_ = NULL; -#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1497 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" e = _inner_error_; -#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1497 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _inner_error_ = NULL; -#line 1500 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1503 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp3_ = e; -#line 1500 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1503 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp4_ = _tmp3_->message; -#line 1500 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_critical ("scanner.vala:1500: Unable to create thread: %s", _tmp4_); -#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1503 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_critical ("scanner.vala:1503: Unable to create thread: %s", _tmp4_); +#line 1497 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _g_error_free0 (e); -#line 12421 "scanner.c" +#line 12436 "scanner.c" } __finally15: -#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1497 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_inner_error_ != NULL) { -#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1497 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code); -#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1497 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_clear_error (&_inner_error_); -#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1497 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return; -#line 12432 "scanner.c" +#line 12447 "scanner.c" } } @@ -12446,119 +12461,119 @@ void scanner_redetect (Scanner* self) { gboolean _tmp0_ = FALSE; GAsyncQueue* _tmp1_ = NULL; RequestRedetect* _tmp2_ = NULL; -#line 1504 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1507 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_if_fail (self != NULL); -#line 1506 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1509 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = self->priv->need_redetect; -#line 1506 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1509 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp0_) { -#line 1507 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1510 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return; -#line 12449 "scanner.c" +#line 12464 "scanner.c" } -#line 1508 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1511 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->need_redetect = TRUE; -#line 1510 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_debug ("scanner.vala:1510: Requesting redetection of scan devices"); -#line 1512 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1513 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_debug ("scanner.vala:1513: Requesting redetection of scan devices"); +#line 1515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp1_ = self->priv->request_queue; -#line 1512 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp2_ = request_redetect_new (); -#line 1512 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_async_queue_push (_tmp1_, (Request*) _tmp2_); -#line 12461 "scanner.c" +#line 12476 "scanner.c" } gboolean scanner_is_scanning (Scanner* self) { gboolean result = FALSE; gboolean _tmp0_ = FALSE; -#line 1515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1518 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_val_if_fail (self != NULL, FALSE); -#line 1517 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1520 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = self->priv->scanning; -#line 1517 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1520 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = _tmp0_; -#line 1517 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1520 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 12476 "scanner.c" +#line 12491 "scanner.c" } static gchar* scanner_get_scan_mode_string (Scanner* self, ScanMode mode) { gchar* result = NULL; ScanMode _tmp0_ = 0; -#line 1520 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1523 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_val_if_fail (self != NULL, NULL); -#line 1522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1525 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = mode; -#line 1522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1525 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" switch (_tmp0_) { -#line 1522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1525 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_MODE_DEFAULT: -#line 12491 "scanner.c" +#line 12506 "scanner.c" { gchar* _tmp1_ = NULL; -#line 1525 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1528 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp1_ = g_strdup ("ScanMode.DEFAULT"); -#line 1525 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1528 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = _tmp1_; -#line 1525 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1528 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 12500 "scanner.c" +#line 12515 "scanner.c" } -#line 1522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1525 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_MODE_COLOR: -#line 12504 "scanner.c" +#line 12519 "scanner.c" { gchar* _tmp2_ = NULL; -#line 1527 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp2_ = g_strdup ("ScanMode.COLOR"); -#line 1527 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = _tmp2_; -#line 1527 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 12513 "scanner.c" +#line 12528 "scanner.c" } -#line 1522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1525 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_MODE_GRAY: -#line 12517 "scanner.c" +#line 12532 "scanner.c" { gchar* _tmp3_ = NULL; -#line 1529 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1532 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp3_ = g_strdup ("ScanMode.GRAY"); -#line 1529 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1532 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = _tmp3_; -#line 1529 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1532 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 12526 "scanner.c" +#line 12541 "scanner.c" } -#line 1522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1525 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_MODE_LINEART: -#line 12530 "scanner.c" +#line 12545 "scanner.c" { gchar* _tmp4_ = NULL; -#line 1531 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1534 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp4_ = g_strdup ("ScanMode.LINEART"); -#line 1531 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1534 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = _tmp4_; -#line 1531 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1534 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 12539 "scanner.c" +#line 12554 "scanner.c" } default: { ScanMode _tmp5_ = 0; gchar* _tmp6_ = NULL; -#line 1533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1536 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp5_ = mode; -#line 1533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1536 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp6_ = g_strdup_printf ("%d", (gint) _tmp5_); -#line 1533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1536 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = _tmp6_; -#line 1533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1536 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 12553 "scanner.c" +#line 12568 "scanner.c" } } } @@ -12567,77 +12582,77 @@ static gchar* scanner_get_scan_mode_string (Scanner* self, ScanMode mode) { static gchar* scanner_get_scan_type_string (Scanner* self, ScanType type) { gchar* result = NULL; ScanType _tmp0_ = 0; -#line 1537 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_val_if_fail (self != NULL, NULL); -#line 1539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = type; -#line 1539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" switch (_tmp0_) { -#line 1539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_TYPE_SINGLE: -#line 12570 "scanner.c" +#line 12585 "scanner.c" { gchar* _tmp1_ = NULL; -#line 1542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1545 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp1_ = g_strdup ("ScanType.SINGLE"); -#line 1542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1545 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = _tmp1_; -#line 1542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1545 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 12579 "scanner.c" +#line 12594 "scanner.c" } -#line 1539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_TYPE_ADF_FRONT: -#line 12583 "scanner.c" +#line 12598 "scanner.c" { gchar* _tmp2_ = NULL; -#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1547 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp2_ = g_strdup ("ScanType.ADF_FRONT"); -#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1547 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = _tmp2_; -#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1547 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 12592 "scanner.c" +#line 12607 "scanner.c" } -#line 1539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_TYPE_ADF_BACK: -#line 12596 "scanner.c" +#line 12611 "scanner.c" { gchar* _tmp3_ = NULL; -#line 1546 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1549 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp3_ = g_strdup ("ScanType.ADF_BACK"); -#line 1546 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1549 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = _tmp3_; -#line 1546 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1549 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 12605 "scanner.c" +#line 12620 "scanner.c" } -#line 1539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" case SCAN_TYPE_ADF_BOTH: -#line 12609 "scanner.c" +#line 12624 "scanner.c" { gchar* _tmp4_ = NULL; -#line 1548 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1551 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp4_ = g_strdup ("ScanType.ADF_BOTH"); -#line 1548 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1551 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = _tmp4_; -#line 1548 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1551 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 12618 "scanner.c" +#line 12633 "scanner.c" } default: { ScanType _tmp5_ = 0; gchar* _tmp6_ = NULL; -#line 1550 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1553 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp5_ = type; -#line 1550 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1553 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp6_ = g_strdup_printf ("%d", (gint) _tmp5_); -#line 1550 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1553 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" result = _tmp6_; -#line 1550 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1553 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return result; -#line 12632 "scanner.c" +#line 12647 "scanner.c" } } } @@ -12700,175 +12715,175 @@ void scanner_scan (Scanner* self, const gchar* device, ScanOptions* options) { gint _tmp53_ = 0; GAsyncQueue* _tmp54_ = NULL; Request* _tmp55_ = NULL; -#line 1554 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_if_fail (self != NULL); -#line 1554 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_return_if_fail (options != NULL); #line 1557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_return_if_fail (options != NULL); +#line 1560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp1_ = device; -#line 1557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp1_ != NULL) { -#line 12703 "scanner.c" +#line 12718 "scanner.c" const gchar* _tmp2_ = NULL; -#line 1557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp2_ = device; -#line 1557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = _tmp2_; -#line 12709 "scanner.c" +#line 12724 "scanner.c" } else { -#line 1557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = "(null)"; -#line 12713 "scanner.c" +#line 12728 "scanner.c" } -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp3_ = options; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp4_ = _tmp3_->dpi; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp5_ = options; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp6_ = _tmp5_->scan_mode; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp7_ = scanner_get_scan_mode_string (self, _tmp6_); -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp8_ = _tmp7_; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp9_ = options; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp10_ = _tmp9_->depth; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp11_ = options; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp12_ = _tmp11_->type; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp13_ = scanner_get_scan_type_string (self, _tmp12_); -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp14_ = _tmp13_; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp15_ = options; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp16_ = _tmp15_->paper_width; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp17_ = options; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp18_ = _tmp17_->paper_height; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp19_ = options; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp20_ = _tmp19_->brightness; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp21_ = options; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp22_ = _tmp21_->contrast; -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_debug ("scanner.vala:1556: Scanner.scan (\"%s\", dpi=%d, scan_mode=%s, depth=%" \ +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_debug ("scanner.vala:1559: Scanner.scan (\"%s\", dpi=%d, scan_mode=%s, depth=%" \ "d, type=%s, paper_width=%d, paper_height=%d, brightness=%d, contrast=%" \ "d)", _tmp0_, _tmp4_, _tmp8_, _tmp10_, _tmp14_, _tmp16_, _tmp18_, _tmp20_, _tmp22_); -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _g_free0 (_tmp14_); -#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _g_free0 (_tmp8_); -#line 1560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp23_ = request_start_scan_new (); -#line 1560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" request = _tmp23_; -#line 1561 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1564 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp24_ = scan_job_new (); -#line 1561 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1564 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _scan_job_unref0 (request->job); -#line 1561 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1564 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" request->job = _tmp24_; -#line 1562 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp25_ = request->job; -#line 1562 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp26_ = self->job_id; -#line 1562 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->job_id = _tmp26_ + 1; -#line 1562 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp25_->id = _tmp26_; -#line 1563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp27_ = request->job; -#line 1563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp28_ = device; -#line 1563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp29_ = g_strdup (_tmp28_); -#line 1563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _g_free0 (_tmp27_->device); -#line 1563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp27_->device = _tmp29_; -#line 1564 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1567 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp30_ = request->job; -#line 1564 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1567 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp31_ = options; -#line 1564 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1567 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp32_ = _tmp31_->dpi; -#line 1564 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1567 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp30_->dpi = (gdouble) _tmp32_; -#line 1565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1568 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp33_ = request->job; -#line 1565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1568 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp34_ = options; -#line 1565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1568 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp35_ = _tmp34_->scan_mode; -#line 1565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1568 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp33_->scan_mode = _tmp35_; -#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp36_ = request->job; -#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp37_ = options; -#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp38_ = _tmp37_->depth; -#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp36_->depth = _tmp38_; -#line 1567 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp39_ = request->job; -#line 1567 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp40_ = options; -#line 1567 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp41_ = _tmp40_->type; -#line 1567 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp39_->type = _tmp41_; -#line 1568 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1571 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp42_ = request->job; -#line 1568 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1571 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp43_ = options; -#line 1568 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1571 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp44_ = _tmp43_->paper_width; -#line 1568 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1571 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp42_->page_width = _tmp44_; -#line 1569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1572 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp45_ = request->job; -#line 1569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1572 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp46_ = options; -#line 1569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1572 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp47_ = _tmp46_->paper_height; -#line 1569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1572 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp45_->page_height = _tmp47_; -#line 1570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1573 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp48_ = request->job; -#line 1570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1573 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp49_ = options; -#line 1570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1573 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp50_ = _tmp49_->brightness; -#line 1570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1573 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp48_->brightness = _tmp50_; -#line 1571 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1574 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp51_ = request->job; -#line 1571 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1574 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp52_ = options; -#line 1571 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1574 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp53_ = _tmp52_->contrast; -#line 1571 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1574 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp51_->contrast = _tmp53_; -#line 1572 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1575 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp54_ = self->priv->request_queue; -#line 1572 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1575 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp55_ = _request_ref0 ((Request*) request); -#line 1572 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1575 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_async_queue_push (_tmp54_, _tmp55_); -#line 1554 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _request_unref0 (request); -#line 12861 "scanner.c" +#line 12876 "scanner.c" } @@ -12876,26 +12891,26 @@ void scanner_cancel (Scanner* self) { gint _tmp0_ = 0; GAsyncQueue* _tmp1_ = NULL; RequestCancel* _tmp2_ = NULL; -#line 1575 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_if_fail (self != NULL); -#line 1577 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1580 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = self->job_id; -#line 1577 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1580 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->first_job_id = _tmp0_; -#line 1578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1581 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp1_ = self->priv->request_queue; -#line 1578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1581 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp2_ = request_cancel_new (); -#line 1578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1581 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_async_queue_push (_tmp1_, (Request*) _tmp2_); -#line 12881 "scanner.c" +#line 12896 "scanner.c" } static gpointer _g_thread_ref0 (gpointer self) { -#line 1589 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1592 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return self ? g_thread_ref (self) : NULL; -#line 12888 "scanner.c" +#line 12903 "scanner.c" } @@ -12903,40 +12918,40 @@ void scanner_free (Scanner* self) { GAsyncQueue* _tmp0_ = NULL; RequestQuit* _tmp1_ = NULL; GThread* _tmp2_ = NULL; -#line 1581 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1584 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_return_if_fail (self != NULL); -#line 1583 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_debug ("scanner.vala:1583: Stopping scan thread"); -#line 1585 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1586 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_debug ("scanner.vala:1586: Stopping scan thread"); +#line 1588 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp0_ = self->priv->request_queue; -#line 1585 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1588 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp1_ = request_quit_new (); -#line 1585 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1588 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_async_queue_push (_tmp0_, (Request*) _tmp1_); -#line 1587 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1590 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp2_ = self->priv->thread; -#line 1587 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1590 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (_tmp2_ != NULL) { -#line 12910 "scanner.c" +#line 12925 "scanner.c" GThread* _tmp3_ = NULL; GThread* _tmp4_ = NULL; -#line 1589 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1592 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp3_ = self->priv->thread; -#line 1589 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1592 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _tmp4_ = _g_thread_ref0 (_tmp3_); -#line 1589 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1592 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_thread_join (_tmp4_); -#line 1590 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1593 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" _g_thread_unref0 (self->priv->thread); -#line 1590 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1593 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->thread = NULL; -#line 12923 "scanner.c" +#line 12938 "scanner.c" } -#line 1593 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" +#line 1596 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" sane_exit (); -#line 1594 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" - g_debug ("scanner.vala:1594: sane_exit ()"); -#line 12929 "scanner.c" +#line 1597 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" + g_debug ("scanner.vala:1597: sane_exit ()"); +#line 12944 "scanner.c" } @@ -12955,19 +12970,19 @@ static void g_cclosure_user_marshal_VOID__SCAN_PAGE_INFO (GClosure * closure, GV data1 = closure->data; #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" data2 = param_values->data[0].v_pointer; -#line 12948 "scanner.c" +#line 12963 "scanner.c" } else { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" data1 = param_values->data[0].v_pointer; #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" data2 = closure->data; -#line 12954 "scanner.c" +#line 12969 "scanner.c" } #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" callback = (GMarshalFunc_VOID__SCAN_PAGE_INFO) (marshal_data ? marshal_data : cc->callback); #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" callback (data1, value_get_scan_page_info (param_values + 1), data2); -#line 12960 "scanner.c" +#line 12975 "scanner.c" } @@ -12986,19 +13001,19 @@ static void g_cclosure_user_marshal_VOID__SCAN_LINE (GClosure * closure, GValue data1 = closure->data; #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" data2 = param_values->data[0].v_pointer; -#line 12979 "scanner.c" +#line 12994 "scanner.c" } else { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" data1 = param_values->data[0].v_pointer; #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" data2 = closure->data; -#line 12985 "scanner.c" +#line 13000 "scanner.c" } #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" callback = (GMarshalFunc_VOID__SCAN_LINE) (marshal_data ? marshal_data : cc->callback); #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" callback (data1, value_get_scan_line (param_values + 1), data2); -#line 12991 "scanner.c" +#line 13006 "scanner.c" } @@ -13017,26 +13032,26 @@ static void g_cclosure_user_marshal_VOID__INT_STRING (GClosure * closure, GValue data1 = closure->data; #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" data2 = param_values->data[0].v_pointer; -#line 13010 "scanner.c" +#line 13025 "scanner.c" } else { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" data1 = param_values->data[0].v_pointer; #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" data2 = closure->data; -#line 13016 "scanner.c" +#line 13031 "scanner.c" } #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" callback = (GMarshalFunc_VOID__INT_STRING) (marshal_data ? marshal_data : cc->callback); #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" callback (data1, g_value_get_int (param_values + 1), g_value_get_string (param_values + 2), data2); -#line 13022 "scanner.c" +#line 13037 "scanner.c" } static void value_scanner_init (GValue* value) { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" value->data[0].v_pointer = NULL; -#line 13029 "scanner.c" +#line 13044 "scanner.c" } @@ -13045,7 +13060,7 @@ static void value_scanner_free_value (GValue* value) { if (value->data[0].v_pointer) { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_unref (value->data[0].v_pointer); -#line 13038 "scanner.c" +#line 13053 "scanner.c" } } @@ -13055,11 +13070,11 @@ static void value_scanner_copy_value (const GValue* src_value, GValue* dest_valu if (src_value->data[0].v_pointer) { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" dest_value->data[0].v_pointer = scanner_ref (src_value->data[0].v_pointer); -#line 13048 "scanner.c" +#line 13063 "scanner.c" } else { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" dest_value->data[0].v_pointer = NULL; -#line 13052 "scanner.c" +#line 13067 "scanner.c" } } @@ -13067,37 +13082,37 @@ static void value_scanner_copy_value (const GValue* src_value, GValue* dest_valu static gpointer value_scanner_peek_pointer (const GValue* value) { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return value->data[0].v_pointer; -#line 13060 "scanner.c" +#line 13075 "scanner.c" } static gchar* value_scanner_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (collect_values[0].v_pointer) { -#line 13067 "scanner.c" +#line 13082 "scanner.c" Scanner* object; object = collect_values[0].v_pointer; #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (object->parent_instance.g_class == NULL) { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 13074 "scanner.c" +#line 13089 "scanner.c" } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL); -#line 13078 "scanner.c" +#line 13093 "scanner.c" } #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" value->data[0].v_pointer = scanner_ref (object); -#line 13082 "scanner.c" +#line 13097 "scanner.c" } else { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" value->data[0].v_pointer = NULL; -#line 13086 "scanner.c" +#line 13101 "scanner.c" } #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return NULL; -#line 13090 "scanner.c" +#line 13105 "scanner.c" } @@ -13108,25 +13123,25 @@ static gchar* value_scanner_lcopy_value (const GValue* value, guint n_collect_va if (!object_p) { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value)); -#line 13101 "scanner.c" +#line 13116 "scanner.c" } #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (!value->data[0].v_pointer) { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" *object_p = NULL; -#line 13107 "scanner.c" +#line 13122 "scanner.c" } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" *object_p = value->data[0].v_pointer; -#line 13111 "scanner.c" +#line 13126 "scanner.c" } else { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" *object_p = scanner_ref (value->data[0].v_pointer); -#line 13115 "scanner.c" +#line 13130 "scanner.c" } #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return NULL; -#line 13119 "scanner.c" +#line 13134 "scanner.c" } @@ -13140,7 +13155,7 @@ GParamSpec* param_spec_scanner (const gchar* name, const gchar* nick, const gcha G_PARAM_SPEC (spec)->value_type = object_type; #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return G_PARAM_SPEC (spec); -#line 13133 "scanner.c" +#line 13148 "scanner.c" } @@ -13149,7 +13164,7 @@ gpointer value_get_scanner (const GValue* value) { g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_SCANNER), NULL); #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return value->data[0].v_pointer; -#line 13142 "scanner.c" +#line 13157 "scanner.c" } @@ -13169,17 +13184,17 @@ void value_set_scanner (GValue* value, gpointer v_object) { value->data[0].v_pointer = v_object; #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_ref (value->data[0].v_pointer); -#line 13162 "scanner.c" +#line 13177 "scanner.c" } else { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" value->data[0].v_pointer = NULL; -#line 13166 "scanner.c" +#line 13181 "scanner.c" } #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (old) { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_unref (old); -#line 13172 "scanner.c" +#line 13187 "scanner.c" } } @@ -13198,17 +13213,17 @@ void value_take_scanner (GValue* value, gpointer v_object) { g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value))); #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" value->data[0].v_pointer = v_object; -#line 13191 "scanner.c" +#line 13206 "scanner.c" } else { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" value->data[0].v_pointer = NULL; -#line 13195 "scanner.c" +#line 13210 "scanner.c" } #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" if (old) { #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" scanner_unref (old); -#line 13201 "scanner.c" +#line 13216 "scanner.c" } } @@ -13238,7 +13253,7 @@ static void scanner_class_init (ScannerClass * klass) { g_signal_new ("document_done", TYPE_SCANNER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_signal_new ("scanning_changed", TYPE_SCANNER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); -#line 13231 "scanner.c" +#line 13246 "scanner.c" } @@ -13247,7 +13262,7 @@ static void scanner_instance_init (Scanner * self) { self->priv = SCANNER_GET_PRIVATE (self); #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->ref_count = 1; -#line 13240 "scanner.c" +#line 13255 "scanner.c" } @@ -13273,7 +13288,7 @@ static void scanner_finalize (Scanner* obj) { _g_hash_table_unref0 (self->priv->options); #line 250 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" self->priv->buffer = (g_free (self->priv->buffer), NULL); -#line 13266 "scanner.c" +#line 13281 "scanner.c" } @@ -13298,7 +13313,7 @@ gpointer scanner_ref (gpointer instance) { g_atomic_int_inc (&self->ref_count); #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" return instance; -#line 13291 "scanner.c" +#line 13306 "scanner.c" } @@ -13311,7 +13326,7 @@ void scanner_unref (gpointer instance) { SCANNER_GET_CLASS (self)->finalize (self); #line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala" g_type_free_instance ((GTypeInstance *) self); -#line 13304 "scanner.c" +#line 13319 "scanner.c" } } diff --git a/src/scanner.vala b/src/scanner.vala index 2107a60..5fb7f00 100644 --- a/src/scanner.vala +++ b/src/scanner.vala @@ -935,7 +935,10 @@ public class Scanner "ADF Duplex", Sane.I18N ("ADF Duplex"), "ADF Duplex - Long-Edge Binding", /* Samsung unified driver. LP: # 892915 */ - "ADF Duplex - Short-Edge Binding" + "ADF Duplex - Short-Edge Binding", + "Duplex", /* HP duplex scan support. LP: #1353599 */ + "Automatic Document Feeder(centrally aligned,Duplex)", /* Brother duplex scan support. LP: #1343773 */ + "Automatic Document Feeder(left aligned,Duplex)" }; switch (job.type) -- cgit v1.2.3