summaryrefslogtreecommitdiff
path: root/src/scanner.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/scanner.c')
-rw-r--r--src/scanner.c5323
1 files changed, 2613 insertions, 2710 deletions
diff --git a/src/scanner.c b/src/scanner.c
index de389f6..a9fd325 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1,4 +1,4 @@
-/* scanner.c generated by valac 0.22.1, the Vala compiler
+/* scanner.c generated by valac 0.24.0, the Vala compiler
* generated from scanner.vala, do not modify */
/*
@@ -3811,7 +3811,6 @@ static void notify_got_page_info_real_run (Notify* base, Scanner* scanner) {
gint _tmp1_ = 0;
Scanner* _tmp2_ = NULL;
gint _tmp3_ = 0;
- gboolean _tmp7_ = FALSE;
#line 178 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyGotPageInfo*) base;
#line 178 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -3824,7 +3823,7 @@ static void notify_got_page_info_real_run (Notify* base, Scanner* scanner) {
_tmp3_ = _tmp2_->first_job_id;
#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp1_ >= _tmp3_) {
-#line 3828 "scanner.c"
+#line 3827 "scanner.c"
gint _tmp4_ = 0;
Scanner* _tmp5_ = NULL;
gint _tmp6_ = 0;
@@ -3836,26 +3835,24 @@ static void notify_got_page_info_real_run (Notify* base, Scanner* scanner) {
_tmp6_ = _tmp5_->job_id;
#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = _tmp4_ < _tmp6_;
-#line 3840 "scanner.c"
+#line 3839 "scanner.c"
} else {
#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = FALSE;
-#line 3844 "scanner.c"
+#line 3843 "scanner.c"
}
#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp7_ = _tmp0_;
-#line 180 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp7_) {
-#line 3850 "scanner.c"
- Scanner* _tmp8_ = NULL;
- ScanPageInfo* _tmp9_ = NULL;
+ if (_tmp0_) {
+#line 3847 "scanner.c"
+ Scanner* _tmp7_ = NULL;
+ ScanPageInfo* _tmp8_ = NULL;
#line 181 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp8_ = scanner;
+ _tmp7_ = scanner;
#line 181 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp9_ = self->priv->info;
+ _tmp8_ = self->priv->info;
#line 181 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- g_signal_emit_by_name (_tmp8_, "got-page-info", _tmp9_);
-#line 3859 "scanner.c"
+ g_signal_emit_by_name (_tmp7_, "got-page-info", _tmp8_);
+#line 3856 "scanner.c"
}
}
@@ -3869,14 +3866,14 @@ static void notify_got_page_info_class_init (NotifyGotPageInfoClass * klass) {
g_type_class_add_private (klass, sizeof (NotifyGotPageInfoPrivate));
#line 173 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->run = notify_got_page_info_real_run;
-#line 3873 "scanner.c"
+#line 3870 "scanner.c"
}
static void notify_got_page_info_instance_init (NotifyGotPageInfo * self) {
#line 173 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv = NOTIFY_GOT_PAGE_INFO_GET_PRIVATE (self);
-#line 3880 "scanner.c"
+#line 3877 "scanner.c"
}
@@ -3888,7 +3885,7 @@ static void notify_got_page_info_finalize (Notify* obj) {
_scan_page_info_unref0 (self->priv->info);
#line 173 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (notify_got_page_info_parent_class)->finalize (obj);
-#line 3892 "scanner.c"
+#line 3889 "scanner.c"
}
@@ -3915,14 +3912,14 @@ NotifyPageDone* notify_page_done_construct (GType object_type, gint job_id) {
self->priv->job_id = _tmp0_;
#line 187 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
-#line 3919 "scanner.c"
+#line 3916 "scanner.c"
}
NotifyPageDone* notify_page_done_new (gint job_id) {
#line 187 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return notify_page_done_construct (TYPE_NOTIFY_PAGE_DONE, job_id);
-#line 3926 "scanner.c"
+#line 3923 "scanner.c"
}
@@ -3932,7 +3929,6 @@ static void notify_page_done_real_run (Notify* base, Scanner* scanner) {
gint _tmp1_ = 0;
Scanner* _tmp2_ = NULL;
gint _tmp3_ = 0;
- gboolean _tmp7_ = FALSE;
#line 189 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyPageDone*) base;
#line 189 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -3945,7 +3941,7 @@ static void notify_page_done_real_run (Notify* base, Scanner* scanner) {
_tmp3_ = _tmp2_->first_job_id;
#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp1_ >= _tmp3_) {
-#line 3949 "scanner.c"
+#line 3945 "scanner.c"
gint _tmp4_ = 0;
Scanner* _tmp5_ = NULL;
gint _tmp6_ = 0;
@@ -3957,23 +3953,21 @@ static void notify_page_done_real_run (Notify* base, Scanner* scanner) {
_tmp6_ = _tmp5_->job_id;
#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = _tmp4_ < _tmp6_;
-#line 3961 "scanner.c"
+#line 3957 "scanner.c"
} else {
#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = FALSE;
-#line 3965 "scanner.c"
+#line 3961 "scanner.c"
}
#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp7_ = _tmp0_;
-#line 191 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp7_) {
-#line 3971 "scanner.c"
- Scanner* _tmp8_ = NULL;
+ if (_tmp0_) {
+#line 3965 "scanner.c"
+ Scanner* _tmp7_ = NULL;
#line 192 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp8_ = scanner;
+ _tmp7_ = scanner;
#line 192 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- g_signal_emit_by_name (_tmp8_, "page-done");
-#line 3977 "scanner.c"
+ g_signal_emit_by_name (_tmp7_, "page-done");
+#line 3971 "scanner.c"
}
}
@@ -3987,14 +3981,14 @@ static void notify_page_done_class_init (NotifyPageDoneClass * klass) {
g_type_class_add_private (klass, sizeof (NotifyPageDonePrivate));
#line 185 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->run = notify_page_done_real_run;
-#line 3991 "scanner.c"
+#line 3985 "scanner.c"
}
static void notify_page_done_instance_init (NotifyPageDone * self) {
#line 185 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv = NOTIFY_PAGE_DONE_GET_PRIVATE (self);
-#line 3998 "scanner.c"
+#line 3992 "scanner.c"
}
@@ -4004,7 +3998,7 @@ static void notify_page_done_finalize (Notify* obj) {
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_NOTIFY_PAGE_DONE, NotifyPageDone);
#line 185 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (notify_page_done_parent_class)->finalize (obj);
-#line 4008 "scanner.c"
+#line 4002 "scanner.c"
}
@@ -4023,7 +4017,7 @@ GType notify_page_done_get_type (void) {
static gpointer _scan_line_ref0 (gpointer self) {
#line 198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self ? scan_line_ref (self) : NULL;
-#line 4027 "scanner.c"
+#line 4021 "scanner.c"
}
@@ -4050,14 +4044,14 @@ NotifyGotLine* notify_got_line_construct (GType object_type, gint job_id, ScanLi
self->priv->line = _tmp2_;
#line 198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
-#line 4054 "scanner.c"
+#line 4048 "scanner.c"
}
NotifyGotLine* notify_got_line_new (gint job_id, ScanLine* line) {
#line 198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return notify_got_line_construct (TYPE_NOTIFY_GOT_LINE, job_id, line);
-#line 4061 "scanner.c"
+#line 4055 "scanner.c"
}
@@ -4067,7 +4061,6 @@ static void notify_got_line_real_run (Notify* base, Scanner* scanner) {
gint _tmp1_ = 0;
Scanner* _tmp2_ = NULL;
gint _tmp3_ = 0;
- gboolean _tmp7_ = FALSE;
#line 201 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self = (NotifyGotLine*) base;
#line 201 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -4080,7 +4073,7 @@ static void notify_got_line_real_run (Notify* base, Scanner* scanner) {
_tmp3_ = _tmp2_->first_job_id;
#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp1_ >= _tmp3_) {
-#line 4084 "scanner.c"
+#line 4077 "scanner.c"
gint _tmp4_ = 0;
Scanner* _tmp5_ = NULL;
gint _tmp6_ = 0;
@@ -4092,26 +4085,24 @@ static void notify_got_line_real_run (Notify* base, Scanner* scanner) {
_tmp6_ = _tmp5_->job_id;
#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = _tmp4_ < _tmp6_;
-#line 4096 "scanner.c"
+#line 4089 "scanner.c"
} else {
#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = FALSE;
-#line 4100 "scanner.c"
+#line 4093 "scanner.c"
}
#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp7_ = _tmp0_;
-#line 203 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp7_) {
-#line 4106 "scanner.c"
- Scanner* _tmp8_ = NULL;
- ScanLine* _tmp9_ = NULL;
+ if (_tmp0_) {
+#line 4097 "scanner.c"
+ Scanner* _tmp7_ = NULL;
+ ScanLine* _tmp8_ = NULL;
#line 204 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp8_ = scanner;
+ _tmp7_ = scanner;
#line 204 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp9_ = self->priv->line;
+ _tmp8_ = self->priv->line;
#line 204 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- g_signal_emit_by_name (_tmp8_, "got-line", _tmp9_);
-#line 4115 "scanner.c"
+ g_signal_emit_by_name (_tmp7_, "got-line", _tmp8_);
+#line 4106 "scanner.c"
}
}
@@ -4125,14 +4116,14 @@ static void notify_got_line_class_init (NotifyGotLineClass * klass) {
g_type_class_add_private (klass, sizeof (NotifyGotLinePrivate));
#line 196 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (klass)->run = notify_got_line_real_run;
-#line 4129 "scanner.c"
+#line 4120 "scanner.c"
}
static void notify_got_line_instance_init (NotifyGotLine * self) {
#line 196 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv = NOTIFY_GOT_LINE_GET_PRIVATE (self);
-#line 4136 "scanner.c"
+#line 4127 "scanner.c"
}
@@ -4144,7 +4135,7 @@ static void notify_got_line_finalize (Notify* obj) {
_scan_line_unref0 (self->priv->line);
#line 196 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
NOTIFY_CLASS (notify_got_line_parent_class)->finalize (obj);
-#line 4148 "scanner.c"
+#line 4139 "scanner.c"
}
@@ -4163,7 +4154,7 @@ GType notify_got_line_get_type (void) {
static void _scan_job_unref0_ (gpointer var) {
#line 234 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
(var == NULL) ? NULL : (var = (scan_job_unref (var), NULL));
-#line 4167 "scanner.c"
+#line 4158 "scanner.c"
}
@@ -4172,28 +4163,28 @@ static void _g_list_free__scan_job_unref0_ (GList* self) {
g_list_foreach (self, (GFunc) _scan_job_unref0_, NULL);
#line 234 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_list_free (self);
-#line 4176 "scanner.c"
+#line 4167 "scanner.c"
}
static void _request_unref0_ (gpointer var) {
#line 273 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
(var == NULL) ? NULL : (var = (request_unref (var), NULL));
-#line 4183 "scanner.c"
+#line 4174 "scanner.c"
}
static void _notify_unref0_ (gpointer var) {
#line 274 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
(var == NULL) ? NULL : (var = (notify_unref (var), NULL));
-#line 4190 "scanner.c"
+#line 4181 "scanner.c"
}
static void _credentials_unref0_ (gpointer var) {
#line 275 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
(var == NULL) ? NULL : (var = (credentials_unref (var), NULL));
-#line 4197 "scanner.c"
+#line 4188 "scanner.c"
}
@@ -4224,21 +4215,21 @@ static Scanner* scanner_construct (GType object_type) {
self->priv->authorize_queue = _tmp2_;
#line 271 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self;
-#line 4228 "scanner.c"
+#line 4219 "scanner.c"
}
static Scanner* scanner_new (void) {
#line 271 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return scanner_construct (TYPE_SCANNER);
-#line 4235 "scanner.c"
+#line 4226 "scanner.c"
}
static gpointer _scanner_ref0 (gpointer self) {
#line 282 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self ? scanner_ref (self) : NULL;
-#line 4242 "scanner.c"
+#line 4233 "scanner.c"
}
@@ -4251,7 +4242,7 @@ Scanner* scanner_get_instance (void) {
_tmp0_ = scanner_scanner_object;
#line 280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp0_ == NULL) {
-#line 4255 "scanner.c"
+#line 4246 "scanner.c"
Scanner* _tmp1_ = NULL;
#line 281 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = scanner_new ();
@@ -4259,7 +4250,7 @@ Scanner* scanner_get_instance (void) {
_scanner_unref0 (scanner_scanner_object);
#line 281 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_scanner_object = _tmp1_;
-#line 4263 "scanner.c"
+#line 4254 "scanner.c"
}
#line 282 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = scanner_scanner_object;
@@ -4269,7 +4260,7 @@ Scanner* scanner_get_instance (void) {
result = _tmp3_;
#line 282 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 4273 "scanner.c"
+#line 4264 "scanner.c"
}
@@ -4294,23 +4285,23 @@ static gboolean scanner_notify_idle_cb (Scanner* self) {
_notify_unref0 (notification);
#line 289 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 4298 "scanner.c"
+#line 4289 "scanner.c"
}
static gpointer _notify_ref0 (gpointer self) {
#line 294 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self ? notify_ref (self) : NULL;
-#line 4305 "scanner.c"
+#line 4296 "scanner.c"
}
static gboolean _scanner_notify_idle_cb_gsource_func (gpointer self) {
gboolean result;
- result = scanner_notify_idle_cb (self);
+ result = scanner_notify_idle_cb ((Scanner*) self);
#line 295 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 4314 "scanner.c"
+#line 4305 "scanner.c"
}
@@ -4332,7 +4323,7 @@ static void scanner_notify (Scanner* self, Notify* notification) {
g_async_queue_push (_tmp0_, _tmp2_);
#line 295 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _scanner_notify_idle_cb_gsource_func, scanner_ref (self), scanner_unref);
-#line 4336 "scanner.c"
+#line 4327 "scanner.c"
}
@@ -4340,80 +4331,71 @@ static void scanner_set_scanning (Scanner* self, gboolean is_scanning) {
gboolean _tmp0_ = FALSE;
gboolean _tmp1_ = FALSE;
gboolean _tmp2_ = FALSE;
- gboolean _tmp4_ = FALSE;
- gboolean _tmp9_ = FALSE;
#line 298 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = self->priv->scanning;
#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp2_) {
-#line 4352 "scanner.c"
+#line 4341 "scanner.c"
gboolean _tmp3_ = FALSE;
#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = is_scanning;
#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = !_tmp3_;
-#line 4358 "scanner.c"
+#line 4347 "scanner.c"
} else {
#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp1_ = FALSE;
-#line 4362 "scanner.c"
+#line 4351 "scanner.c"
}
#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp4_ = _tmp1_;
-#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp4_) {
+ if (_tmp1_) {
#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = TRUE;
-#line 4370 "scanner.c"
+#line 4357 "scanner.c"
} else {
+ gboolean _tmp4_ = FALSE;
gboolean _tmp5_ = FALSE;
- gboolean _tmp6_ = FALSE;
- gboolean _tmp8_ = FALSE;
#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp6_ = self->priv->scanning;
+ _tmp5_ = self->priv->scanning;
#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp6_) {
-#line 4379 "scanner.c"
- gboolean _tmp7_ = FALSE;
+ if (!_tmp5_) {
+#line 4365 "scanner.c"
+ gboolean _tmp6_ = FALSE;
#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp7_ = is_scanning;
+ _tmp6_ = is_scanning;
#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp5_ = _tmp7_;
-#line 4385 "scanner.c"
+ _tmp4_ = _tmp6_;
+#line 4371 "scanner.c"
} else {
#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp5_ = FALSE;
-#line 4389 "scanner.c"
+ _tmp4_ = FALSE;
+#line 4375 "scanner.c"
}
#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp8_ = _tmp5_;
-#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp0_ = _tmp8_;
-#line 4395 "scanner.c"
+ _tmp0_ = _tmp4_;
+#line 4379 "scanner.c"
}
#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp9_ = _tmp0_;
-#line 300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp9_) {
-#line 4401 "scanner.c"
- gboolean _tmp10_ = FALSE;
- NotifyScanningChanged* _tmp11_ = NULL;
- NotifyScanningChanged* _tmp12_ = NULL;
+ if (_tmp0_) {
+#line 4383 "scanner.c"
+ gboolean _tmp7_ = FALSE;
+ NotifyScanningChanged* _tmp8_ = NULL;
+ NotifyScanningChanged* _tmp9_ = NULL;
#line 302 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp10_ = is_scanning;
+ _tmp7_ = is_scanning;
#line 302 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- self->priv->scanning = _tmp10_;
+ self->priv->scanning = _tmp7_;
#line 303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp11_ = notify_scanning_changed_new ();
+ _tmp8_ = notify_scanning_changed_new ();
#line 303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp12_ = _tmp11_;
+ _tmp9_ = _tmp8_;
#line 303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_notify (self, (Notify*) _tmp12_);
+ scanner_notify (self, (Notify*) _tmp9_);
#line 303 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _notify_unref0 (_tmp12_);
-#line 4417 "scanner.c"
+ _notify_unref0 (_tmp9_);
+#line 4399 "scanner.c"
}
}
@@ -4422,19 +4404,19 @@ static gboolean string_contains (const gchar* self, const gchar* needle) {
gboolean result = FALSE;
const gchar* _tmp0_ = NULL;
gchar* _tmp1_ = NULL;
-#line 1237 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1274 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, FALSE);
-#line 1237 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1274 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
g_return_val_if_fail (needle != NULL, FALSE);
-#line 1238 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1275 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_tmp0_ = needle;
-#line 1238 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1275 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
-#line 1238 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1275 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
result = _tmp1_ != NULL;
-#line 1238 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1275 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
return result;
-#line 4438 "scanner.c"
+#line 4420 "scanner.c"
}
@@ -4456,7 +4438,7 @@ static gint scanner_get_device_weight (const gchar* device) {
result = 2;
#line 313 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 4460 "scanner.c"
+#line 4442 "scanner.c"
}
#line 316 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = device;
@@ -4468,13 +4450,13 @@ static gint scanner_get_device_weight (const gchar* device) {
result = 0;
#line 317 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 4472 "scanner.c"
+#line 4454 "scanner.c"
}
#line 319 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = 1;
#line 319 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 4478 "scanner.c"
+#line 4460 "scanner.c"
}
@@ -4522,7 +4504,7 @@ static gint scanner_compare_devices (ScanDevice* device1, ScanDevice* device2) {
_tmp7_ = weight2;
#line 328 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp6_ != _tmp7_) {
-#line 4526 "scanner.c"
+#line 4508 "scanner.c"
gint _tmp8_ = 0;
gint _tmp9_ = 0;
#line 329 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -4533,7 +4515,7 @@ static gint scanner_compare_devices (ScanDevice* device1, ScanDevice* device2) {
result = _tmp8_ - _tmp9_;
#line 329 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 4537 "scanner.c"
+#line 4519 "scanner.c"
}
#line 331 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = g_strcmp0;
@@ -4551,7 +4533,7 @@ static gint scanner_compare_devices (ScanDevice* device1, ScanDevice* device2) {
result = _tmp15_;
#line 331 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 4555 "scanner.c"
+#line 4537 "scanner.c"
}
@@ -4564,7 +4546,7 @@ static gchar* sane_status_to_string (SANE_Status status) {
switch (_tmp0_) {
#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_GOOD:
-#line 4568 "scanner.c"
+#line 4550 "scanner.c"
{
gchar* _tmp1_ = NULL;
#line 57 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -4573,11 +4555,11 @@ static gchar* sane_status_to_string (SANE_Status status) {
result = _tmp1_;
#line 57 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
-#line 4577 "scanner.c"
+#line 4559 "scanner.c"
}
#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_UNSUPPORTED:
-#line 4581 "scanner.c"
+#line 4563 "scanner.c"
{
gchar* _tmp2_ = NULL;
#line 59 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -4586,11 +4568,11 @@ static gchar* sane_status_to_string (SANE_Status status) {
result = _tmp2_;
#line 59 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
-#line 4590 "scanner.c"
+#line 4572 "scanner.c"
}
#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_CANCELLED:
-#line 4594 "scanner.c"
+#line 4576 "scanner.c"
{
gchar* _tmp3_ = NULL;
#line 61 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -4599,11 +4581,11 @@ static gchar* sane_status_to_string (SANE_Status status) {
result = _tmp3_;
#line 61 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
-#line 4603 "scanner.c"
+#line 4585 "scanner.c"
}
#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_DEVICE_BUSY:
-#line 4607 "scanner.c"
+#line 4589 "scanner.c"
{
gchar* _tmp4_ = NULL;
#line 63 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -4612,11 +4594,11 @@ static gchar* sane_status_to_string (SANE_Status status) {
result = _tmp4_;
#line 63 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
-#line 4616 "scanner.c"
+#line 4598 "scanner.c"
}
#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_INVAL:
-#line 4620 "scanner.c"
+#line 4602 "scanner.c"
{
gchar* _tmp5_ = NULL;
#line 65 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -4625,11 +4607,11 @@ static gchar* sane_status_to_string (SANE_Status status) {
result = _tmp5_;
#line 65 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
-#line 4629 "scanner.c"
+#line 4611 "scanner.c"
}
#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_EOF:
-#line 4633 "scanner.c"
+#line 4615 "scanner.c"
{
gchar* _tmp6_ = NULL;
#line 67 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -4638,11 +4620,11 @@ static gchar* sane_status_to_string (SANE_Status status) {
result = _tmp6_;
#line 67 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
-#line 4642 "scanner.c"
+#line 4624 "scanner.c"
}
#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_JAMMED:
-#line 4646 "scanner.c"
+#line 4628 "scanner.c"
{
gchar* _tmp7_ = NULL;
#line 69 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -4651,11 +4633,11 @@ static gchar* sane_status_to_string (SANE_Status status) {
result = _tmp7_;
#line 69 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
-#line 4655 "scanner.c"
+#line 4637 "scanner.c"
}
#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_NO_DOCS:
-#line 4659 "scanner.c"
+#line 4641 "scanner.c"
{
gchar* _tmp8_ = NULL;
#line 71 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -4664,11 +4646,11 @@ static gchar* sane_status_to_string (SANE_Status status) {
result = _tmp8_;
#line 71 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
-#line 4668 "scanner.c"
+#line 4650 "scanner.c"
}
#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_COVER_OPEN:
-#line 4672 "scanner.c"
+#line 4654 "scanner.c"
{
gchar* _tmp9_ = NULL;
#line 73 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -4677,11 +4659,11 @@ static gchar* sane_status_to_string (SANE_Status status) {
result = _tmp9_;
#line 73 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
-#line 4681 "scanner.c"
+#line 4663 "scanner.c"
}
#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_IO_ERROR:
-#line 4685 "scanner.c"
+#line 4667 "scanner.c"
{
gchar* _tmp10_ = NULL;
#line 75 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -4690,11 +4672,11 @@ static gchar* sane_status_to_string (SANE_Status status) {
result = _tmp10_;
#line 75 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
-#line 4694 "scanner.c"
+#line 4676 "scanner.c"
}
#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_NO_MEM:
-#line 4698 "scanner.c"
+#line 4680 "scanner.c"
{
gchar* _tmp11_ = NULL;
#line 77 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -4703,11 +4685,11 @@ static gchar* sane_status_to_string (SANE_Status status) {
result = _tmp11_;
#line 77 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
-#line 4707 "scanner.c"
+#line 4689 "scanner.c"
}
#line 54 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_STATUS_ACCESS_DENIED:
-#line 4711 "scanner.c"
+#line 4693 "scanner.c"
{
gchar* _tmp12_ = NULL;
#line 79 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -4716,7 +4698,7 @@ static gchar* sane_status_to_string (SANE_Status status) {
result = _tmp12_;
#line 79 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
-#line 4720 "scanner.c"
+#line 4702 "scanner.c"
}
default:
{
@@ -4730,7 +4712,7 @@ static gchar* sane_status_to_string (SANE_Status status) {
result = _tmp14_;
#line 81 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
return result;
-#line 4734 "scanner.c"
+#line 4716 "scanner.c"
}
}
}
@@ -4739,13 +4721,13 @@ static gchar* sane_status_to_string (SANE_Status status) {
static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
gchar* result = NULL;
GError * _inner_error_ = NULL;
-#line 1241 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1278 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, NULL);
-#line 1241 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1278 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
g_return_val_if_fail (old != NULL, NULL);
-#line 1241 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1278 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
g_return_val_if_fail (replacement != NULL, NULL);
-#line 4749 "scanner.c"
+#line 4731 "scanner.c"
{
GRegex* regex = NULL;
const gchar* _tmp0_ = NULL;
@@ -4757,94 +4739,101 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar*
GRegex* _tmp6_ = NULL;
const gchar* _tmp7_ = NULL;
gchar* _tmp8_ = NULL;
-#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+ gchar* _tmp9_ = NULL;
+#line 1280 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_tmp0_ = old;
-#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1280 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_tmp1_ = g_regex_escape_string (_tmp0_, -1);
-#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1280 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_tmp2_ = _tmp1_;
-#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1280 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
-#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1280 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_tmp4_ = _tmp3_;
-#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1280 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_g_free0 (_tmp2_);
-#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1280 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
regex = _tmp4_;
-#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1280 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
if (_inner_error_ != NULL) {
-#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1280 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 4779 "scanner.c"
+#line 4762 "scanner.c"
goto __catch14_g_regex_error;
}
-#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1280 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1280 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1243 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1280 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
return NULL;
-#line 4788 "scanner.c"
+#line 4771 "scanner.c"
}
-#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_tmp6_ = regex;
-#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_tmp7_ = replacement;
-#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) (-1), 0, _tmp7_, 0, &_inner_error_);
-#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_tmp5_ = _tmp8_;
-#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
if (_inner_error_ != NULL) {
-#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
if (_inner_error_->domain == G_REGEX_ERROR) {
-#line 4804 "scanner.c"
+#line 4787 "scanner.c"
goto __catch14_g_regex_error;
}
-#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
-#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
return NULL;
-#line 4815 "scanner.c"
+#line 4798 "scanner.c"
}
-#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
- result = _tmp5_;
-#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
+ _tmp9_ = _tmp5_;
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
+ _tmp5_ = NULL;
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
+ result = _tmp9_;
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
+ _g_free0 (_tmp5_);
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_g_regex_unref0 (regex);
-#line 1244 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1281 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
return result;
-#line 4823 "scanner.c"
+#line 4812 "scanner.c"
}
goto __finally14;
__catch14_g_regex_error:
{
GError* e = NULL;
-#line 1242 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1279 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
e = _inner_error_;
-#line 1242 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1279 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_inner_error_ = NULL;
-#line 1246 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1283 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
g_assert_not_reached ();
-#line 1242 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1279 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_g_error_free0 (e);
-#line 4837 "scanner.c"
+#line 4826 "scanner.c"
}
__finally14:
-#line 1242 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1279 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
if (_inner_error_ != NULL) {
-#line 1242 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1279 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
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 1242 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1279 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
g_clear_error (&_inner_error_);
-#line 1242 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 1279 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
return NULL;
-#line 4848 "scanner.c"
+#line 4837 "scanner.c"
}
}
@@ -4852,16 +4841,16 @@ static gchar* string_replace (const gchar* self, const gchar* old, const gchar*
static gpointer _scan_device_ref0 (gpointer self) {
#line 365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self ? scan_device_ref (self) : NULL;
-#line 4856 "scanner.c"
+#line 4845 "scanner.c"
}
static gint _scanner_compare_devices_gcompare_func (gconstpointer a, gconstpointer b) {
gint result;
- result = scanner_compare_devices (a, b);
+ result = scanner_compare_devices ((ScanDevice*) a, (ScanDevice*) b);
#line 369 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 4865 "scanner.c"
+#line 4854 "scanner.c"
}
@@ -4877,10 +4866,10 @@ static void scanner_do_redetect (Scanner* self) {
gchar* _tmp4_ = NULL;
SANE_Status _tmp5_ = 0;
GList* devices = NULL;
- GList* _tmp57_ = NULL;
- GList* _tmp64_ = NULL;
+ GList* _tmp56_ = NULL;
+ GList* _tmp63_ = NULL;
+ NotifyUpdateDevices* _tmp64_ = NULL;
NotifyUpdateDevices* _tmp65_ = NULL;
- NotifyUpdateDevices* _tmp66_ = NULL;
#line 334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
#line 336 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -4913,7 +4902,7 @@ static void scanner_do_redetect (Scanner* self) {
_tmp5_ = status;
#line 339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp5_ != SANE_STATUS_GOOD) {
-#line 4917 "scanner.c"
+#line 4906 "scanner.c"
SANE_Status _tmp6_ = 0;
const gchar* _tmp7_ = NULL;
#line 341 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -4928,241 +4917,238 @@ static void scanner_do_redetect (Scanner* self) {
self->priv->state = SCAN_STATE_IDLE;
#line 344 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
-#line 4932 "scanner.c"
+#line 4921 "scanner.c"
}
#line 347 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
devices = NULL;
-#line 4936 "scanner.c"
+#line 4925 "scanner.c"
{
gint i = 0;
#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
-#line 4941 "scanner.c"
+#line 4930 "scanner.c"
{
gboolean _tmp8_ = FALSE;
#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = TRUE;
#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
-#line 4948 "scanner.c"
- gboolean _tmp9_ = FALSE;
- SANE_Device** _tmp11_ = NULL;
- gint _tmp11__length1 = 0;
- gint _tmp12_ = 0;
- SANE_Device* _tmp13_ = NULL;
- SANE_Device** _tmp14_ = NULL;
- gint _tmp14__length1 = 0;
- gint _tmp15_ = 0;
- SANE_Device* _tmp16_ = NULL;
- const gchar* _tmp17_ = NULL;
- SANE_Device** _tmp18_ = NULL;
- gint _tmp18__length1 = 0;
- gint _tmp19_ = 0;
- SANE_Device* _tmp20_ = NULL;
- const gchar* _tmp21_ = NULL;
- SANE_Device** _tmp22_ = NULL;
- gint _tmp22__length1 = 0;
- gint _tmp23_ = 0;
- SANE_Device* _tmp24_ = NULL;
- const gchar* _tmp25_ = NULL;
- SANE_Device** _tmp26_ = NULL;
- gint _tmp26__length1 = 0;
- gint _tmp27_ = 0;
- SANE_Device* _tmp28_ = NULL;
- const gchar* _tmp29_ = NULL;
+#line 4937 "scanner.c"
+ SANE_Device** _tmp10_ = NULL;
+ gint _tmp10__length1 = 0;
+ gint _tmp11_ = 0;
+ SANE_Device* _tmp12_ = NULL;
+ SANE_Device** _tmp13_ = NULL;
+ gint _tmp13__length1 = 0;
+ gint _tmp14_ = 0;
+ SANE_Device* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+ SANE_Device** _tmp17_ = NULL;
+ gint _tmp17__length1 = 0;
+ gint _tmp18_ = 0;
+ SANE_Device* _tmp19_ = NULL;
+ const gchar* _tmp20_ = NULL;
+ SANE_Device** _tmp21_ = NULL;
+ gint _tmp21__length1 = 0;
+ gint _tmp22_ = 0;
+ SANE_Device* _tmp23_ = NULL;
+ const gchar* _tmp24_ = NULL;
+ SANE_Device** _tmp25_ = NULL;
+ gint _tmp25__length1 = 0;
+ gint _tmp26_ = 0;
+ SANE_Device* _tmp27_ = NULL;
+ const gchar* _tmp28_ = NULL;
ScanDevice* scan_device = NULL;
+ ScanDevice* _tmp29_ = NULL;
ScanDevice* _tmp30_ = NULL;
- ScanDevice* _tmp31_ = NULL;
- SANE_Device** _tmp32_ = NULL;
- gint _tmp32__length1 = 0;
- gint _tmp33_ = 0;
- SANE_Device* _tmp34_ = NULL;
- const gchar* _tmp35_ = NULL;
- gchar* _tmp36_ = NULL;
+ SANE_Device** _tmp31_ = NULL;
+ gint _tmp31__length1 = 0;
+ gint _tmp32_ = 0;
+ SANE_Device* _tmp33_ = NULL;
+ const gchar* _tmp34_ = NULL;
+ gchar* _tmp35_ = NULL;
gchar* vendor = NULL;
- SANE_Device** _tmp37_ = NULL;
- gint _tmp37__length1 = 0;
- gint _tmp38_ = 0;
- SANE_Device* _tmp39_ = NULL;
- const gchar* _tmp40_ = NULL;
- gchar* _tmp41_ = NULL;
- const gchar* _tmp42_ = NULL;
- ScanDevice* _tmp44_ = NULL;
- const gchar* _tmp45_ = NULL;
- SANE_Device** _tmp46_ = NULL;
- gint _tmp46__length1 = 0;
- gint _tmp47_ = 0;
- SANE_Device* _tmp48_ = NULL;
- const gchar* _tmp49_ = NULL;
- gchar* _tmp50_ = NULL;
- ScanDevice* _tmp51_ = NULL;
- const gchar* _tmp52_ = NULL;
+ SANE_Device** _tmp36_ = NULL;
+ gint _tmp36__length1 = 0;
+ gint _tmp37_ = 0;
+ SANE_Device* _tmp38_ = NULL;
+ const gchar* _tmp39_ = NULL;
+ gchar* _tmp40_ = NULL;
+ const gchar* _tmp41_ = NULL;
+ ScanDevice* _tmp43_ = NULL;
+ const gchar* _tmp44_ = NULL;
+ SANE_Device** _tmp45_ = NULL;
+ gint _tmp45__length1 = 0;
+ gint _tmp46_ = 0;
+ SANE_Device* _tmp47_ = NULL;
+ const gchar* _tmp48_ = NULL;
+ gchar* _tmp49_ = NULL;
+ ScanDevice* _tmp50_ = NULL;
+ const gchar* _tmp51_ = NULL;
+ gchar* _tmp52_ = NULL;
gchar* _tmp53_ = NULL;
- gchar* _tmp54_ = NULL;
+ ScanDevice* _tmp54_ = NULL;
ScanDevice* _tmp55_ = NULL;
- ScanDevice* _tmp56_ = NULL;
-#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp9_ = _tmp8_;
#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp9_) {
-#line 5009 "scanner.c"
- gint _tmp10_ = 0;
+ if (!_tmp8_) {
+#line 4995 "scanner.c"
+ gint _tmp9_ = 0;
#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp10_ = i;
+ _tmp9_ = i;
#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- i = _tmp10_ + 1;
-#line 5015 "scanner.c"
+ i = _tmp9_ + 1;
+#line 5001 "scanner.c"
}
#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = FALSE;
#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp11_ = device_list;
+ _tmp10_ = device_list;
#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp11__length1 = device_list_length1;
+ _tmp10__length1 = device_list_length1;
#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp12_ = i;
+ _tmp11_ = i;
#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp13_ = _tmp11_[_tmp12_];
+ _tmp12_ = _tmp10_[_tmp11_];
#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!(_tmp13_ != NULL)) {
+ if (!(_tmp12_ != NULL)) {
#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 5031 "scanner.c"
+#line 5017 "scanner.c"
}
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp14_ = device_list;
+ _tmp13_ = device_list;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp14__length1 = device_list_length1;
+ _tmp13__length1 = device_list_length1;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp15_ = i;
+ _tmp14_ = i;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp16_ = _tmp14_[_tmp15_];
+ _tmp15_ = _tmp13_[_tmp14_];
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp17_ = _tmp16_->name;
+ _tmp16_ = _tmp15_->name;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp18_ = device_list;
+ _tmp17_ = device_list;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp18__length1 = device_list_length1;
+ _tmp17__length1 = device_list_length1;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp19_ = i;
+ _tmp18_ = i;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp20_ = _tmp18_[_tmp19_];
+ _tmp19_ = _tmp17_[_tmp18_];
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp21_ = _tmp20_->vendor;
+ _tmp20_ = _tmp19_->vendor;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp22_ = device_list;
+ _tmp21_ = device_list;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp22__length1 = device_list_length1;
+ _tmp21__length1 = device_list_length1;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp23_ = i;
+ _tmp22_ = i;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp24_ = _tmp22_[_tmp23_];
+ _tmp23_ = _tmp21_[_tmp22_];
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp25_ = _tmp24_->model;
+ _tmp24_ = _tmp23_->model;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp26_ = device_list;
+ _tmp25_ = device_list;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp26__length1 = device_list_length1;
+ _tmp25__length1 = device_list_length1;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp27_ = i;
+ _tmp26_ = i;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp28_ = _tmp26_[_tmp27_];
+ _tmp27_ = _tmp25_[_tmp26_];
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp29_ = _tmp28_->type;
+ _tmp28_ = _tmp27_->type;
#line 350 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_debug ("scanner.vala:350: Device: name=\"%s\" vendor=\"%s\" model=\"%s\" type=" \
-"\"%s\"", _tmp17_, _tmp21_, _tmp25_, _tmp29_);
+"\"%s\"", _tmp16_, _tmp20_, _tmp24_, _tmp28_);
#line 353 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp30_ = scan_device_new ();
+ _tmp29_ = scan_device_new ();
#line 353 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scan_device = _tmp30_;
+ scan_device = _tmp29_;
#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp31_ = scan_device;
+ _tmp30_ = scan_device;
#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp32_ = device_list;
+ _tmp31_ = device_list;
#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp32__length1 = device_list_length1;
+ _tmp31__length1 = device_list_length1;
#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp33_ = i;
+ _tmp32_ = i;
#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp34_ = _tmp32_[_tmp33_];
+ _tmp33_ = _tmp31_[_tmp32_];
#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp35_ = _tmp34_->name;
+ _tmp34_ = _tmp33_->name;
#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp36_ = g_strdup (_tmp35_);
+ _tmp35_ = g_strdup (_tmp34_);
#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp31_->name);
+ _g_free0 (_tmp30_->name);
#line 354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp31_->name = _tmp36_;
+ _tmp30_->name = _tmp35_;
#line 357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp37_ = device_list;
+ _tmp36_ = device_list;
#line 357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp37__length1 = device_list_length1;
+ _tmp36__length1 = device_list_length1;
#line 357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp38_ = i;
+ _tmp37_ = i;
#line 357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp39_ = _tmp37_[_tmp38_];
+ _tmp38_ = _tmp36_[_tmp37_];
#line 357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp40_ = _tmp39_->vendor;
+ _tmp39_ = _tmp38_->vendor;
#line 357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp41_ = g_strdup (_tmp40_);
+ _tmp40_ = g_strdup (_tmp39_);
#line 357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- vendor = _tmp41_;
+ vendor = _tmp40_;
#line 358 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp42_ = vendor;
+ _tmp41_ = vendor;
#line 358 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (g_strcmp0 (_tmp42_, "Hewlett-Packard") == 0) {
-#line 5115 "scanner.c"
- gchar* _tmp43_ = NULL;
+ if (g_strcmp0 (_tmp41_, "Hewlett-Packard") == 0) {
+#line 5101 "scanner.c"
+ gchar* _tmp42_ = NULL;
#line 359 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp43_ = g_strdup ("HP");
+ _tmp42_ = g_strdup ("HP");
#line 359 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (vendor);
#line 359 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- vendor = _tmp43_;
-#line 5123 "scanner.c"
+ vendor = _tmp42_;
+#line 5109 "scanner.c"
}
#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp44_ = scan_device;
+ _tmp43_ = scan_device;
#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp45_ = vendor;
+ _tmp44_ = vendor;
#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp46_ = device_list;
+ _tmp45_ = device_list;
#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp46__length1 = device_list_length1;
+ _tmp45__length1 = device_list_length1;
#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp47_ = i;
+ _tmp46_ = i;
#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp48_ = _tmp46_[_tmp47_];
+ _tmp47_ = _tmp45_[_tmp46_];
#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp49_ = _tmp48_->model;
+ _tmp48_ = _tmp47_->model;
#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp50_ = g_strdup_printf ("%s %s", _tmp45_, _tmp49_);
+ _tmp49_ = g_strdup_printf ("%s %s", _tmp44_, _tmp48_);
#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp44_->label);
+ _g_free0 (_tmp43_->label);
#line 361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp44_->label = _tmp50_;
+ _tmp43_->label = _tmp49_;
#line 363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp51_ = scan_device;
+ _tmp50_ = scan_device;
#line 363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp52_ = _tmp51_->label;
+ _tmp51_ = _tmp50_->label;
#line 363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp53_ = string_replace (_tmp52_, "_", " ");
+ _tmp52_ = string_replace (_tmp51_, "_", " ");
#line 363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp54_ = _tmp53_;
+ _tmp53_ = _tmp52_;
#line 363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp54_);
+ _g_free0 (_tmp53_);
#line 365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp55_ = scan_device;
+ _tmp54_ = scan_device;
#line 365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp56_ = _scan_device_ref0 (_tmp55_);
+ _tmp55_ = _scan_device_ref0 (_tmp54_);
#line 365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- devices = g_list_append (devices, _tmp56_);
+ devices = g_list_append (devices, _tmp55_);
#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (vendor);
#line 348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_device_unref0 (scan_device);
-#line 5165 "scanner.c"
+#line 5151 "scanner.c"
}
}
}
@@ -5173,60 +5159,60 @@ static void scanner_do_redetect (Scanner* self) {
#line 372 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_IDLE;
#line 374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp57_ = devices;
+ _tmp56_ = devices;
#line 374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp57_ != NULL) {
-#line 5179 "scanner.c"
+ if (_tmp56_ != NULL) {
+#line 5165 "scanner.c"
ScanDevice* device = NULL;
- GList* _tmp58_ = NULL;
- gconstpointer _tmp59_ = NULL;
+ GList* _tmp57_ = NULL;
+ gconstpointer _tmp58_ = NULL;
+ ScanDevice* _tmp59_ = NULL;
ScanDevice* _tmp60_ = NULL;
- ScanDevice* _tmp61_ = NULL;
- const gchar* _tmp62_ = NULL;
- gchar* _tmp63_ = NULL;
+ const gchar* _tmp61_ = NULL;
+ gchar* _tmp62_ = NULL;
#line 376 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp58_ = devices;
+ _tmp57_ = devices;
#line 376 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp59_ = g_list_nth_data (_tmp58_, (guint) 0);
+ _tmp58_ = g_list_nth_data (_tmp57_, (guint) 0);
#line 376 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp60_ = _scan_device_ref0 ((ScanDevice*) _tmp59_);
+ _tmp59_ = _scan_device_ref0 ((ScanDevice*) _tmp58_);
#line 376 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- device = _tmp60_;
+ device = _tmp59_;
#line 377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp61_ = device;
+ _tmp60_ = device;
#line 377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp62_ = _tmp61_->name;
+ _tmp61_ = _tmp60_->name;
#line 377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp63_ = g_strdup (_tmp62_);
+ _tmp62_ = g_strdup (_tmp61_);
#line 377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->priv->default_device);
#line 377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- self->priv->default_device = _tmp63_;
+ self->priv->default_device = _tmp62_;
#line 374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_device_unref0 (device);
-#line 5207 "scanner.c"
+#line 5193 "scanner.c"
} else {
#line 380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->priv->default_device);
#line 380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->default_device = NULL;
-#line 5213 "scanner.c"
+#line 5199 "scanner.c"
}
#line 382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp64_ = devices;
+ _tmp63_ = devices;
#line 382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
devices = NULL;
#line 382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp65_ = notify_update_devices_new (_tmp64_);
+ _tmp64_ = notify_update_devices_new (_tmp63_);
#line 382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp66_ = _tmp65_;
+ _tmp65_ = _tmp64_;
#line 382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_notify (self, (Notify*) _tmp66_);
+ scanner_notify (self, (Notify*) _tmp65_);
#line 382 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _notify_unref0 (_tmp66_);
+ _notify_unref0 (_tmp65_);
#line 334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
__g_list_free__scan_device_unref0_0 (devices);
-#line 5229 "scanner.c"
+#line 5215 "scanner.c"
}
@@ -5240,7 +5226,6 @@ static gint scanner_scale_int (Scanner* self, gint source_min, gint source_max,
gboolean _tmp4_ = FALSE;
SANE_Option_Descriptor* _tmp5_ = NULL;
SANE_Constraint_Type _tmp6_ = 0;
- gboolean _tmp13_ = FALSE;
#line 385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (self != NULL, 0);
#line 385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -5263,7 +5248,7 @@ static gint scanner_scale_int (Scanner* self, gint source_min, gint source_max,
_tmp6_ = _tmp5_->constraint_type;
#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp6_ == SANE_CONSTRAINT_RANGE) {
-#line 5266 "scanner.c"
+#line 5251 "scanner.c"
SANE_Option_Descriptor* _tmp7_ = NULL;
SANE_Range* _tmp8_ = NULL;
SANE_Word _tmp9_ = {0};
@@ -5284,113 +5269,111 @@ static gint scanner_scale_int (Scanner* self, gint source_min, gint source_max,
_tmp12_ = _tmp11_->min;
#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = _tmp9_ != _tmp12_;
-#line 5287 "scanner.c"
+#line 5272 "scanner.c"
} else {
#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = FALSE;
-#line 5291 "scanner.c"
+#line 5276 "scanner.c"
}
#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp13_ = _tmp4_;
-#line 391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp13_) {
-#line 5297 "scanner.c"
+ if (_tmp4_) {
+#line 5280 "scanner.c"
+ gint _tmp13_ = 0;
gint _tmp14_ = 0;
gint _tmp15_ = 0;
- gint _tmp16_ = 0;
- SANE_Option_Descriptor* _tmp17_ = NULL;
- SANE_Range* _tmp18_ = NULL;
- SANE_Word _tmp19_ = {0};
- SANE_Option_Descriptor* _tmp20_ = NULL;
- SANE_Range* _tmp21_ = NULL;
- SANE_Word _tmp22_ = {0};
+ SANE_Option_Descriptor* _tmp16_ = NULL;
+ SANE_Range* _tmp17_ = NULL;
+ SANE_Word _tmp18_ = {0};
+ SANE_Option_Descriptor* _tmp19_ = NULL;
+ SANE_Range* _tmp20_ = NULL;
+ SANE_Word _tmp21_ = {0};
+ gint _tmp22_ = 0;
gint _tmp23_ = 0;
gint _tmp24_ = 0;
gint _tmp25_ = 0;
- gint _tmp26_ = 0;
- SANE_Option_Descriptor* _tmp27_ = NULL;
- SANE_Range* _tmp28_ = NULL;
- SANE_Word _tmp29_ = {0};
+ SANE_Option_Descriptor* _tmp26_ = NULL;
+ SANE_Range* _tmp27_ = NULL;
+ SANE_Word _tmp28_ = {0};
+ gint _tmp29_ = 0;
gint _tmp30_ = 0;
gint _tmp31_ = 0;
gint _tmp32_ = 0;
- gint _tmp33_ = 0;
- SANE_Option_Descriptor* _tmp34_ = NULL;
- SANE_Range* _tmp35_ = NULL;
- SANE_Word _tmp36_ = {0};
- SANE_Option_Descriptor* _tmp37_ = NULL;
- SANE_Range* _tmp38_ = NULL;
- SANE_Word _tmp39_ = {0};
+ SANE_Option_Descriptor* _tmp33_ = NULL;
+ SANE_Range* _tmp34_ = NULL;
+ SANE_Word _tmp35_ = {0};
+ SANE_Option_Descriptor* _tmp36_ = NULL;
+ SANE_Range* _tmp37_ = NULL;
+ SANE_Word _tmp38_ = {0};
#line 393 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp14_ = v;
+ _tmp13_ = v;
#line 393 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp15_ = source_min;
+ _tmp14_ = source_min;
#line 393 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- v = _tmp14_ - _tmp15_;
+ v = _tmp13_ - _tmp14_;
#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp16_ = v;
+ _tmp15_ = v;
#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp17_ = option;
+ _tmp16_ = option;
#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp18_ = _tmp17_->constraint.range;
+ _tmp17_ = _tmp16_->constraint.range;
#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp19_ = _tmp18_->max;
+ _tmp18_ = _tmp17_->max;
#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp20_ = option;
+ _tmp19_ = option;
#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp21_ = _tmp20_->constraint.range;
+ _tmp20_ = _tmp19_->constraint.range;
#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp22_ = _tmp21_->min;
+ _tmp21_ = _tmp20_->min;
#line 394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- v = _tmp16_ * ((gint) (_tmp19_ - _tmp22_));
+ v = _tmp15_ * ((gint) (_tmp18_ - _tmp21_));
#line 395 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp23_ = v;
+ _tmp22_ = v;
#line 395 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp24_ = source_max;
+ _tmp23_ = source_max;
#line 395 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp25_ = source_min;
+ _tmp24_ = source_min;
#line 395 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- v = _tmp23_ / (_tmp24_ - _tmp25_);
+ v = _tmp22_ / (_tmp23_ - _tmp24_);
#line 396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp26_ = v;
+ _tmp25_ = v;
#line 396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp27_ = option;
+ _tmp26_ = option;
#line 396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp28_ = _tmp27_->constraint.range;
+ _tmp27_ = _tmp26_->constraint.range;
#line 396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp29_ = _tmp28_->min;
+ _tmp28_ = _tmp27_->min;
#line 396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- v = _tmp26_ + ((gint) _tmp29_);
+ v = _tmp25_ + ((gint) _tmp28_);
#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp30_ = value;
+ _tmp29_ = value;
#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp31_ = source_min;
+ _tmp30_ = source_min;
#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp32_ = source_max;
+ _tmp31_ = source_max;
#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp33_ = v;
+ _tmp32_ = v;
#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp34_ = option;
+ _tmp33_ = option;
#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp35_ = _tmp34_->constraint.range;
+ _tmp34_ = _tmp33_->constraint.range;
#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp36_ = _tmp35_->min;
+ _tmp35_ = _tmp34_->min;
#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp37_ = option;
+ _tmp36_ = option;
#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp38_ = _tmp37_->constraint.range;
+ _tmp37_ = _tmp36_->constraint.range;
#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp39_ = _tmp38_->max;
+ _tmp38_ = _tmp37_->max;
#line 397 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_debug ("scanner.vala:397: scale_int: scaling %d [min: %d, max: %d] to %d [min:" \
-" %d, max: %d]", _tmp30_, _tmp31_, _tmp32_, _tmp33_, (gint) _tmp36_, (gint) _tmp39_);
-#line 5386 "scanner.c"
+" %d, max: %d]", _tmp29_, _tmp30_, _tmp31_, _tmp32_, (gint) _tmp35_, (gint) _tmp38_);
+#line 5369 "scanner.c"
}
#line 401 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = v;
#line 401 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 5392 "scanner.c"
+#line 5375 "scanner.c"
}
@@ -5422,7 +5405,7 @@ static gboolean scanner_set_default_option (Scanner* self, SANE_Handle handle, S
result = FALSE;
#line 408 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 5424 "scanner.c"
+#line 5407 "scanner.c"
}
#line 410 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = handle;
@@ -5448,7 +5431,7 @@ static gboolean scanner_set_default_option (Scanner* self, SANE_Handle handle, S
_tmp9_ = status;
#line 412 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp9_ != SANE_STATUS_GOOD) {
-#line 5450 "scanner.c"
+#line 5433 "scanner.c"
SANE_Option_Descriptor* _tmp10_ = NULL;
const gchar* _tmp11_ = NULL;
SANE_Status _tmp12_ = 0;
@@ -5463,7 +5446,7 @@ static gboolean scanner_set_default_option (Scanner* self, SANE_Handle handle, S
_tmp13_ = sane_strstatus (_tmp12_);
#line 413 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_warning ("scanner.vala:413: Error setting default option %s: %s", _tmp11_, _tmp13_);
-#line 5465 "scanner.c"
+#line 5448 "scanner.c"
}
#line 415 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = status;
@@ -5471,7 +5454,7 @@ static gboolean scanner_set_default_option (Scanner* self, SANE_Handle handle, S
result = _tmp14_ == SANE_STATUS_GOOD;
#line 415 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 5473 "scanner.c"
+#line 5456 "scanner.c"
}
@@ -5491,11 +5474,9 @@ static void scanner_set_bool_option (Scanner* self, SANE_Handle handle, SANE_Opt
const gchar* _tmp9_ = NULL;
gboolean _tmp10_ = FALSE;
SANE_Int _tmp11_ = {0};
- const gchar* _tmp12_ = NULL;
- SANE_Status _tmp13_ = 0;
+ SANE_Status _tmp12_ = 0;
+ gchar* _tmp13_ = NULL;
gchar* _tmp14_ = NULL;
- gchar* _tmp15_ = NULL;
- const gchar* _tmp16_ = NULL;
#line 418 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
#line 418 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -5528,11 +5509,11 @@ static void scanner_set_bool_option (Scanner* self, SANE_Handle handle, SANE_Opt
if (_tmp8_) {
#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = "SANE_TRUE";
-#line 5530 "scanner.c"
+#line 5511 "scanner.c"
} else {
#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = "SANE_FALSE";
-#line 5534 "scanner.c"
+#line 5515 "scanner.c"
}
#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = _vala_result;
@@ -5540,34 +5521,30 @@ static void scanner_set_bool_option (Scanner* self, SANE_Handle handle, SANE_Opt
if (_tmp10_) {
#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = "SANE_TRUE";
-#line 5542 "scanner.c"
+#line 5523 "scanner.c"
} else {
#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = "SANE_FALSE";
-#line 5546 "scanner.c"
+#line 5527 "scanner.c"
}
#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = option_index;
#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp12_ = _tmp7_;
+ _tmp12_ = status;
#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp13_ = status;
+ _tmp13_ = sane_status_to_string (_tmp12_);
#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp14_ = sane_status_to_string (_tmp13_);
-#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp15_ = _tmp14_;
-#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp16_ = _tmp9_;
+ _tmp14_ = _tmp13_;
#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_debug ("scanner.vala:425: sane_control_option (%d, SANE_ACTION_SET_VALUE, %s) " \
-"-> (%s, %s)", (gint) _tmp11_, _tmp12_, _tmp15_, _tmp16_);
+"-> (%s, %s)", (gint) _tmp11_, _tmp7_, _tmp14_, _tmp9_);
#line 425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp15_);
+ _g_free0 (_tmp14_);
#line 418 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_result_) {
#line 418 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*_result_ = _vala_result;
-#line 5568 "scanner.c"
+#line 5545 "scanner.c"
}
}
@@ -5581,15 +5558,15 @@ static void scanner_set_int_option (Scanner* self, SANE_Handle handle, SANE_Opti
SANE_Option_Descriptor* _tmp3_ = NULL;
SANE_Constraint_Type _tmp4_ = 0;
SANE_Status status = 0;
- SANE_Handle _tmp49_ = {0};
- SANE_Int _tmp50_ = {0};
- SANE_Status _tmp51_ = 0;
- SANE_Int _tmp52_ = {0};
- gint _tmp53_ = 0;
+ SANE_Handle _tmp48_ = {0};
+ SANE_Int _tmp49_ = {0};
+ SANE_Status _tmp50_ = 0;
+ SANE_Int _tmp51_ = {0};
+ gint _tmp52_ = 0;
+ gchar* _tmp53_ = NULL;
gchar* _tmp54_ = NULL;
- gchar* _tmp55_ = NULL;
+ SANE_Int _tmp55_ = {0};
SANE_Int _tmp56_ = {0};
- SANE_Int _tmp57_ = {0};
#line 428 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
#line 428 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -5610,7 +5587,7 @@ static void scanner_set_int_option (Scanner* self, SANE_Handle handle, SANE_Opti
_tmp4_ = _tmp3_->constraint_type;
#line 433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp4_ == SANE_CONSTRAINT_RANGE) {
-#line 5611 "scanner.c"
+#line 5588 "scanner.c"
SANE_Option_Descriptor* _tmp5_ = NULL;
SANE_Range* _tmp6_ = NULL;
SANE_Word _tmp7_ = {0};
@@ -5630,7 +5607,7 @@ static void scanner_set_int_option (Scanner* self, SANE_Handle handle, SANE_Opti
_tmp7_ = _tmp6_->quant;
#line 435 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp7_ != ((SANE_Word) 0)) {
-#line 5631 "scanner.c"
+#line 5608 "scanner.c"
SANE_Int _tmp8_ = {0};
SANE_Option_Descriptor* _tmp9_ = NULL;
SANE_Range* _tmp10_ = NULL;
@@ -5645,7 +5622,7 @@ static void scanner_set_int_option (Scanner* self, SANE_Handle handle, SANE_Opti
_tmp11_ = _tmp10_->quant;
#line 436 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v = _tmp8_ * _tmp11_;
-#line 5646 "scanner.c"
+#line 5623 "scanner.c"
}
#line 437 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp12_ = v;
@@ -5657,7 +5634,7 @@ static void scanner_set_int_option (Scanner* self, SANE_Handle handle, SANE_Opti
_tmp15_ = _tmp14_->min;
#line 437 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp12_ < ((SANE_Int) _tmp15_)) {
-#line 5658 "scanner.c"
+#line 5635 "scanner.c"
SANE_Option_Descriptor* _tmp16_ = NULL;
SANE_Range* _tmp17_ = NULL;
SANE_Word _tmp18_ = {0};
@@ -5669,7 +5646,7 @@ static void scanner_set_int_option (Scanner* self, SANE_Handle handle, SANE_Opti
_tmp18_ = _tmp17_->min;
#line 438 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v = (SANE_Int) _tmp18_;
-#line 5670 "scanner.c"
+#line 5647 "scanner.c"
}
#line 439 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp19_ = v;
@@ -5681,7 +5658,7 @@ static void scanner_set_int_option (Scanner* self, SANE_Handle handle, SANE_Opti
_tmp22_ = _tmp21_->max;
#line 439 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp19_ > ((SANE_Int) _tmp22_)) {
-#line 5682 "scanner.c"
+#line 5659 "scanner.c"
SANE_Option_Descriptor* _tmp23_ = NULL;
SANE_Range* _tmp24_ = NULL;
SANE_Word _tmp25_ = {0};
@@ -5693,7 +5670,7 @@ static void scanner_set_int_option (Scanner* self, SANE_Handle handle, SANE_Opti
_tmp25_ = _tmp24_->max;
#line 440 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v = (SANE_Int) _tmp25_;
-#line 5694 "scanner.c"
+#line 5671 "scanner.c"
}
} else {
SANE_Option_Descriptor* _tmp26_ = NULL;
@@ -5704,164 +5681,161 @@ static void scanner_set_int_option (Scanner* self, SANE_Handle handle, SANE_Opti
_tmp27_ = _tmp26_->constraint_type;
#line 442 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp27_ == SANE_CONSTRAINT_WORD_LIST) {
-#line 5705 "scanner.c"
+#line 5682 "scanner.c"
gint distance = 0;
gint _tmp28_ = 0;
gint nearest = 0;
- gint _tmp48_ = 0;
+ gint _tmp47_ = 0;
#line 444 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp28_ = G_MAXINT;
#line 444 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
distance = _tmp28_;
#line 444 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
nearest = 0;
-#line 5716 "scanner.c"
+#line 5693 "scanner.c"
{
gint i = 0;
#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
-#line 5721 "scanner.c"
+#line 5698 "scanner.c"
{
gboolean _tmp29_ = FALSE;
#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp29_ = TRUE;
#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
-#line 5728 "scanner.c"
- gboolean _tmp30_ = FALSE;
- gint _tmp32_ = 0;
- SANE_Option_Descriptor* _tmp33_ = NULL;
- SANE_Word* _tmp34_ = NULL;
- gint _tmp34__length1 = 0;
- SANE_Word _tmp35_ = {0};
+#line 5705 "scanner.c"
+ gint _tmp31_ = 0;
+ SANE_Option_Descriptor* _tmp32_ = NULL;
+ SANE_Word* _tmp33_ = NULL;
+ gint _tmp33__length1 = 0;
+ SANE_Word _tmp34_ = {0};
gint x = 0;
- SANE_Option_Descriptor* _tmp36_ = NULL;
- SANE_Word* _tmp37_ = NULL;
- gint _tmp37__length1 = 0;
- gint _tmp38_ = 0;
- SANE_Word _tmp39_ = {0};
+ SANE_Option_Descriptor* _tmp35_ = NULL;
+ SANE_Word* _tmp36_ = NULL;
+ gint _tmp36__length1 = 0;
+ gint _tmp37_ = 0;
+ SANE_Word _tmp38_ = {0};
gint d = 0;
- gint _tmp40_ = 0;
- SANE_Int _tmp41_ = {0};
+ gint _tmp39_ = 0;
+ SANE_Int _tmp40_ = {0};
+ gint _tmp41_ = 0;
gint _tmp42_ = 0;
gint _tmp43_ = 0;
gint _tmp44_ = 0;
- gint _tmp45_ = 0;
#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp30_ = _tmp29_;
+ if (!_tmp29_) {
+#line 5726 "scanner.c"
+ gint _tmp30_ = 0;
#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp30_) {
-#line 5752 "scanner.c"
- gint _tmp31_ = 0;
+ _tmp30_ = i;
#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp31_ = i;
-#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- i = _tmp31_ + 1;
-#line 5758 "scanner.c"
+ i = _tmp30_ + 1;
+#line 5732 "scanner.c"
}
#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp29_ = FALSE;
#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp32_ = i;
+ _tmp31_ = i;
#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp33_ = option;
+ _tmp32_ = option;
#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp34_ = _tmp33_->constraint.word_list;
+ _tmp33_ = _tmp32_->constraint.word_list;
#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp34__length1 = -1;
+ _tmp33__length1 = -1;
#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp35_ = _tmp34_[0];
+ _tmp34_ = _tmp33_[0];
#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!(((SANE_Word) _tmp32_) < _tmp35_)) {
+ if (!(((SANE_Word) _tmp31_) < _tmp34_)) {
#line 447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 5776 "scanner.c"
+#line 5750 "scanner.c"
}
#line 449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp36_ = option;
+ _tmp35_ = option;
#line 449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp37_ = _tmp36_->constraint.word_list;
+ _tmp36_ = _tmp35_->constraint.word_list;
#line 449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp37__length1 = -1;
+ _tmp36__length1 = -1;
#line 449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp38_ = i;
+ _tmp37_ = i;
#line 449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp39_ = _tmp37_[_tmp38_ + 1];
+ _tmp38_ = _tmp36_[_tmp37_ + 1];
#line 449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- x = (gint) _tmp39_;
+ x = (gint) _tmp38_;
#line 450 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp40_ = x;
+ _tmp39_ = x;
#line 450 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp41_ = v;
+ _tmp40_ = v;
#line 450 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- d = (gint) (_tmp40_ - _tmp41_);
+ d = (gint) (_tmp39_ - _tmp40_);
#line 451 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp42_ = d;
+ _tmp41_ = d;
#line 451 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp43_ = abs (_tmp42_);
+ _tmp42_ = abs (_tmp41_);
#line 451 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- d = _tmp43_;
+ d = _tmp42_;
#line 452 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp44_ = d;
+ _tmp43_ = d;
#line 452 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp45_ = distance;
+ _tmp44_ = distance;
#line 452 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp44_ < _tmp45_) {
-#line 5808 "scanner.c"
+ if (_tmp43_ < _tmp44_) {
+#line 5782 "scanner.c"
+ gint _tmp45_ = 0;
gint _tmp46_ = 0;
- gint _tmp47_ = 0;
#line 454 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp46_ = d;
+ _tmp45_ = d;
#line 454 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- distance = _tmp46_;
+ distance = _tmp45_;
#line 455 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp47_ = x;
+ _tmp46_ = x;
#line 455 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- nearest = _tmp47_;
-#line 5819 "scanner.c"
+ nearest = _tmp46_;
+#line 5793 "scanner.c"
}
}
}
}
#line 458 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp48_ = nearest;
+ _tmp47_ = nearest;
#line 458 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- v = (SANE_Int) _tmp48_;
-#line 5828 "scanner.c"
+ v = (SANE_Int) _tmp47_;
+#line 5802 "scanner.c"
}
}
#line 461 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp49_ = handle;
+ _tmp48_ = handle;
#line 461 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp50_ = option_index;
+ _tmp49_ = option_index;
#line 461 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp51_ = sane_control_option (_tmp49_, _tmp50_, SANE_ACTION_SET_VALUE, &v, NULL);
+ _tmp50_ = sane_control_option (_tmp48_, _tmp49_, SANE_ACTION_SET_VALUE, &v, NULL);
#line 461 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- status = _tmp51_;
+ status = _tmp50_;
#line 462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp52_ = option_index;
+ _tmp51_ = option_index;
#line 462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp53_ = value;
+ _tmp52_ = value;
#line 462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp54_ = sane_status_to_string (status);
+ _tmp53_ = sane_status_to_string (status);
#line 462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp55_ = _tmp54_;
+ _tmp54_ = _tmp53_;
#line 462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp56_ = v;
+ _tmp55_ = v;
#line 462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_debug ("scanner.vala:462: sane_control_option (%d, SANE_ACTION_SET_VALUE, %d) " \
-"-> (%s, %d)", (gint) _tmp52_, _tmp53_, _tmp55_, (gint) _tmp56_);
+"-> (%s, %d)", (gint) _tmp51_, _tmp52_, _tmp54_, (gint) _tmp55_);
#line 462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp55_);
+ _g_free0 (_tmp54_);
#line 463 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp57_ = v;
+ _tmp56_ = v;
#line 463 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _vala_result = (gint) _tmp57_;
+ _vala_result = (gint) _tmp56_;
#line 428 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_result_) {
#line 428 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*_result_ = _vala_result;
-#line 5861 "scanner.c"
+#line 5835 "scanner.c"
}
}
@@ -5875,18 +5849,18 @@ static void scanner_set_fixed_option (Scanner* self, SANE_Handle handle, SANE_Op
SANE_Value_Type _tmp2_ = 0;
SANE_Option_Descriptor* _tmp3_ = NULL;
SANE_Constraint_Type _tmp4_ = 0;
- gdouble _tmp43_ = 0.0;
- SANE_Fixed _tmp44_ = {0};
+ gdouble _tmp42_ = 0.0;
+ SANE_Fixed _tmp43_ = {0};
SANE_Status status = 0;
- SANE_Handle _tmp45_ = {0};
- SANE_Int _tmp46_ = {0};
- SANE_Status _tmp47_ = 0;
- SANE_Int _tmp48_ = {0};
- gdouble _tmp49_ = 0.0;
+ SANE_Handle _tmp44_ = {0};
+ SANE_Int _tmp45_ = {0};
+ SANE_Status _tmp46_ = 0;
+ SANE_Int _tmp47_ = {0};
+ gdouble _tmp48_ = 0.0;
+ gchar* _tmp49_ = NULL;
gchar* _tmp50_ = NULL;
- gchar* _tmp51_ = NULL;
+ gdouble _tmp51_ = 0.0;
gdouble _tmp52_ = 0.0;
- gdouble _tmp53_ = 0.0;
#line 466 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
#line 466 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -5907,7 +5881,7 @@ static void scanner_set_fixed_option (Scanner* self, SANE_Handle handle, SANE_Op
_tmp4_ = _tmp3_->constraint_type;
#line 473 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp4_ == SANE_CONSTRAINT_RANGE) {
-#line 5907 "scanner.c"
+#line 5881 "scanner.c"
gdouble min = 0.0;
SANE_Option_Descriptor* _tmp5_ = NULL;
SANE_Range* _tmp6_ = NULL;
@@ -5948,13 +5922,13 @@ static void scanner_set_fixed_option (Scanner* self, SANE_Handle handle, SANE_Op
_tmp14_ = min;
#line 478 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp13_ < _tmp14_) {
-#line 5948 "scanner.c"
+#line 5922 "scanner.c"
gdouble _tmp15_ = 0.0;
#line 479 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = min;
#line 479 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v = _tmp15_;
-#line 5954 "scanner.c"
+#line 5928 "scanner.c"
}
#line 480 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp16_ = v;
@@ -5962,13 +5936,13 @@ static void scanner_set_fixed_option (Scanner* self, SANE_Handle handle, SANE_Op
_tmp17_ = max;
#line 480 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp16_ > _tmp17_) {
-#line 5962 "scanner.c"
+#line 5936 "scanner.c"
gdouble _tmp18_ = 0.0;
#line 481 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = max;
#line 481 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
v = _tmp18_;
-#line 5968 "scanner.c"
+#line 5942 "scanner.c"
}
} else {
SANE_Option_Descriptor* _tmp19_ = NULL;
@@ -5979,168 +5953,165 @@ static void scanner_set_fixed_option (Scanner* self, SANE_Handle handle, SANE_Op
_tmp20_ = _tmp19_->constraint_type;
#line 483 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp20_ == SANE_CONSTRAINT_WORD_LIST) {
-#line 5979 "scanner.c"
+#line 5953 "scanner.c"
gdouble distance = 0.0;
gdouble _tmp21_ = 0.0;
gdouble nearest = 0.0;
- gdouble _tmp42_ = 0.0;
+ gdouble _tmp41_ = 0.0;
#line 485 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp21_ = DBL_MAX;
#line 485 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
distance = _tmp21_;
#line 485 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
nearest = 0.0;
-#line 5990 "scanner.c"
+#line 5964 "scanner.c"
{
gint i = 0;
#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
-#line 5995 "scanner.c"
+#line 5969 "scanner.c"
{
gboolean _tmp22_ = FALSE;
#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp22_ = TRUE;
#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
-#line 6002 "scanner.c"
- gboolean _tmp23_ = FALSE;
- gint _tmp25_ = 0;
- SANE_Option_Descriptor* _tmp26_ = NULL;
- SANE_Word* _tmp27_ = NULL;
- gint _tmp27__length1 = 0;
- SANE_Word _tmp28_ = {0};
+#line 5976 "scanner.c"
+ gint _tmp24_ = 0;
+ SANE_Option_Descriptor* _tmp25_ = NULL;
+ SANE_Word* _tmp26_ = NULL;
+ gint _tmp26__length1 = 0;
+ SANE_Word _tmp27_ = {0};
gdouble x = 0.0;
- SANE_Option_Descriptor* _tmp29_ = NULL;
- SANE_Word* _tmp30_ = NULL;
- gint _tmp30__length1 = 0;
- gint _tmp31_ = 0;
- SANE_Word _tmp32_ = {0};
+ SANE_Option_Descriptor* _tmp28_ = NULL;
+ SANE_Word* _tmp29_ = NULL;
+ gint _tmp29__length1 = 0;
+ gint _tmp30_ = 0;
+ SANE_Word _tmp31_ = {0};
+ gdouble _tmp32_ = 0.0;
gdouble _tmp33_ = 0.0;
gdouble _tmp34_ = 0.0;
gdouble _tmp35_ = 0.0;
gdouble _tmp36_ = 0.0;
- gdouble _tmp37_ = 0.0;
#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp23_ = _tmp22_;
-#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp23_) {
-#line 6024 "scanner.c"
- gint _tmp24_ = 0;
+ if (!_tmp22_) {
+#line 5995 "scanner.c"
+ gint _tmp23_ = 0;
#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp24_ = i;
+ _tmp23_ = i;
#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- i = _tmp24_ + 1;
-#line 6030 "scanner.c"
+ i = _tmp23_ + 1;
+#line 6001 "scanner.c"
}
#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp22_ = FALSE;
#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp25_ = i;
+ _tmp24_ = i;
#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp26_ = option;
+ _tmp25_ = option;
#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp27_ = _tmp26_->constraint.word_list;
+ _tmp26_ = _tmp25_->constraint.word_list;
#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp27__length1 = -1;
+ _tmp26__length1 = -1;
#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp28_ = _tmp27_[0];
+ _tmp27_ = _tmp26_[0];
#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!(((SANE_Word) _tmp25_) < _tmp28_)) {
+ if (!(((SANE_Word) _tmp24_) < _tmp27_)) {
#line 488 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 6048 "scanner.c"
+#line 6019 "scanner.c"
}
#line 490 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp29_ = option;
+ _tmp28_ = option;
#line 490 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp30_ = _tmp29_->constraint.word_list;
+ _tmp29_ = _tmp28_->constraint.word_list;
#line 490 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp30__length1 = -1;
+ _tmp29__length1 = -1;
#line 490 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp31_ = i;
+ _tmp30_ = i;
#line 490 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp32_ = _tmp30_[_tmp31_ + 1];
+ _tmp31_ = _tmp29_[_tmp30_ + 1];
#line 490 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp33_ = SANE_UNFIX ((SANE_Fixed) _tmp32_);
+ _tmp32_ = SANE_UNFIX ((SANE_Fixed) _tmp31_);
#line 490 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- x = _tmp33_;
+ x = _tmp32_;
#line 491 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp34_ = x;
+ _tmp33_ = x;
#line 491 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp35_ = v;
+ _tmp34_ = v;
#line 491 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp36_ = fabs (_tmp34_ - _tmp35_);
+ _tmp35_ = fabs (_tmp33_ - _tmp34_);
#line 491 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp37_ = distance;
+ _tmp36_ = distance;
#line 491 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp36_ < _tmp37_) {
-#line 6074 "scanner.c"
+ if (_tmp35_ < _tmp36_) {
+#line 6045 "scanner.c"
+ gdouble _tmp37_ = 0.0;
gdouble _tmp38_ = 0.0;
gdouble _tmp39_ = 0.0;
gdouble _tmp40_ = 0.0;
- gdouble _tmp41_ = 0.0;
#line 493 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp38_ = x;
+ _tmp37_ = x;
#line 493 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp39_ = v;
+ _tmp38_ = v;
#line 493 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp40_ = fabs (_tmp38_ - _tmp39_);
+ _tmp39_ = fabs (_tmp37_ - _tmp38_);
#line 493 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- distance = _tmp40_;
+ distance = _tmp39_;
#line 494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp41_ = x;
+ _tmp40_ = x;
#line 494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- nearest = _tmp41_;
-#line 6091 "scanner.c"
+ nearest = _tmp40_;
+#line 6062 "scanner.c"
}
}
}
}
#line 497 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp42_ = nearest;
+ _tmp41_ = nearest;
#line 497 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- v = _tmp42_;
-#line 6100 "scanner.c"
+ v = _tmp41_;
+#line 6071 "scanner.c"
}
}
#line 500 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp43_ = v;
+ _tmp42_ = v;
#line 500 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp44_ = SANE_FIX (_tmp43_);
+ _tmp43_ = SANE_FIX (_tmp42_);
#line 500 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- v_fixed = _tmp44_;
+ v_fixed = _tmp43_;
#line 501 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp45_ = handle;
+ _tmp44_ = handle;
#line 501 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp46_ = option_index;
+ _tmp45_ = option_index;
#line 501 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp47_ = sane_control_option (_tmp45_, _tmp46_, SANE_ACTION_SET_VALUE, &v_fixed, NULL);
+ _tmp46_ = sane_control_option (_tmp44_, _tmp45_, SANE_ACTION_SET_VALUE, &v_fixed, NULL);
#line 501 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- status = _tmp47_;
+ status = _tmp46_;
#line 502 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp48_ = option_index;
+ _tmp47_ = option_index;
#line 502 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp49_ = value;
+ _tmp48_ = value;
#line 502 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp50_ = sane_status_to_string (status);
+ _tmp49_ = sane_status_to_string (status);
#line 502 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp51_ = _tmp50_;
+ _tmp50_ = _tmp49_;
#line 502 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp52_ = SANE_UNFIX (v_fixed);
+ _tmp51_ = SANE_UNFIX (v_fixed);
#line 502 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_debug ("scanner.vala:502: sane_control_option (%d, SANE_ACTION_SET_VALUE, %f) " \
-"-> (%s, %f)", (gint) _tmp48_, _tmp49_, _tmp51_, _tmp52_);
+"-> (%s, %f)", (gint) _tmp47_, _tmp48_, _tmp50_, _tmp51_);
#line 502 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp51_);
+ _g_free0 (_tmp50_);
#line 504 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp53_ = SANE_UNFIX (v_fixed);
+ _tmp52_ = SANE_UNFIX (v_fixed);
#line 504 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _vala_result = _tmp53_;
+ _vala_result = _tmp52_;
#line 466 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_result_) {
#line 466 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*_result_ = _vala_result;
-#line 6139 "scanner.c"
+#line 6110 "scanner.c"
}
}
@@ -6159,7 +6130,7 @@ static void scanner_set_fixed_or_int_option (Scanner* self, SANE_Handle handle,
_tmp1_ = _tmp0_->type;
#line 509 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp1_ == SANE_TYPE_FIXED) {
-#line 6158 "scanner.c"
+#line 6129 "scanner.c"
SANE_Handle _tmp2_ = {0};
SANE_Option_Descriptor* _tmp3_ = NULL;
SANE_Int _tmp4_ = {0};
@@ -6177,7 +6148,7 @@ static void scanner_set_fixed_or_int_option (Scanner* self, SANE_Handle handle,
scanner_set_fixed_option (self, _tmp2_, _tmp3_, _tmp4_, _tmp5_, &_tmp6_);
#line 510 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_vala_result = _tmp6_;
-#line 6176 "scanner.c"
+#line 6147 "scanner.c"
} else {
SANE_Option_Descriptor* _tmp7_ = NULL;
SANE_Value_Type _tmp8_ = 0;
@@ -6187,7 +6158,7 @@ static void scanner_set_fixed_or_int_option (Scanner* self, SANE_Handle handle,
_tmp8_ = _tmp7_->type;
#line 511 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp8_ == SANE_TYPE_INT) {
-#line 6186 "scanner.c"
+#line 6157 "scanner.c"
gint r = 0;
SANE_Handle _tmp9_ = {0};
SANE_Option_Descriptor* _tmp10_ = NULL;
@@ -6214,20 +6185,20 @@ static void scanner_set_fixed_or_int_option (Scanner* self, SANE_Handle handle,
_tmp15_ = r;
#line 515 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_vala_result = (gdouble) _tmp15_;
-#line 6213 "scanner.c"
+#line 6184 "scanner.c"
} else {
#line 519 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_vala_result = 0.0;
#line 520 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_warning ("scanner.vala:520: Unable to set unsupported option type");
-#line 6219 "scanner.c"
+#line 6190 "scanner.c"
}
}
#line 507 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_result_) {
#line 507 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*_result_ = _vala_result;
-#line 6226 "scanner.c"
+#line 6197 "scanner.c"
}
}
@@ -6257,7 +6228,7 @@ static void scanner_set_option_to_max (Scanner* self, SANE_Handle handle, SANE_O
if (_tmp1_ != SANE_CONSTRAINT_RANGE) {
#line 527 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
-#line 6256 "scanner.c"
+#line 6227 "scanner.c"
}
#line 529 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = handle;
@@ -6284,7 +6255,7 @@ static void scanner_set_option_to_max (Scanner* self, SANE_Handle handle, SANE_O
"on.range.max) -> (%s)", (gint) _tmp7_, _tmp10_);
#line 530 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp10_);
-#line 6282 "scanner.c"
+#line 6253 "scanner.c"
}
@@ -6292,17 +6263,17 @@ static gchar string_get (const gchar* self, glong index) {
gchar result = '\0';
glong _tmp0_ = 0L;
gchar _tmp1_ = '\0';
-#line 965 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 996 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
g_return_val_if_fail (self != NULL, '\0');
-#line 966 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 997 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_tmp0_ = index;
-#line 966 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 997 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
_tmp1_ = ((gchar*) self)[_tmp0_];
-#line 966 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 997 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
result = _tmp1_;
-#line 966 "/usr/share/vala-0.22/vapi/glib-2.0.vapi"
+#line 997 "/usr/share/vala-0.24/vapi/glib-2.0.vapi"
return result;
-#line 6300 "scanner.c"
+#line 6271 "scanner.c"
}
@@ -6319,24 +6290,24 @@ static gboolean scanner_set_string_option (Scanner* self, SANE_Handle handle, SA
gint s_length1 = 0;
gint _s_size_ = 0;
gint i = 0;
- gchar* _tmp23_ = NULL;
- gint _tmp23__length1 = 0;
- gint _tmp24_ = 0;
- gchar _tmp25_ = '\0';
+ gchar* _tmp21_ = NULL;
+ gint _tmp21__length1 = 0;
+ gint _tmp22_ = 0;
+ gchar _tmp23_ = '\0';
SANE_Status status = 0;
- SANE_Handle _tmp26_ = {0};
- SANE_Int _tmp27_ = {0};
+ SANE_Handle _tmp24_ = {0};
+ SANE_Int _tmp25_ = {0};
+ gchar* _tmp26_ = NULL;
+ gint _tmp26__length1 = 0;
+ SANE_Status _tmp27_ = 0;
gchar* _tmp28_ = NULL;
gint _tmp28__length1 = 0;
- SANE_Status _tmp29_ = 0;
- gchar* _tmp30_ = NULL;
- gint _tmp30__length1 = 0;
- gchar* _tmp31_ = NULL;
- SANE_Int _tmp32_ = {0};
- const gchar* _tmp33_ = NULL;
- gchar* _tmp34_ = NULL;
- gchar* _tmp35_ = NULL;
- const gchar* _tmp36_ = NULL;
+ gchar* _tmp29_ = NULL;
+ SANE_Int _tmp30_ = {0};
+ const gchar* _tmp31_ = NULL;
+ gchar* _tmp32_ = NULL;
+ gchar* _tmp33_ = NULL;
+ const gchar* _tmp34_ = NULL;
#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (self != NULL, FALSE);
#line 533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -6369,141 +6340,135 @@ static gboolean scanner_set_string_option (Scanner* self, SANE_Handle handle, SA
_s_size_ = s_length1;
#line 540 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
-#line 6367 "scanner.c"
+#line 6338 "scanner.c"
{
gboolean _tmp6_ = FALSE;
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = TRUE;
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
-#line 6374 "scanner.c"
- gboolean _tmp7_ = FALSE;
- gboolean _tmp9_ = FALSE;
- gint _tmp10_ = 0;
- SANE_Option_Descriptor* _tmp11_ = NULL;
- SANE_Int _tmp12_ = {0};
- gboolean _tmp16_ = FALSE;
- gchar* _tmp17_ = NULL;
- gint _tmp17__length1 = 0;
+#line 6345 "scanner.c"
+ gboolean _tmp8_ = FALSE;
+ gint _tmp9_ = 0;
+ SANE_Option_Descriptor* _tmp10_ = NULL;
+ SANE_Int _tmp11_ = {0};
+ gchar* _tmp15_ = NULL;
+ gint _tmp15__length1 = 0;
+ gint _tmp16_ = 0;
+ const gchar* _tmp17_ = NULL;
gint _tmp18_ = 0;
- const gchar* _tmp19_ = NULL;
- gint _tmp20_ = 0;
- gchar _tmp21_ = '\0';
- gchar _tmp22_ = '\0';
+ gchar _tmp19_ = '\0';
+ gchar _tmp20_ = '\0';
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp7_ = _tmp6_;
+ if (!_tmp6_) {
+#line 6359 "scanner.c"
+ gint _tmp7_ = 0;
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp7_) {
-#line 6392 "scanner.c"
- gint _tmp8_ = 0;
+ _tmp7_ = i;
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp8_ = i;
-#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- i = _tmp8_ + 1;
-#line 6398 "scanner.c"
+ i = _tmp7_ + 1;
+#line 6365 "scanner.c"
}
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = FALSE;
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp10_ = i;
+ _tmp9_ = i;
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp11_ = option;
+ _tmp10_ = option;
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp12_ = _tmp11_->size;
+ _tmp11_ = _tmp10_->size;
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (((SANE_Int) _tmp10_) < (_tmp12_ - 1)) {
-#line 6410 "scanner.c"
- const gchar* _tmp13_ = NULL;
- gint _tmp14_ = 0;
- gchar _tmp15_ = '\0';
+ if (((SANE_Int) _tmp9_) < (_tmp11_ - 1)) {
+#line 6377 "scanner.c"
+ const gchar* _tmp12_ = NULL;
+ gint _tmp13_ = 0;
+ gchar _tmp14_ = '\0';
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp13_ = value;
+ _tmp12_ = value;
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp14_ = i;
+ _tmp13_ = i;
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp15_ = string_get (_tmp13_, (glong) _tmp14_);
+ _tmp14_ = string_get (_tmp12_, (glong) _tmp13_);
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp9_ = _tmp15_ != '\0';
-#line 6422 "scanner.c"
+ _tmp8_ = _tmp14_ != '\0';
+#line 6389 "scanner.c"
} else {
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp9_ = FALSE;
-#line 6426 "scanner.c"
+ _tmp8_ = FALSE;
+#line 6393 "scanner.c"
}
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp16_ = _tmp9_;
-#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp16_) {
+ if (!_tmp8_) {
#line 541 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 6434 "scanner.c"
+#line 6399 "scanner.c"
}
#line 542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp17_ = s;
+ _tmp15_ = s;
#line 542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp17__length1 = s_length1;
+ _tmp15__length1 = s_length1;
#line 542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp18_ = i;
+ _tmp16_ = i;
#line 542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp19_ = value;
+ _tmp17_ = value;
#line 542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp20_ = i;
+ _tmp18_ = i;
#line 542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp21_ = string_get (_tmp19_, (glong) _tmp20_);
+ _tmp19_ = string_get (_tmp17_, (glong) _tmp18_);
#line 542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp17_[_tmp18_] = _tmp21_;
+ _tmp15_[_tmp16_] = _tmp19_;
#line 542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp22_ = _tmp17_[_tmp18_];
-#line 6452 "scanner.c"
+ _tmp20_ = _tmp15_[_tmp16_];
+#line 6417 "scanner.c"
}
}
#line 543 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp23_ = s;
+ _tmp21_ = s;
#line 543 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp23__length1 = s_length1;
+ _tmp21__length1 = s_length1;
#line 543 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp24_ = i;
+ _tmp22_ = i;
#line 543 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp23_[_tmp24_] = '\0';
+ _tmp21_[_tmp22_] = '\0';
#line 543 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp25_ = _tmp23_[_tmp24_];
+ _tmp23_ = _tmp21_[_tmp22_];
#line 544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp26_ = handle;
+ _tmp24_ = handle;
#line 544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp27_ = option_index;
+ _tmp25_ = option_index;
#line 544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp28_ = s;
+ _tmp26_ = s;
#line 544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp28__length1 = s_length1;
+ _tmp26__length1 = s_length1;
#line 544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp29_ = sane_control_option (_tmp26_, _tmp27_, SANE_ACTION_SET_VALUE, _tmp28_, NULL);
+ _tmp27_ = sane_control_option (_tmp24_, _tmp25_, SANE_ACTION_SET_VALUE, _tmp26_, NULL);
#line 544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- status = _tmp29_;
+ status = _tmp27_;
#line 545 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp30_ = s;
+ _tmp28_ = s;
#line 545 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp30__length1 = s_length1;
+ _tmp28__length1 = s_length1;
#line 545 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp31_ = g_strdup ((const gchar*) _tmp30_);
+ _tmp29_ = g_strdup ((const gchar*) _tmp28_);
#line 545 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_vala_result);
#line 545 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _vala_result = _tmp31_;
+ _vala_result = _tmp29_;
#line 546 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp32_ = option_index;
+ _tmp30_ = option_index;
#line 546 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp33_ = value;
+ _tmp31_ = value;
#line 546 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp34_ = sane_status_to_string (status);
+ _tmp32_ = sane_status_to_string (status);
#line 546 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp35_ = _tmp34_;
+ _tmp33_ = _tmp32_;
#line 546 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp36_ = _vala_result;
+ _tmp34_ = _vala_result;
#line 546 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_debug ("scanner.vala:546: sane_control_option (%d, SANE_ACTION_SET_VALUE, \"%s" \
-"\") -> (%s, \"%s\")", (gint) _tmp32_, _tmp33_, _tmp35_, _tmp36_);
+"\") -> (%s, \"%s\")", (gint) _tmp30_, _tmp31_, _tmp33_, _tmp34_);
#line 546 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp35_);
+ _g_free0 (_tmp33_);
#line 548 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = status == SANE_STATUS_GOOD;
#line 548 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -6512,15 +6477,15 @@ static gboolean scanner_set_string_option (Scanner* self, SANE_Handle handle, SA
if (_result_) {
#line 548 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*_result_ = _vala_result;
-#line 6509 "scanner.c"
+#line 6474 "scanner.c"
} else {
#line 548 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_vala_result);
-#line 6513 "scanner.c"
+#line 6478 "scanner.c"
}
#line 548 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 6517 "scanner.c"
+#line 6482 "scanner.c"
}
@@ -6531,7 +6496,7 @@ static gboolean scanner_set_constrained_string_option (Scanner* self, SANE_Handl
SANE_Value_Type _tmp1_ = 0;
SANE_Option_Descriptor* _tmp2_ = NULL;
SANE_Constraint_Type _tmp3_ = 0;
- gchar* _tmp36_ = NULL;
+ gchar* _tmp34_ = NULL;
#line 551 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (self != NULL, FALSE);
#line 551 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -6548,221 +6513,215 @@ static gboolean scanner_set_constrained_string_option (Scanner* self, SANE_Handl
_tmp3_ = _tmp2_->constraint_type;
#line 554 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (_tmp3_ == SANE_CONSTRAINT_STRING_LIST, FALSE);
-#line 6545 "scanner.c"
+#line 6510 "scanner.c"
{
gint i = 0;
#line 556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
-#line 6550 "scanner.c"
+#line 6515 "scanner.c"
{
gboolean _tmp4_ = FALSE;
#line 556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = TRUE;
#line 556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
-#line 6557 "scanner.c"
- gboolean _tmp5_ = FALSE;
- gchar** _tmp7_ = NULL;
- gint _tmp7__length1 = 0;
- gint _tmp8_ = 0;
- const gchar* _tmp9_ = NULL;
+#line 6522 "scanner.c"
+ gchar** _tmp6_ = NULL;
+ gint _tmp6__length1 = 0;
+ gint _tmp7_ = 0;
+ const gchar* _tmp8_ = NULL;
gint j = 0;
- SANE_Option_Descriptor* _tmp24_ = NULL;
- gchar** _tmp25_ = NULL;
- gint _tmp25__length1 = 0;
- gint _tmp26_ = 0;
- const gchar* _tmp27_ = NULL;
-#line 556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp5_ = _tmp4_;
+ SANE_Option_Descriptor* _tmp22_ = NULL;
+ gchar** _tmp23_ = NULL;
+ gint _tmp23__length1 = 0;
+ gint _tmp24_ = 0;
+ const gchar* _tmp25_ = NULL;
#line 556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp5_) {
-#line 6573 "scanner.c"
- gint _tmp6_ = 0;
+ if (!_tmp4_) {
+#line 6535 "scanner.c"
+ gint _tmp5_ = 0;
#line 556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp6_ = i;
+ _tmp5_ = i;
#line 556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- i = _tmp6_ + 1;
-#line 6579 "scanner.c"
+ i = _tmp5_ + 1;
+#line 6541 "scanner.c"
}
#line 556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = FALSE;
#line 556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp7_ = values;
+ _tmp6_ = values;
#line 556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp7__length1 = values_length1;
+ _tmp6__length1 = values_length1;
#line 556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp8_ = i;
+ _tmp7_ = i;
#line 556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp9_ = _tmp7_[_tmp8_];
+ _tmp8_ = _tmp6_[_tmp7_];
#line 556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!(_tmp9_ != NULL)) {
+ if (!(_tmp8_ != NULL)) {
#line 556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 6595 "scanner.c"
+#line 6557 "scanner.c"
}
#line 558 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
j = 0;
-#line 6599 "scanner.c"
+#line 6561 "scanner.c"
{
- gboolean _tmp10_ = FALSE;
+ gboolean _tmp9_ = FALSE;
#line 559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp10_ = TRUE;
+ _tmp9_ = TRUE;
#line 559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
-#line 6606 "scanner.c"
- gboolean _tmp11_ = FALSE;
- SANE_Option_Descriptor* _tmp13_ = NULL;
- gchar** _tmp14_ = NULL;
- gint _tmp14__length1 = 0;
- gint _tmp15_ = 0;
- const gchar* _tmp16_ = NULL;
- gchar** _tmp17_ = NULL;
- gint _tmp17__length1 = 0;
- gint _tmp18_ = 0;
- const gchar* _tmp19_ = NULL;
- SANE_Option_Descriptor* _tmp20_ = NULL;
- gchar** _tmp21_ = NULL;
- gint _tmp21__length1 = 0;
- gint _tmp22_ = 0;
- const gchar* _tmp23_ = NULL;
-#line 559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp11_ = _tmp10_;
+#line 6568 "scanner.c"
+ SANE_Option_Descriptor* _tmp11_ = NULL;
+ gchar** _tmp12_ = NULL;
+ gint _tmp12__length1 = 0;
+ gint _tmp13_ = 0;
+ const gchar* _tmp14_ = NULL;
+ gchar** _tmp15_ = NULL;
+ gint _tmp15__length1 = 0;
+ gint _tmp16_ = 0;
+ const gchar* _tmp17_ = NULL;
+ SANE_Option_Descriptor* _tmp18_ = NULL;
+ gchar** _tmp19_ = NULL;
+ gint _tmp19__length1 = 0;
+ gint _tmp20_ = 0;
+ const gchar* _tmp21_ = NULL;
#line 559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp11_) {
-#line 6626 "scanner.c"
- gint _tmp12_ = 0;
+ if (!_tmp9_) {
+#line 6585 "scanner.c"
+ gint _tmp10_ = 0;
#line 559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp12_ = j;
+ _tmp10_ = j;
#line 559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- j = _tmp12_ + 1;
-#line 6632 "scanner.c"
+ j = _tmp10_ + 1;
+#line 6591 "scanner.c"
}
#line 559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp10_ = FALSE;
+ _tmp9_ = FALSE;
#line 559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp13_ = option;
+ _tmp11_ = option;
#line 559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp14_ = _tmp13_->constraint.string_list;
+ _tmp12_ = _tmp11_->constraint.string_list;
#line 559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp14__length1 = -1;
+ _tmp12__length1 = -1;
#line 559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp15_ = j;
+ _tmp13_ = j;
#line 559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp16_ = _tmp14_[_tmp15_];
+ _tmp14_ = _tmp12_[_tmp13_];
#line 559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!(_tmp16_ != NULL)) {
+ if (!(_tmp14_ != NULL)) {
#line 559 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 6650 "scanner.c"
+#line 6609 "scanner.c"
}
#line 561 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp17_ = values;
+ _tmp15_ = values;
#line 561 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp17__length1 = values_length1;
+ _tmp15__length1 = values_length1;
#line 561 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp18_ = i;
+ _tmp16_ = i;
#line 561 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp19_ = _tmp17_[_tmp18_];
+ _tmp17_ = _tmp15_[_tmp16_];
#line 561 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp20_ = option;
+ _tmp18_ = option;
#line 561 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp21_ = _tmp20_->constraint.string_list;
+ _tmp19_ = _tmp18_->constraint.string_list;
#line 561 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp21__length1 = -1;
+ _tmp19__length1 = -1;
#line 561 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp22_ = j;
+ _tmp20_ = j;
#line 561 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp23_ = _tmp21_[_tmp22_];
+ _tmp21_ = _tmp19_[_tmp20_];
#line 561 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (g_strcmp0 (_tmp19_, _tmp23_) == 0) {
+ if (g_strcmp0 (_tmp17_, _tmp21_) == 0) {
#line 562 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 6674 "scanner.c"
+#line 6633 "scanner.c"
}
}
}
#line 565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp24_ = option;
+ _tmp22_ = option;
#line 565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp25_ = _tmp24_->constraint.string_list;
+ _tmp23_ = _tmp22_->constraint.string_list;
#line 565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp25__length1 = -1;
+ _tmp23__length1 = -1;
#line 565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp26_ = j;
+ _tmp24_ = j;
#line 565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp27_ = _tmp25_[_tmp26_];
+ _tmp25_ = _tmp23_[_tmp24_];
#line 565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp27_ != NULL) {
-#line 6690 "scanner.c"
- SANE_Handle _tmp28_ = {0};
- SANE_Option_Descriptor* _tmp29_ = NULL;
- SANE_Int _tmp30_ = {0};
- gchar** _tmp31_ = NULL;
- gint _tmp31__length1 = 0;
- gint _tmp32_ = 0;
- const gchar* _tmp33_ = NULL;
- gchar* _tmp34_ = NULL;
- gboolean _tmp35_ = FALSE;
+ if (_tmp25_ != NULL) {
+#line 6649 "scanner.c"
+ SANE_Handle _tmp26_ = {0};
+ SANE_Option_Descriptor* _tmp27_ = NULL;
+ SANE_Int _tmp28_ = {0};
+ gchar** _tmp29_ = NULL;
+ gint _tmp29__length1 = 0;
+ gint _tmp30_ = 0;
+ const gchar* _tmp31_ = NULL;
+ gchar* _tmp32_ = NULL;
+ gboolean _tmp33_ = FALSE;
#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp28_ = handle;
+ _tmp26_ = handle;
#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp29_ = option;
+ _tmp27_ = option;
#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp30_ = option_index;
+ _tmp28_ = option_index;
#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp31_ = values;
+ _tmp29_ = values;
#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp31__length1 = values_length1;
+ _tmp29__length1 = values_length1;
#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp32_ = i;
+ _tmp30_ = i;
#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp33_ = _tmp31_[_tmp32_];
+ _tmp31_ = _tmp29_[_tmp30_];
#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp35_ = scanner_set_string_option (self, _tmp28_, _tmp29_, _tmp30_, _tmp33_, &_tmp34_);
+ _tmp33_ = scanner_set_string_option (self, _tmp26_, _tmp27_, _tmp28_, _tmp31_, &_tmp32_);
#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_vala_result);
#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _vala_result = _tmp34_;
+ _vala_result = _tmp32_;
#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- result = _tmp35_;
+ result = _tmp33_;
#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_result_) {
#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*_result_ = _vala_result;
-#line 6726 "scanner.c"
+#line 6685 "scanner.c"
} else {
#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_vala_result);
-#line 6730 "scanner.c"
+#line 6689 "scanner.c"
}
#line 566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 6734 "scanner.c"
+#line 6693 "scanner.c"
}
}
}
}
#line 569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp36_ = g_strdup ("");
+ _tmp34_ = g_strdup ("");
#line 569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_vala_result);
#line 569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _vala_result = _tmp36_;
+ _vala_result = _tmp34_;
#line 570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = FALSE;
#line 570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_result_) {
#line 570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*_result_ = _vala_result;
-#line 6751 "scanner.c"
+#line 6710 "scanner.c"
} else {
#line 570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_vala_result);
-#line 6755 "scanner.c"
+#line 6714 "scanner.c"
}
#line 570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 6759 "scanner.c"
+#line 6718 "scanner.c"
}
@@ -6787,12 +6746,12 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
SANE_Option_Descriptor* _tmp64_ = NULL;
SANE_Constraint_Type _tmp65_ = 0;
SANE_Int cap = {0};
- SANE_Option_Descriptor* _tmp151_ = NULL;
- SANE_Int _tmp152_ = {0};
- SANE_Int _tmp153_ = {0};
+ SANE_Option_Descriptor* _tmp149_ = NULL;
+ SANE_Int _tmp150_ = {0};
+ SANE_Int _tmp151_ = {0};
+ const gchar* _tmp212_ = NULL;
+ SANE_Option_Descriptor* _tmp213_ = NULL;
const gchar* _tmp214_ = NULL;
- SANE_Option_Descriptor* _tmp215_ = NULL;
- const gchar* _tmp216_ = NULL;
#line 573 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
#line 573 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -6809,7 +6768,7 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
_tmp3_ = _tmp2_->name;
#line 577 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_strcmp0 (_tmp3_, "") != 0) {
-#line 6806 "scanner.c"
+#line 6765 "scanner.c"
const gchar* _tmp4_ = NULL;
SANE_Option_Descriptor* _tmp5_ = NULL;
const gchar* _tmp6_ = NULL;
@@ -6834,7 +6793,7 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp9_;
#line 578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp8_);
-#line 6831 "scanner.c"
+#line 6790 "scanner.c"
}
#line 580 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = option;
@@ -6842,7 +6801,7 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
_tmp11_ = _tmp10_->title;
#line 580 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (g_strcmp0 (_tmp11_, "") != 0) {
-#line 6839 "scanner.c"
+#line 6798 "scanner.c"
const gchar* _tmp12_ = NULL;
SANE_Option_Descriptor* _tmp13_ = NULL;
const gchar* _tmp14_ = NULL;
@@ -6867,7 +6826,7 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp17_;
#line 581 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp16_);
-#line 6864 "scanner.c"
+#line 6823 "scanner.c"
}
#line 583 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = option;
@@ -6877,7 +6836,7 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
switch (_tmp19_) {
#line 583 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_TYPE_BOOL:
-#line 6874 "scanner.c"
+#line 6833 "scanner.c"
{
const gchar* _tmp20_ = NULL;
gchar* _tmp21_ = NULL;
@@ -6891,11 +6850,11 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp21_;
#line 587 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 6888 "scanner.c"
+#line 6847 "scanner.c"
}
#line 583 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_TYPE_INT:
-#line 6892 "scanner.c"
+#line 6851 "scanner.c"
{
const gchar* _tmp22_ = NULL;
gchar* _tmp23_ = NULL;
@@ -6909,11 +6868,11 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp23_;
#line 590 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 6906 "scanner.c"
+#line 6865 "scanner.c"
}
#line 583 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_TYPE_FIXED:
-#line 6910 "scanner.c"
+#line 6869 "scanner.c"
{
const gchar* _tmp24_ = NULL;
gchar* _tmp25_ = NULL;
@@ -6927,11 +6886,11 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp25_;
#line 593 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 6924 "scanner.c"
+#line 6883 "scanner.c"
}
#line 583 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_TYPE_STRING:
-#line 6928 "scanner.c"
+#line 6887 "scanner.c"
{
const gchar* _tmp26_ = NULL;
gchar* _tmp27_ = NULL;
@@ -6945,11 +6904,11 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp27_;
#line 596 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 6942 "scanner.c"
+#line 6901 "scanner.c"
}
#line 583 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_TYPE_BUTTON:
-#line 6946 "scanner.c"
+#line 6905 "scanner.c"
{
const gchar* _tmp28_ = NULL;
gchar* _tmp29_ = NULL;
@@ -6963,11 +6922,11 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp29_;
#line 599 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 6960 "scanner.c"
+#line 6919 "scanner.c"
}
#line 583 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_TYPE_GROUP:
-#line 6964 "scanner.c"
+#line 6923 "scanner.c"
{
const gchar* _tmp30_ = NULL;
gchar* _tmp31_ = NULL;
@@ -6981,7 +6940,7 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp31_;
#line 602 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 6978 "scanner.c"
+#line 6937 "scanner.c"
}
default:
{
@@ -7011,7 +6970,7 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
_g_free0 (_tmp36_);
#line 605 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 7008 "scanner.c"
+#line 6967 "scanner.c"
}
}
#line 608 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -7040,15 +6999,15 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
switch (_tmp45_) {
#line 610 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_UNIT_NONE:
-#line 7037 "scanner.c"
+#line 6996 "scanner.c"
{
#line 613 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 7041 "scanner.c"
+#line 7000 "scanner.c"
}
#line 610 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_UNIT_PIXEL:
-#line 7045 "scanner.c"
+#line 7004 "scanner.c"
{
const gchar* _tmp46_ = NULL;
gchar* _tmp47_ = NULL;
@@ -7062,11 +7021,11 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp47_;
#line 616 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 7059 "scanner.c"
+#line 7018 "scanner.c"
}
#line 610 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_UNIT_BIT:
-#line 7063 "scanner.c"
+#line 7022 "scanner.c"
{
const gchar* _tmp48_ = NULL;
gchar* _tmp49_ = NULL;
@@ -7080,11 +7039,11 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp49_;
#line 619 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 7077 "scanner.c"
+#line 7036 "scanner.c"
}
#line 610 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_UNIT_MM:
-#line 7081 "scanner.c"
+#line 7040 "scanner.c"
{
const gchar* _tmp50_ = NULL;
gchar* _tmp51_ = NULL;
@@ -7098,11 +7057,11 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp51_;
#line 622 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 7095 "scanner.c"
+#line 7054 "scanner.c"
}
#line 610 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_UNIT_DPI:
-#line 7099 "scanner.c"
+#line 7058 "scanner.c"
{
const gchar* _tmp52_ = NULL;
gchar* _tmp53_ = NULL;
@@ -7116,11 +7075,11 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp53_;
#line 625 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 7113 "scanner.c"
+#line 7072 "scanner.c"
}
#line 610 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_UNIT_PERCENT:
-#line 7117 "scanner.c"
+#line 7076 "scanner.c"
{
const gchar* _tmp54_ = NULL;
gchar* _tmp55_ = NULL;
@@ -7134,11 +7093,11 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp55_;
#line 628 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 7131 "scanner.c"
+#line 7090 "scanner.c"
}
#line 610 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_UNIT_MICROSECOND:
-#line 7135 "scanner.c"
+#line 7094 "scanner.c"
{
const gchar* _tmp56_ = NULL;
gchar* _tmp57_ = NULL;
@@ -7152,7 +7111,7 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp57_;
#line 631 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 7149 "scanner.c"
+#line 7108 "scanner.c"
}
default:
{
@@ -7182,7 +7141,7 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
_g_free0 (_tmp62_);
#line 634 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 7179 "scanner.c"
+#line 7138 "scanner.c"
}
}
#line 637 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -7193,7 +7152,7 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
switch (_tmp65_) {
#line 637 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_CONSTRAINT_RANGE:
-#line 7190 "scanner.c"
+#line 7149 "scanner.c"
{
SANE_Option_Descriptor* _tmp66_ = NULL;
SANE_Value_Type _tmp67_ = 0;
@@ -7203,7 +7162,7 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
_tmp67_ = _tmp66_->type;
#line 640 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp67_ == SANE_TYPE_FIXED) {
-#line 7200 "scanner.c"
+#line 7159 "scanner.c"
const gchar* _tmp68_ = NULL;
SANE_Option_Descriptor* _tmp69_ = NULL;
SANE_Range* _tmp70_ = NULL;
@@ -7255,7 +7214,7 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp82_;
#line 641 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp81_);
-#line 7252 "scanner.c"
+#line 7211 "scanner.c"
} else {
const gchar* _tmp83_ = NULL;
SANE_Option_Descriptor* _tmp84_ = NULL;
@@ -7302,20 +7261,20 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
s = _tmp95_;
#line 643 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (_tmp94_);
-#line 7299 "scanner.c"
+#line 7258 "scanner.c"
}
#line 644 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 7303 "scanner.c"
+#line 7262 "scanner.c"
}
#line 637 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_CONSTRAINT_WORD_LIST:
-#line 7307 "scanner.c"
+#line 7266 "scanner.c"
{
const gchar* _tmp96_ = NULL;
gchar* _tmp97_ = NULL;
- const gchar* _tmp127_ = NULL;
- gchar* _tmp128_ = NULL;
+ const gchar* _tmp126_ = NULL;
+ gchar* _tmp127_ = NULL;
#line 646 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp96_ = s;
#line 646 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -7324,689 +7283,683 @@ static void scanner_log_option (Scanner* self, SANE_Int index, SANE_Option_Descr
_g_free0 (s);
#line 646 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
s = _tmp97_;
-#line 7321 "scanner.c"
+#line 7280 "scanner.c"
{
gint i = 0;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
-#line 7326 "scanner.c"
+#line 7285 "scanner.c"
{
gboolean _tmp98_ = FALSE;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp98_ = TRUE;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
-#line 7333 "scanner.c"
- gboolean _tmp99_ = FALSE;
- gint _tmp101_ = 0;
- SANE_Option_Descriptor* _tmp102_ = NULL;
- SANE_Word* _tmp103_ = NULL;
- gint _tmp103__length1 = 0;
- SANE_Word _tmp104_ = {0};
- gint _tmp105_ = 0;
- SANE_Option_Descriptor* _tmp108_ = NULL;
- SANE_Value_Type _tmp109_ = 0;
-#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp99_ = _tmp98_;
+#line 7292 "scanner.c"
+ gint _tmp100_ = 0;
+ SANE_Option_Descriptor* _tmp101_ = NULL;
+ SANE_Word* _tmp102_ = NULL;
+ gint _tmp102__length1 = 0;
+ SANE_Word _tmp103_ = {0};
+ gint _tmp104_ = 0;
+ SANE_Option_Descriptor* _tmp107_ = NULL;
+ SANE_Value_Type _tmp108_ = 0;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp99_) {
-#line 7347 "scanner.c"
- gint _tmp100_ = 0;
+ if (!_tmp98_) {
+#line 7303 "scanner.c"
+ gint _tmp99_ = 0;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp100_ = i;
+ _tmp99_ = i;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- i = _tmp100_ + 1;
-#line 7353 "scanner.c"
+ i = _tmp99_ + 1;
+#line 7309 "scanner.c"
}
#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp98_ = FALSE;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp101_ = i;
+ _tmp100_ = i;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp102_ = option;
+ _tmp101_ = option;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp103_ = _tmp102_->constraint.word_list;
+ _tmp102_ = _tmp101_->constraint.word_list;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp103__length1 = -1;
+ _tmp102__length1 = -1;
#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp104_ = _tmp103_[0];
+ _tmp103_ = _tmp102_[0];
#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!(((SANE_Word) _tmp101_) < _tmp104_)) {
+ if (!(((SANE_Word) _tmp100_) < _tmp103_)) {
#line 647 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 7371 "scanner.c"
+#line 7327 "scanner.c"
}
#line 649 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp105_ = i;
+ _tmp104_ = i;
#line 649 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp105_ != 0) {
-#line 7377 "scanner.c"
- const gchar* _tmp106_ = NULL;
- gchar* _tmp107_ = NULL;
+ if (_tmp104_ != 0) {
+#line 7333 "scanner.c"
+ const gchar* _tmp105_ = NULL;
+ gchar* _tmp106_ = NULL;
#line 650 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp106_ = s;
+ _tmp105_ = s;
#line 650 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp107_ = g_strconcat (_tmp106_, ", ", NULL);
+ _tmp106_ = g_strconcat (_tmp105_, ", ", NULL);
#line 650 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 650 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp107_;
-#line 7388 "scanner.c"
+ s = _tmp106_;
+#line 7344 "scanner.c"
}
#line 651 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp108_ = option;
+ _tmp107_ = option;
#line 651 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp109_ = _tmp108_->type;
+ _tmp108_ = _tmp107_->type;
#line 651 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp109_ == SANE_TYPE_INT) {
-#line 7396 "scanner.c"
- const gchar* _tmp110_ = NULL;
- SANE_Option_Descriptor* _tmp111_ = NULL;
- SANE_Word* _tmp112_ = NULL;
- gint _tmp112__length1 = 0;
- gint _tmp113_ = 0;
- SANE_Word _tmp114_ = {0};
+ if (_tmp108_ == SANE_TYPE_INT) {
+#line 7352 "scanner.c"
+ const gchar* _tmp109_ = NULL;
+ SANE_Option_Descriptor* _tmp110_ = NULL;
+ SANE_Word* _tmp111_ = NULL;
+ gint _tmp111__length1 = 0;
+ gint _tmp112_ = 0;
+ SANE_Word _tmp113_ = {0};
+ gchar* _tmp114_ = NULL;
gchar* _tmp115_ = NULL;
gchar* _tmp116_ = NULL;
- gchar* _tmp117_ = NULL;
#line 652 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp110_ = s;
+ _tmp109_ = s;
#line 652 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp111_ = option;
+ _tmp110_ = option;
#line 652 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp112_ = _tmp111_->constraint.word_list;
+ _tmp111_ = _tmp110_->constraint.word_list;
#line 652 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp112__length1 = -1;
+ _tmp111__length1 = -1;
#line 652 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp113_ = i;
+ _tmp112_ = i;
#line 652 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp114_ = _tmp112_[_tmp113_ + 1];
+ _tmp113_ = _tmp111_[_tmp112_ + 1];
#line 652 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp115_ = g_strdup_printf ("%d", (gint) _tmp114_);
+ _tmp114_ = g_strdup_printf ("%d", (gint) _tmp113_);
#line 652 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp116_ = _tmp115_;
+ _tmp115_ = _tmp114_;
#line 652 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp117_ = g_strconcat (_tmp110_, _tmp116_, NULL);
+ _tmp116_ = g_strconcat (_tmp109_, _tmp115_, NULL);
#line 652 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 652 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp117_;
+ s = _tmp116_;
#line 652 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp116_);
-#line 7430 "scanner.c"
+ _g_free0 (_tmp115_);
+#line 7386 "scanner.c"
} else {
- const gchar* _tmp118_ = NULL;
- SANE_Option_Descriptor* _tmp119_ = NULL;
- SANE_Word* _tmp120_ = NULL;
- gint _tmp120__length1 = 0;
- gint _tmp121_ = 0;
- SANE_Word _tmp122_ = {0};
- gdouble _tmp123_ = 0.0;
+ const gchar* _tmp117_ = NULL;
+ SANE_Option_Descriptor* _tmp118_ = NULL;
+ SANE_Word* _tmp119_ = NULL;
+ gint _tmp119__length1 = 0;
+ gint _tmp120_ = 0;
+ SANE_Word _tmp121_ = {0};
+ gdouble _tmp122_ = 0.0;
+ gchar* _tmp123_ = NULL;
gchar* _tmp124_ = NULL;
gchar* _tmp125_ = NULL;
- gchar* _tmp126_ = NULL;
#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp118_ = s;
+ _tmp117_ = s;
#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp119_ = option;
+ _tmp118_ = option;
#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp120_ = _tmp119_->constraint.word_list;
+ _tmp119_ = _tmp118_->constraint.word_list;
#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp120__length1 = -1;
+ _tmp119__length1 = -1;
#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp121_ = i;
+ _tmp120_ = i;
#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp122_ = _tmp120_[_tmp121_ + 1];
+ _tmp121_ = _tmp119_[_tmp120_ + 1];
#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp123_ = SANE_UNFIX ((SANE_Fixed) _tmp122_);
+ _tmp122_ = SANE_UNFIX ((SANE_Fixed) _tmp121_);
#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp124_ = g_strdup_printf ("%f", _tmp123_);
+ _tmp123_ = g_strdup_printf ("%f", _tmp122_);
#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp125_ = _tmp124_;
+ _tmp124_ = _tmp123_;
#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp126_ = g_strconcat (_tmp118_, _tmp125_, NULL);
+ _tmp125_ = g_strconcat (_tmp117_, _tmp124_, NULL);
#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp126_;
+ s = _tmp125_;
#line 654 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp125_);
-#line 7468 "scanner.c"
+ _g_free0 (_tmp124_);
+#line 7424 "scanner.c"
}
}
}
}
#line 656 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp127_ = s;
+ _tmp126_ = s;
#line 656 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp128_ = g_strconcat (_tmp127_, "]", NULL);
+ _tmp127_ = g_strconcat (_tmp126_, "]", NULL);
#line 656 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 656 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp128_;
+ s = _tmp127_;
#line 657 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 7483 "scanner.c"
+#line 7439 "scanner.c"
}
#line 637 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_CONSTRAINT_STRING_LIST:
-#line 7487 "scanner.c"
+#line 7443 "scanner.c"
{
- const gchar* _tmp129_ = NULL;
- gchar* _tmp130_ = NULL;
- const gchar* _tmp149_ = NULL;
- gchar* _tmp150_ = NULL;
+ const gchar* _tmp128_ = NULL;
+ gchar* _tmp129_ = NULL;
+ const gchar* _tmp147_ = NULL;
+ gchar* _tmp148_ = NULL;
#line 659 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp129_ = s;
+ _tmp128_ = s;
#line 659 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp130_ = g_strconcat (_tmp129_, " values=[", NULL);
+ _tmp129_ = g_strconcat (_tmp128_, " values=[", NULL);
#line 659 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 659 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp130_;
-#line 7501 "scanner.c"
+ s = _tmp129_;
+#line 7457 "scanner.c"
{
gint i = 0;
#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
-#line 7506 "scanner.c"
+#line 7462 "scanner.c"
{
- gboolean _tmp131_ = FALSE;
+ gboolean _tmp130_ = FALSE;
#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp131_ = TRUE;
+ _tmp130_ = TRUE;
#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
-#line 7513 "scanner.c"
- gboolean _tmp132_ = FALSE;
- SANE_Option_Descriptor* _tmp134_ = NULL;
- gchar** _tmp135_ = NULL;
- gint _tmp135__length1 = 0;
+#line 7469 "scanner.c"
+ SANE_Option_Descriptor* _tmp132_ = NULL;
+ gchar** _tmp133_ = NULL;
+ gint _tmp133__length1 = 0;
+ gint _tmp134_ = 0;
+ const gchar* _tmp135_ = NULL;
gint _tmp136_ = 0;
- const gchar* _tmp137_ = NULL;
- gint _tmp138_ = 0;
- const gchar* _tmp141_ = NULL;
- SANE_Option_Descriptor* _tmp142_ = NULL;
- gchar** _tmp143_ = NULL;
- gint _tmp143__length1 = 0;
- gint _tmp144_ = 0;
- const gchar* _tmp145_ = NULL;
+ const gchar* _tmp139_ = NULL;
+ SANE_Option_Descriptor* _tmp140_ = NULL;
+ gchar** _tmp141_ = NULL;
+ gint _tmp141__length1 = 0;
+ gint _tmp142_ = 0;
+ const gchar* _tmp143_ = NULL;
+ gchar* _tmp144_ = NULL;
+ gchar* _tmp145_ = NULL;
gchar* _tmp146_ = NULL;
- gchar* _tmp147_ = NULL;
- gchar* _tmp148_ = NULL;
#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp132_ = _tmp131_;
-#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp132_) {
-#line 7534 "scanner.c"
- gint _tmp133_ = 0;
+ if (!_tmp130_) {
+#line 7487 "scanner.c"
+ gint _tmp131_ = 0;
#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp133_ = i;
+ _tmp131_ = i;
#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- i = _tmp133_ + 1;
-#line 7540 "scanner.c"
+ i = _tmp131_ + 1;
+#line 7493 "scanner.c"
}
#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp131_ = FALSE;
+ _tmp130_ = FALSE;
#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp134_ = option;
+ _tmp132_ = option;
#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp135_ = _tmp134_->constraint.string_list;
+ _tmp133_ = _tmp132_->constraint.string_list;
#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp135__length1 = -1;
+ _tmp133__length1 = -1;
#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp136_ = i;
+ _tmp134_ = i;
#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp137_ = _tmp135_[_tmp136_];
+ _tmp135_ = _tmp133_[_tmp134_];
#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!(_tmp137_ != NULL)) {
+ if (!(_tmp135_ != NULL)) {
#line 660 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 7558 "scanner.c"
+#line 7511 "scanner.c"
}
#line 662 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp138_ = i;
+ _tmp136_ = i;
#line 662 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp138_ != 0) {
-#line 7564 "scanner.c"
- const gchar* _tmp139_ = NULL;
- gchar* _tmp140_ = NULL;
+ if (_tmp136_ != 0) {
+#line 7517 "scanner.c"
+ const gchar* _tmp137_ = NULL;
+ gchar* _tmp138_ = NULL;
#line 663 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp139_ = s;
+ _tmp137_ = s;
#line 663 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp140_ = g_strconcat (_tmp139_, ", ", NULL);
+ _tmp138_ = g_strconcat (_tmp137_, ", ", NULL);
#line 663 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 663 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp140_;
-#line 7575 "scanner.c"
+ s = _tmp138_;
+#line 7528 "scanner.c"
}
#line 664 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp141_ = s;
+ _tmp139_ = s;
#line 664 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp142_ = option;
+ _tmp140_ = option;
#line 664 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp143_ = _tmp142_->constraint.string_list;
+ _tmp141_ = _tmp140_->constraint.string_list;
#line 664 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp143__length1 = -1;
+ _tmp141__length1 = -1;
#line 664 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp144_ = i;
+ _tmp142_ = i;
#line 664 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp145_ = _tmp143_[_tmp144_];
+ _tmp143_ = _tmp141_[_tmp142_];
#line 664 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp146_ = g_strdup_printf ("\"%s\"", _tmp145_);
+ _tmp144_ = g_strdup_printf ("\"%s\"", _tmp143_);
#line 664 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp147_ = _tmp146_;
+ _tmp145_ = _tmp144_;
#line 664 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp148_ = g_strconcat (_tmp141_, _tmp147_, NULL);
+ _tmp146_ = g_strconcat (_tmp139_, _tmp145_, NULL);
#line 664 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 664 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp148_;
+ s = _tmp146_;
#line 664 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp147_);
-#line 7601 "scanner.c"
+ _g_free0 (_tmp145_);
+#line 7554 "scanner.c"
}
}
}
#line 666 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp149_ = s;
+ _tmp147_ = s;
#line 666 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp150_ = g_strconcat (_tmp149_, "]", NULL);
+ _tmp148_ = g_strconcat (_tmp147_, "]", NULL);
#line 666 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 666 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp150_;
+ s = _tmp148_;
#line 667 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 7615 "scanner.c"
+#line 7568 "scanner.c"
}
default:
{
#line 669 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 7621 "scanner.c"
+#line 7574 "scanner.c"
}
}
#line 672 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp151_ = option;
+ _tmp149_ = option;
#line 672 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp152_ = _tmp151_->cap;
+ _tmp150_ = _tmp149_->cap;
#line 672 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- cap = _tmp152_;
+ cap = _tmp150_;
#line 673 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp153_ = cap;
+ _tmp151_ = cap;
#line 673 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp153_ != ((SANE_Int) 0)) {
-#line 7634 "scanner.c"
- const gchar* _tmp154_ = NULL;
- gchar* _tmp155_ = NULL;
- SANE_Int _tmp156_ = {0};
- SANE_Int _tmp163_ = {0};
- SANE_Int _tmp170_ = {0};
- SANE_Int _tmp177_ = {0};
- SANE_Int _tmp184_ = {0};
- SANE_Int _tmp191_ = {0};
- SANE_Int _tmp198_ = {0};
- SANE_Int _tmp205_ = {0};
+ if (_tmp151_ != ((SANE_Int) 0)) {
+#line 7587 "scanner.c"
+ const gchar* _tmp152_ = NULL;
+ gchar* _tmp153_ = NULL;
+ SANE_Int _tmp154_ = {0};
+ SANE_Int _tmp161_ = {0};
+ SANE_Int _tmp168_ = {0};
+ SANE_Int _tmp175_ = {0};
+ SANE_Int _tmp182_ = {0};
+ SANE_Int _tmp189_ = {0};
+ SANE_Int _tmp196_ = {0};
+ SANE_Int _tmp203_ = {0};
#line 675 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp154_ = s;
+ _tmp152_ = s;
#line 675 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp155_ = g_strconcat (_tmp154_, " cap=", NULL);
+ _tmp153_ = g_strconcat (_tmp152_, " cap=", NULL);
#line 675 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 675 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp155_;
+ s = _tmp153_;
#line 676 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp156_ = cap;
+ _tmp154_ = cap;
#line 676 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if ((_tmp156_ & SANE_CAP_SOFT_SELECT) != ((SANE_Int) 0)) {
-#line 7657 "scanner.c"
- const gchar* _tmp157_ = NULL;
- const gchar* _tmp160_ = NULL;
- gchar* _tmp161_ = NULL;
- SANE_Int _tmp162_ = {0};
+ if ((_tmp154_ & SANE_CAP_SOFT_SELECT) != ((SANE_Int) 0)) {
+#line 7610 "scanner.c"
+ const gchar* _tmp155_ = NULL;
+ const gchar* _tmp158_ = NULL;
+ gchar* _tmp159_ = NULL;
+ SANE_Int _tmp160_ = {0};
#line 678 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp157_ = s;
+ _tmp155_ = s;
#line 678 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (g_strcmp0 (_tmp157_, "") != 0) {
-#line 7666 "scanner.c"
- const gchar* _tmp158_ = NULL;
- gchar* _tmp159_ = NULL;
+ if (g_strcmp0 (_tmp155_, "") != 0) {
+#line 7619 "scanner.c"
+ const gchar* _tmp156_ = NULL;
+ gchar* _tmp157_ = NULL;
#line 679 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp158_ = s;
+ _tmp156_ = s;
#line 679 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp159_ = g_strconcat (_tmp158_, ",", NULL);
+ _tmp157_ = g_strconcat (_tmp156_, ",", NULL);
#line 679 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 679 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp159_;
-#line 7677 "scanner.c"
+ s = _tmp157_;
+#line 7630 "scanner.c"
}
#line 680 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp160_ = s;
+ _tmp158_ = s;
#line 680 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp161_ = g_strconcat (_tmp160_, "soft-select", NULL);
+ _tmp159_ = g_strconcat (_tmp158_, "soft-select", NULL);
#line 680 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 680 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp161_;
+ s = _tmp159_;
#line 681 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp162_ = cap;
+ _tmp160_ = cap;
#line 681 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- cap = _tmp162_ & (~SANE_CAP_SOFT_SELECT);
-#line 7691 "scanner.c"
+ cap = _tmp160_ & (~SANE_CAP_SOFT_SELECT);
+#line 7644 "scanner.c"
}
#line 683 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp163_ = cap;
+ _tmp161_ = cap;
#line 683 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if ((_tmp163_ & SANE_CAP_HARD_SELECT) != ((SANE_Int) 0)) {
-#line 7697 "scanner.c"
- const gchar* _tmp164_ = NULL;
- const gchar* _tmp167_ = NULL;
- gchar* _tmp168_ = NULL;
- SANE_Int _tmp169_ = {0};
+ if ((_tmp161_ & SANE_CAP_HARD_SELECT) != ((SANE_Int) 0)) {
+#line 7650 "scanner.c"
+ const gchar* _tmp162_ = NULL;
+ const gchar* _tmp165_ = NULL;
+ gchar* _tmp166_ = NULL;
+ SANE_Int _tmp167_ = {0};
#line 685 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp164_ = s;
+ _tmp162_ = s;
#line 685 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (g_strcmp0 (_tmp164_, "") != 0) {
-#line 7706 "scanner.c"
- const gchar* _tmp165_ = NULL;
- gchar* _tmp166_ = NULL;
+ if (g_strcmp0 (_tmp162_, "") != 0) {
+#line 7659 "scanner.c"
+ const gchar* _tmp163_ = NULL;
+ gchar* _tmp164_ = NULL;
#line 686 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp165_ = s;
+ _tmp163_ = s;
#line 686 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp166_ = g_strconcat (_tmp165_, ",", NULL);
+ _tmp164_ = g_strconcat (_tmp163_, ",", NULL);
#line 686 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 686 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp166_;
-#line 7717 "scanner.c"
+ s = _tmp164_;
+#line 7670 "scanner.c"
}
#line 687 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp167_ = s;
+ _tmp165_ = s;
#line 687 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp168_ = g_strconcat (_tmp167_, "hard-select", NULL);
+ _tmp166_ = g_strconcat (_tmp165_, "hard-select", NULL);
#line 687 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 687 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp168_;
+ s = _tmp166_;
#line 688 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp169_ = cap;
+ _tmp167_ = cap;
#line 688 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- cap = _tmp169_ & (~SANE_CAP_HARD_SELECT);
-#line 7731 "scanner.c"
+ cap = _tmp167_ & (~SANE_CAP_HARD_SELECT);
+#line 7684 "scanner.c"
}
#line 690 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp170_ = cap;
+ _tmp168_ = cap;
#line 690 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if ((_tmp170_ & SANE_CAP_SOFT_DETECT) != ((SANE_Int) 0)) {
-#line 7737 "scanner.c"
- const gchar* _tmp171_ = NULL;
- const gchar* _tmp174_ = NULL;
- gchar* _tmp175_ = NULL;
- SANE_Int _tmp176_ = {0};
+ if ((_tmp168_ & SANE_CAP_SOFT_DETECT) != ((SANE_Int) 0)) {
+#line 7690 "scanner.c"
+ const gchar* _tmp169_ = NULL;
+ const gchar* _tmp172_ = NULL;
+ gchar* _tmp173_ = NULL;
+ SANE_Int _tmp174_ = {0};
#line 692 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp171_ = s;
+ _tmp169_ = s;
#line 692 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (g_strcmp0 (_tmp171_, "") != 0) {
-#line 7746 "scanner.c"
- const gchar* _tmp172_ = NULL;
- gchar* _tmp173_ = NULL;
+ if (g_strcmp0 (_tmp169_, "") != 0) {
+#line 7699 "scanner.c"
+ const gchar* _tmp170_ = NULL;
+ gchar* _tmp171_ = NULL;
#line 693 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp172_ = s;
+ _tmp170_ = s;
#line 693 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp173_ = g_strconcat (_tmp172_, ",", NULL);
+ _tmp171_ = g_strconcat (_tmp170_, ",", NULL);
#line 693 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 693 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp173_;
-#line 7757 "scanner.c"
+ s = _tmp171_;
+#line 7710 "scanner.c"
}
#line 694 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp174_ = s;
+ _tmp172_ = s;
#line 694 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp175_ = g_strconcat (_tmp174_, "soft-detect", NULL);
+ _tmp173_ = g_strconcat (_tmp172_, "soft-detect", NULL);
#line 694 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 694 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp175_;
+ s = _tmp173_;
#line 695 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp176_ = cap;
+ _tmp174_ = cap;
#line 695 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- cap = _tmp176_ & (~SANE_CAP_SOFT_DETECT);
-#line 7771 "scanner.c"
+ cap = _tmp174_ & (~SANE_CAP_SOFT_DETECT);
+#line 7724 "scanner.c"
}
#line 697 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp177_ = cap;
+ _tmp175_ = cap;
#line 697 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if ((_tmp177_ & SANE_CAP_EMULATED) != ((SANE_Int) 0)) {
-#line 7777 "scanner.c"
- const gchar* _tmp178_ = NULL;
- const gchar* _tmp181_ = NULL;
- gchar* _tmp182_ = NULL;
- SANE_Int _tmp183_ = {0};
+ if ((_tmp175_ & SANE_CAP_EMULATED) != ((SANE_Int) 0)) {
+#line 7730 "scanner.c"
+ const gchar* _tmp176_ = NULL;
+ const gchar* _tmp179_ = NULL;
+ gchar* _tmp180_ = NULL;
+ SANE_Int _tmp181_ = {0};
#line 699 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp178_ = s;
+ _tmp176_ = s;
#line 699 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (g_strcmp0 (_tmp178_, "") != 0) {
-#line 7786 "scanner.c"
- const gchar* _tmp179_ = NULL;
- gchar* _tmp180_ = NULL;
+ if (g_strcmp0 (_tmp176_, "") != 0) {
+#line 7739 "scanner.c"
+ const gchar* _tmp177_ = NULL;
+ gchar* _tmp178_ = NULL;
#line 700 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp179_ = s;
+ _tmp177_ = s;
#line 700 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp180_ = g_strconcat (_tmp179_, ",", NULL);
+ _tmp178_ = g_strconcat (_tmp177_, ",", NULL);
#line 700 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 700 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp180_;
-#line 7797 "scanner.c"
+ s = _tmp178_;
+#line 7750 "scanner.c"
}
#line 701 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp181_ = s;
+ _tmp179_ = s;
#line 701 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp182_ = g_strconcat (_tmp181_, "emulated", NULL);
+ _tmp180_ = g_strconcat (_tmp179_, "emulated", NULL);
#line 701 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 701 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp182_;
+ s = _tmp180_;
#line 702 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp183_ = cap;
+ _tmp181_ = cap;
#line 702 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- cap = _tmp183_ & (~SANE_CAP_EMULATED);
-#line 7811 "scanner.c"
+ cap = _tmp181_ & (~SANE_CAP_EMULATED);
+#line 7764 "scanner.c"
}
#line 704 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp184_ = cap;
+ _tmp182_ = cap;
#line 704 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if ((_tmp184_ & SANE_CAP_AUTOMATIC) != ((SANE_Int) 0)) {
-#line 7817 "scanner.c"
- const gchar* _tmp185_ = NULL;
- const gchar* _tmp188_ = NULL;
- gchar* _tmp189_ = NULL;
- SANE_Int _tmp190_ = {0};
+ if ((_tmp182_ & SANE_CAP_AUTOMATIC) != ((SANE_Int) 0)) {
+#line 7770 "scanner.c"
+ const gchar* _tmp183_ = NULL;
+ const gchar* _tmp186_ = NULL;
+ gchar* _tmp187_ = NULL;
+ SANE_Int _tmp188_ = {0};
#line 706 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp185_ = s;
+ _tmp183_ = s;
#line 706 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (g_strcmp0 (_tmp185_, "") != 0) {
-#line 7826 "scanner.c"
- const gchar* _tmp186_ = NULL;
- gchar* _tmp187_ = NULL;
+ if (g_strcmp0 (_tmp183_, "") != 0) {
+#line 7779 "scanner.c"
+ const gchar* _tmp184_ = NULL;
+ gchar* _tmp185_ = NULL;
#line 707 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp186_ = s;
+ _tmp184_ = s;
#line 707 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp187_ = g_strconcat (_tmp186_, ",", NULL);
+ _tmp185_ = g_strconcat (_tmp184_, ",", NULL);
#line 707 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 707 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp187_;
-#line 7837 "scanner.c"
+ s = _tmp185_;
+#line 7790 "scanner.c"
}
#line 708 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp188_ = s;
+ _tmp186_ = s;
#line 708 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp189_ = g_strconcat (_tmp188_, "automatic", NULL);
+ _tmp187_ = g_strconcat (_tmp186_, "automatic", NULL);
#line 708 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 708 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp189_;
+ s = _tmp187_;
#line 709 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp190_ = cap;
+ _tmp188_ = cap;
#line 709 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- cap = _tmp190_ & (~SANE_CAP_AUTOMATIC);
-#line 7851 "scanner.c"
+ cap = _tmp188_ & (~SANE_CAP_AUTOMATIC);
+#line 7804 "scanner.c"
}
#line 711 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp191_ = cap;
+ _tmp189_ = cap;
#line 711 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if ((_tmp191_ & SANE_CAP_INACTIVE) != ((SANE_Int) 0)) {
-#line 7857 "scanner.c"
- const gchar* _tmp192_ = NULL;
- const gchar* _tmp195_ = NULL;
- gchar* _tmp196_ = NULL;
- SANE_Int _tmp197_ = {0};
+ if ((_tmp189_ & SANE_CAP_INACTIVE) != ((SANE_Int) 0)) {
+#line 7810 "scanner.c"
+ const gchar* _tmp190_ = NULL;
+ const gchar* _tmp193_ = NULL;
+ gchar* _tmp194_ = NULL;
+ SANE_Int _tmp195_ = {0};
#line 713 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp192_ = s;
+ _tmp190_ = s;
#line 713 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (g_strcmp0 (_tmp192_, "") != 0) {
-#line 7866 "scanner.c"
- const gchar* _tmp193_ = NULL;
- gchar* _tmp194_ = NULL;
+ if (g_strcmp0 (_tmp190_, "") != 0) {
+#line 7819 "scanner.c"
+ const gchar* _tmp191_ = NULL;
+ gchar* _tmp192_ = NULL;
#line 714 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp193_ = s;
+ _tmp191_ = s;
#line 714 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp194_ = g_strconcat (_tmp193_, ",", NULL);
+ _tmp192_ = g_strconcat (_tmp191_, ",", NULL);
#line 714 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 714 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp194_;
-#line 7877 "scanner.c"
+ s = _tmp192_;
+#line 7830 "scanner.c"
}
#line 715 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp195_ = s;
+ _tmp193_ = s;
#line 715 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp196_ = g_strconcat (_tmp195_, "inactive", NULL);
+ _tmp194_ = g_strconcat (_tmp193_, "inactive", NULL);
#line 715 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 715 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp196_;
+ s = _tmp194_;
#line 716 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp197_ = cap;
+ _tmp195_ = cap;
#line 716 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- cap = _tmp197_ & (~SANE_CAP_INACTIVE);
-#line 7891 "scanner.c"
+ cap = _tmp195_ & (~SANE_CAP_INACTIVE);
+#line 7844 "scanner.c"
}
#line 718 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp198_ = cap;
+ _tmp196_ = cap;
#line 718 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if ((_tmp198_ & SANE_CAP_ADVANCED) != ((SANE_Int) 0)) {
-#line 7897 "scanner.c"
- const gchar* _tmp199_ = NULL;
- const gchar* _tmp202_ = NULL;
- gchar* _tmp203_ = NULL;
- SANE_Int _tmp204_ = {0};
+ if ((_tmp196_ & SANE_CAP_ADVANCED) != ((SANE_Int) 0)) {
+#line 7850 "scanner.c"
+ const gchar* _tmp197_ = NULL;
+ const gchar* _tmp200_ = NULL;
+ gchar* _tmp201_ = NULL;
+ SANE_Int _tmp202_ = {0};
#line 720 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp199_ = s;
+ _tmp197_ = s;
#line 720 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (g_strcmp0 (_tmp199_, "") != 0) {
-#line 7906 "scanner.c"
- const gchar* _tmp200_ = NULL;
- gchar* _tmp201_ = NULL;
+ if (g_strcmp0 (_tmp197_, "") != 0) {
+#line 7859 "scanner.c"
+ const gchar* _tmp198_ = NULL;
+ gchar* _tmp199_ = NULL;
#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp200_ = s;
+ _tmp198_ = s;
#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp201_ = g_strconcat (_tmp200_, ",", NULL);
+ _tmp199_ = g_strconcat (_tmp198_, ",", NULL);
#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 721 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp201_;
-#line 7917 "scanner.c"
+ s = _tmp199_;
+#line 7870 "scanner.c"
}
#line 722 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp202_ = s;
+ _tmp200_ = s;
#line 722 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp203_ = g_strconcat (_tmp202_, "advanced", NULL);
+ _tmp201_ = g_strconcat (_tmp200_, "advanced", NULL);
#line 722 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 722 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp203_;
+ s = _tmp201_;
#line 723 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp204_ = cap;
+ _tmp202_ = cap;
#line 723 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- cap = _tmp204_ & (~SANE_CAP_ADVANCED);
-#line 7931 "scanner.c"
+ cap = _tmp202_ & (~SANE_CAP_ADVANCED);
+#line 7884 "scanner.c"
}
#line 726 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp205_ = cap;
+ _tmp203_ = cap;
#line 726 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp205_ != ((SANE_Int) 0)) {
-#line 7937 "scanner.c"
- const gchar* _tmp206_ = NULL;
- const gchar* _tmp209_ = NULL;
- SANE_Int _tmp210_ = {0};
+ if (_tmp203_ != ((SANE_Int) 0)) {
+#line 7890 "scanner.c"
+ const gchar* _tmp204_ = NULL;
+ const gchar* _tmp207_ = NULL;
+ SANE_Int _tmp208_ = {0};
+ gchar* _tmp209_ = NULL;
+ gchar* _tmp210_ = NULL;
gchar* _tmp211_ = NULL;
- gchar* _tmp212_ = NULL;
- gchar* _tmp213_ = NULL;
#line 728 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp206_ = s;
+ _tmp204_ = s;
#line 728 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (g_strcmp0 (_tmp206_, "") != 0) {
-#line 7948 "scanner.c"
- const gchar* _tmp207_ = NULL;
- gchar* _tmp208_ = NULL;
+ if (g_strcmp0 (_tmp204_, "") != 0) {
+#line 7901 "scanner.c"
+ const gchar* _tmp205_ = NULL;
+ gchar* _tmp206_ = NULL;
#line 729 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp207_ = s;
+ _tmp205_ = s;
#line 729 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp208_ = g_strconcat (_tmp207_, ",", NULL);
+ _tmp206_ = g_strconcat (_tmp205_, ",", NULL);
#line 729 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 729 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp208_;
-#line 7959 "scanner.c"
+ s = _tmp206_;
+#line 7912 "scanner.c"
}
#line 730 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp209_ = s;
+ _tmp207_ = s;
#line 730 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp210_ = cap;
+ _tmp208_ = cap;
#line 730 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp211_ = g_strdup_printf ("%x", (guint) ((gint) _tmp210_));
+ _tmp209_ = g_strdup_printf ("%x", (guint) ((gint) _tmp208_));
#line 730 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp212_ = _tmp211_;
+ _tmp210_ = _tmp209_;
#line 730 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp213_ = g_strconcat (_tmp209_, _tmp212_, NULL);
+ _tmp211_ = g_strconcat (_tmp207_, _tmp210_, NULL);
#line 730 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
#line 730 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- s = _tmp213_;
+ s = _tmp211_;
#line 730 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp212_);
-#line 7977 "scanner.c"
+ _g_free0 (_tmp210_);
+#line 7930 "scanner.c"
}
}
#line 734 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp214_ = s;
+ _tmp212_ = s;
#line 734 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- g_debug ("scanner.vala:734: %s", _tmp214_);
+ g_debug ("scanner.vala:734: %s", _tmp212_);
#line 736 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp215_ = option;
+ _tmp213_ = option;
#line 736 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp216_ = _tmp215_->desc;
+ _tmp214_ = _tmp213_->desc;
#line 736 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp216_ != NULL) {
-#line 7990 "scanner.c"
- SANE_Option_Descriptor* _tmp217_ = NULL;
- const gchar* _tmp218_ = NULL;
+ if (_tmp214_ != NULL) {
+#line 7943 "scanner.c"
+ SANE_Option_Descriptor* _tmp215_ = NULL;
+ const gchar* _tmp216_ = NULL;
#line 737 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp217_ = option;
+ _tmp215_ = option;
#line 737 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp218_ = _tmp217_->desc;
+ _tmp216_ = _tmp215_->desc;
#line 737 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- g_debug ("scanner.vala:737: Description: %s", _tmp218_);
-#line 7999 "scanner.c"
+ g_debug ("scanner.vala:737: Description: %s", _tmp216_);
+#line 7952 "scanner.c"
}
#line 573 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (s);
-#line 8003 "scanner.c"
+#line 7956 "scanner.c"
}
@@ -8041,100 +7994,94 @@ static void scanner_authorization_cb (const gchar* resource, gchar* username, in
_tmp6_ = g_async_queue_pop (_tmp5_);
#line 744 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
credentials = (Credentials*) _tmp6_;
-#line 8038 "scanner.c"
+#line 7991 "scanner.c"
{
gint i = 0;
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
-#line 8043 "scanner.c"
+#line 7996 "scanner.c"
{
gboolean _tmp7_ = FALSE;
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = TRUE;
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
-#line 8050 "scanner.c"
- gboolean _tmp8_ = FALSE;
- gboolean _tmp10_ = FALSE;
- Credentials* _tmp11_ = NULL;
- const gchar* _tmp12_ = NULL;
- gint _tmp13_ = 0;
- gchar _tmp14_ = '\0';
- gboolean _tmp17_ = FALSE;
- gchar* _tmp18_ = NULL;
- gint _tmp18__length1 = 0;
- gint _tmp19_ = 0;
- Credentials* _tmp20_ = NULL;
- const gchar* _tmp21_ = NULL;
- gint _tmp22_ = 0;
- gchar _tmp23_ = '\0';
- gchar _tmp24_ = '\0';
+#line 8003 "scanner.c"
+ gboolean _tmp9_ = FALSE;
+ Credentials* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ gint _tmp12_ = 0;
+ gchar _tmp13_ = '\0';
+ gchar* _tmp16_ = NULL;
+ gint _tmp16__length1 = 0;
+ gint _tmp17_ = 0;
+ Credentials* _tmp18_ = NULL;
+ const gchar* _tmp19_ = NULL;
+ gint _tmp20_ = 0;
+ gchar _tmp21_ = '\0';
+ gchar _tmp22_ = '\0';
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp8_ = _tmp7_;
+ if (!_tmp7_) {
+#line 8019 "scanner.c"
+ gint _tmp8_ = 0;
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp8_) {
-#line 8070 "scanner.c"
- gint _tmp9_ = 0;
-#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp9_ = i;
+ _tmp8_ = i;
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- i = _tmp9_ + 1;
-#line 8076 "scanner.c"
+ i = _tmp8_ + 1;
+#line 8025 "scanner.c"
}
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp7_ = FALSE;
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp11_ = credentials;
+ _tmp10_ = credentials;
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp12_ = _tmp11_->username;
+ _tmp11_ = _tmp10_->username;
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp13_ = i;
+ _tmp12_ = i;
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp14_ = string_get (_tmp12_, (glong) _tmp13_);
+ _tmp13_ = string_get (_tmp11_, (glong) _tmp12_);
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp14_ != '\0') {
-#line 8090 "scanner.c"
+ if (_tmp13_ != '\0') {
+#line 8039 "scanner.c"
+ gint _tmp14_ = 0;
gint _tmp15_ = 0;
- gint _tmp16_ = 0;
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp15_ = i;
+ _tmp14_ = i;
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp16_ = SANE_MAX_USERNAME_LEN;
+ _tmp15_ = SANE_MAX_USERNAME_LEN;
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp10_ = _tmp15_ < _tmp16_;
-#line 8099 "scanner.c"
+ _tmp9_ = _tmp14_ < _tmp15_;
+#line 8048 "scanner.c"
} else {
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp10_ = FALSE;
-#line 8103 "scanner.c"
+ _tmp9_ = FALSE;
+#line 8052 "scanner.c"
}
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp17_ = _tmp10_;
-#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp17_) {
+ if (!_tmp9_) {
#line 745 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 8111 "scanner.c"
+#line 8058 "scanner.c"
}
#line 746 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp18_ = username;
+ _tmp16_ = username;
#line 746 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp18__length1 = username_length1;
+ _tmp16__length1 = username_length1;
#line 746 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp19_ = i;
+ _tmp17_ = i;
#line 746 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp20_ = credentials;
+ _tmp18_ = credentials;
#line 746 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp21_ = _tmp20_->username;
+ _tmp19_ = _tmp18_->username;
#line 746 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp22_ = i;
+ _tmp20_ = i;
#line 746 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp23_ = string_get (_tmp21_, (glong) _tmp22_);
+ _tmp21_ = string_get (_tmp19_, (glong) _tmp20_);
#line 746 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp18_[_tmp19_] = _tmp23_;
+ _tmp16_[_tmp17_] = _tmp21_;
#line 746 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp24_ = _tmp18_[_tmp19_];
-#line 8131 "scanner.c"
+ _tmp22_ = _tmp16_[_tmp17_];
+#line 8078 "scanner.c"
}
}
}
@@ -8142,108 +8089,102 @@ static void scanner_authorization_cb (const gchar* resource, gchar* username, in
gint i = 0;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
-#line 8139 "scanner.c"
+#line 8086 "scanner.c"
{
- gboolean _tmp25_ = FALSE;
+ gboolean _tmp23_ = FALSE;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp25_ = TRUE;
+ _tmp23_ = TRUE;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
-#line 8146 "scanner.c"
- gboolean _tmp26_ = FALSE;
- gboolean _tmp28_ = FALSE;
- Credentials* _tmp29_ = NULL;
- const gchar* _tmp30_ = NULL;
- gint _tmp31_ = 0;
- gchar _tmp32_ = '\0';
- gboolean _tmp35_ = FALSE;
- gchar* _tmp36_ = NULL;
- gint _tmp36__length1 = 0;
- gint _tmp37_ = 0;
- Credentials* _tmp38_ = NULL;
- const gchar* _tmp39_ = NULL;
- gint _tmp40_ = 0;
- gchar _tmp41_ = '\0';
- gchar _tmp42_ = '\0';
-#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp26_ = _tmp25_;
+#line 8093 "scanner.c"
+ gboolean _tmp25_ = FALSE;
+ Credentials* _tmp26_ = NULL;
+ const gchar* _tmp27_ = NULL;
+ gint _tmp28_ = 0;
+ gchar _tmp29_ = '\0';
+ gchar* _tmp32_ = NULL;
+ gint _tmp32__length1 = 0;
+ gint _tmp33_ = 0;
+ Credentials* _tmp34_ = NULL;
+ const gchar* _tmp35_ = NULL;
+ gint _tmp36_ = 0;
+ gchar _tmp37_ = '\0';
+ gchar _tmp38_ = '\0';
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp26_) {
-#line 8166 "scanner.c"
- gint _tmp27_ = 0;
+ if (!_tmp23_) {
+#line 8109 "scanner.c"
+ gint _tmp24_ = 0;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp27_ = i;
+ _tmp24_ = i;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- i = _tmp27_ + 1;
-#line 8172 "scanner.c"
+ i = _tmp24_ + 1;
+#line 8115 "scanner.c"
}
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp25_ = FALSE;
+ _tmp23_ = FALSE;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp29_ = credentials;
+ _tmp26_ = credentials;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp30_ = _tmp29_->password;
+ _tmp27_ = _tmp26_->password;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp31_ = i;
+ _tmp28_ = i;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp32_ = string_get (_tmp30_, (glong) _tmp31_);
+ _tmp29_ = string_get (_tmp27_, (glong) _tmp28_);
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp32_ != '\0') {
-#line 8186 "scanner.c"
- gint _tmp33_ = 0;
- gint _tmp34_ = 0;
+ if (_tmp29_ != '\0') {
+#line 8129 "scanner.c"
+ gint _tmp30_ = 0;
+ gint _tmp31_ = 0;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp33_ = i;
+ _tmp30_ = i;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp34_ = SANE_MAX_USERNAME_LEN;
+ _tmp31_ = SANE_MAX_USERNAME_LEN;
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp28_ = _tmp33_ < _tmp34_;
-#line 8195 "scanner.c"
+ _tmp25_ = _tmp30_ < _tmp31_;
+#line 8138 "scanner.c"
} else {
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp28_ = FALSE;
-#line 8199 "scanner.c"
+ _tmp25_ = FALSE;
+#line 8142 "scanner.c"
}
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp35_ = _tmp28_;
-#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp35_) {
+ if (!_tmp25_) {
#line 747 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 8207 "scanner.c"
+#line 8148 "scanner.c"
}
#line 748 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp36_ = password;
+ _tmp32_ = password;
#line 748 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp36__length1 = password_length1;
+ _tmp32__length1 = password_length1;
#line 748 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp37_ = i;
+ _tmp33_ = i;
#line 748 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp38_ = credentials;
+ _tmp34_ = credentials;
#line 748 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp39_ = _tmp38_->password;
+ _tmp35_ = _tmp34_->password;
#line 748 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp40_ = i;
+ _tmp36_ = i;
#line 748 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp41_ = string_get (_tmp39_, (glong) _tmp40_);
+ _tmp37_ = string_get (_tmp35_, (glong) _tmp36_);
#line 748 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp36_[_tmp37_] = _tmp41_;
+ _tmp32_[_tmp33_] = _tmp37_;
#line 748 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp42_ = _tmp36_[_tmp37_];
-#line 8227 "scanner.c"
+ _tmp38_ = _tmp32_[_tmp33_];
+#line 8168 "scanner.c"
}
}
}
#line 740 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_credentials_unref0 (credentials);
-#line 8233 "scanner.c"
+#line 8174 "scanner.c"
}
static gpointer _credentials_ref0 (gpointer self) {
#line 756 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self ? credentials_ref (self) : NULL;
-#line 8240 "scanner.c"
+#line 8181 "scanner.c"
}
@@ -8290,7 +8231,7 @@ void scanner_authorize (Scanner* self, const gchar* username, const gchar* passw
g_async_queue_push (_tmp5_, _tmp6_);
#line 751 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_credentials_unref0 (credentials);
-#line 8287 "scanner.c"
+#line 8228 "scanner.c"
}
@@ -8302,7 +8243,7 @@ static void scanner_close_device (Scanner* self) {
_tmp0_ = self->priv->have_handle;
#line 761 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp0_) {
-#line 8299 "scanner.c"
+#line 8240 "scanner.c"
SANE_Handle _tmp1_ = {0};
SANE_Handle _tmp2_ = {0};
#line 763 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -8323,7 +8264,7 @@ static void scanner_close_device (Scanner* self) {
_g_hash_table_unref0 (self->priv->options);
#line 769 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->options = NULL;
-#line 8320 "scanner.c"
+#line 8261 "scanner.c"
}
#line 772 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->buffer = (g_free (self->priv->buffer), NULL);
@@ -8339,7 +8280,7 @@ static void scanner_close_device (Scanner* self) {
self->priv->job_queue = NULL;
#line 775 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_set_scanning (self, FALSE);
-#line 8336 "scanner.c"
+#line 8277 "scanner.c"
}
@@ -8368,21 +8309,21 @@ static void scanner_fail_scan (Scanner* self, gint error_code, const gchar* erro
scanner_notify (self, (Notify*) _tmp3_);
#line 782 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_notify_unref0 (_tmp3_);
-#line 8365 "scanner.c"
+#line 8306 "scanner.c"
}
static gpointer _request_ref0 (gpointer self) {
#line 807 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self ? request_ref (self) : NULL;
-#line 8372 "scanner.c"
+#line 8313 "scanner.c"
}
static gpointer _scan_job_ref0 (gpointer self) {
#line 808 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return self ? scan_job_ref (self) : NULL;
-#line 8379 "scanner.c"
+#line 8320 "scanner.c"
}
@@ -8390,7 +8331,6 @@ static gboolean scanner_handle_requests (Scanner* self) {
gboolean result = FALSE;
gboolean _tmp0_ = FALSE;
ScanState _tmp1_ = 0;
- gboolean _tmp3_ = FALSE;
gint request_count = 0;
#line 785 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_val_if_fail (self != NULL, FALSE);
@@ -8398,89 +8338,81 @@ static gboolean scanner_handle_requests (Scanner* self) {
_tmp1_ = self->priv->state;
#line 788 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp1_ == SCAN_STATE_IDLE) {
-#line 8395 "scanner.c"
+#line 8335 "scanner.c"
gboolean _tmp2_ = FALSE;
#line 788 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = self->priv->need_redetect;
#line 788 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = _tmp2_;
-#line 8401 "scanner.c"
+#line 8341 "scanner.c"
} else {
#line 788 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = FALSE;
-#line 8405 "scanner.c"
+#line 8345 "scanner.c"
}
#line 788 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp3_ = _tmp0_;
-#line 788 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp3_) {
+ if (_tmp0_) {
#line 789 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_REDETECT;
-#line 8413 "scanner.c"
+#line 8351 "scanner.c"
}
#line 792 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
request_count = 0;
#line 793 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
-#line 8419 "scanner.c"
+#line 8357 "scanner.c"
Request* request = NULL;
+ gboolean _tmp3_ = FALSE;
gboolean _tmp4_ = FALSE;
- gboolean _tmp5_ = FALSE;
- ScanState _tmp6_ = 0;
- gboolean _tmp8_ = FALSE;
- gboolean _tmp11_ = FALSE;
- gint _tmp14_ = 0;
- Request* _tmp15_ = NULL;
+ ScanState _tmp5_ = 0;
+ gint _tmp11_ = 0;
+ Request* _tmp12_ = NULL;
#line 796 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp6_ = self->priv->state;
+ _tmp5_ = self->priv->state;
#line 796 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp6_ == SCAN_STATE_IDLE) {
-#line 8432 "scanner.c"
- gint _tmp7_ = 0;
+ if (_tmp5_ == SCAN_STATE_IDLE) {
+#line 8368 "scanner.c"
+ gint _tmp6_ = 0;
#line 796 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp7_ = request_count;
+ _tmp6_ = request_count;
#line 796 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp5_ = _tmp7_ == 0;
-#line 8438 "scanner.c"
+ _tmp4_ = _tmp6_ == 0;
+#line 8374 "scanner.c"
} else {
#line 796 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp5_ = FALSE;
-#line 8442 "scanner.c"
+ _tmp4_ = FALSE;
+#line 8378 "scanner.c"
}
#line 796 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp8_ = _tmp5_;
-#line 796 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp8_) {
+ if (_tmp4_) {
#line 796 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp4_ = TRUE;
-#line 8450 "scanner.c"
+ _tmp3_ = TRUE;
+#line 8384 "scanner.c"
} else {
- GAsyncQueue* _tmp9_ = NULL;
- gint _tmp10_ = 0;
+ GAsyncQueue* _tmp7_ = NULL;
+ gint _tmp8_ = 0;
#line 797 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp9_ = self->priv->request_queue;
+ _tmp7_ = self->priv->request_queue;
#line 797 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp10_ = g_async_queue_length (_tmp9_);
+ _tmp8_ = g_async_queue_length (_tmp7_);
#line 797 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp4_ = _tmp10_ > 0;
-#line 8460 "scanner.c"
+ _tmp3_ = _tmp8_ > 0;
+#line 8394 "scanner.c"
}
#line 796 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp11_ = _tmp4_;
-#line 796 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp11_) {
-#line 8466 "scanner.c"
- GAsyncQueue* _tmp12_ = NULL;
- gpointer _tmp13_ = NULL;
+ if (_tmp3_) {
+#line 8398 "scanner.c"
+ GAsyncQueue* _tmp9_ = NULL;
+ gpointer _tmp10_ = NULL;
#line 798 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp12_ = self->priv->request_queue;
+ _tmp9_ = self->priv->request_queue;
#line 798 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp13_ = g_async_queue_pop (_tmp12_);
+ _tmp10_ = g_async_queue_pop (_tmp9_);
#line 798 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_request_unref0 (request);
#line 798 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- request = (Request*) _tmp13_;
-#line 8477 "scanner.c"
+ request = (Request*) _tmp10_;
+#line 8409 "scanner.c"
} else {
#line 800 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = TRUE;
@@ -8488,57 +8420,57 @@ static gboolean scanner_handle_requests (Scanner* self) {
_request_unref0 (request);
#line 800 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 8485 "scanner.c"
+#line 8417 "scanner.c"
}
#line 802 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_debug ("scanner.vala:802: Processing request");
#line 803 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp14_ = request_count;
+ _tmp11_ = request_count;
#line 803 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- request_count = _tmp14_ + 1;
+ request_count = _tmp11_ + 1;
#line 805 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp15_ = request;
+ _tmp12_ = request;
#line 805 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, TYPE_REQUEST_START_SCAN)) {
-#line 8497 "scanner.c"
+ if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, TYPE_REQUEST_START_SCAN)) {
+#line 8429 "scanner.c"
RequestStartScan* r = NULL;
- Request* _tmp16_ = NULL;
- RequestStartScan* _tmp17_ = NULL;
- RequestStartScan* _tmp18_ = NULL;
- ScanJob* _tmp19_ = NULL;
- ScanJob* _tmp20_ = NULL;
+ Request* _tmp13_ = NULL;
+ RequestStartScan* _tmp14_ = NULL;
+ RequestStartScan* _tmp15_ = NULL;
+ ScanJob* _tmp16_ = NULL;
+ ScanJob* _tmp17_ = NULL;
#line 807 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp16_ = request;
+ _tmp13_ = request;
#line 807 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp17_ = _request_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, TYPE_REQUEST_START_SCAN, RequestStartScan));
+ _tmp14_ = _request_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, TYPE_REQUEST_START_SCAN, RequestStartScan));
#line 807 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- r = _tmp17_;
+ r = _tmp14_;
#line 808 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp18_ = r;
+ _tmp15_ = r;
#line 808 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp19_ = _tmp18_->job;
+ _tmp16_ = _tmp15_->job;
#line 808 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp20_ = _scan_job_ref0 (_tmp19_);
+ _tmp17_ = _scan_job_ref0 (_tmp16_);
#line 808 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- self->priv->job_queue = g_list_append (self->priv->job_queue, _tmp20_);
+ self->priv->job_queue = g_list_append (self->priv->job_queue, _tmp17_);
#line 805 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_request_unref0 (r);
-#line 8520 "scanner.c"
+#line 8452 "scanner.c"
} else {
- Request* _tmp21_ = NULL;
+ Request* _tmp18_ = NULL;
#line 810 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp21_ = request;
+ _tmp18_ = request;
#line 810 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, TYPE_REQUEST_CANCEL)) {
+ if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, TYPE_REQUEST_CANCEL)) {
#line 812 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_fail_scan (self, (gint) SANE_STATUS_CANCELLED, "Scan cancelled - do not report this error");
-#line 8529 "scanner.c"
+#line 8461 "scanner.c"
} else {
- Request* _tmp22_ = NULL;
+ Request* _tmp19_ = NULL;
#line 814 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp22_ = request;
+ _tmp19_ = request;
#line 814 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, TYPE_REQUEST_QUIT)) {
+ if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, TYPE_REQUEST_QUIT)) {
#line 816 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_close_device (self);
#line 817 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -8547,13 +8479,13 @@ static gboolean scanner_handle_requests (Scanner* self) {
_request_unref0 (request);
#line 817 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 8544 "scanner.c"
+#line 8476 "scanner.c"
}
}
}
#line 793 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_request_unref0 (request);
-#line 8550 "scanner.c"
+#line 8482 "scanner.c"
}
}
@@ -8561,7 +8493,7 @@ static gboolean scanner_handle_requests (Scanner* self) {
static void _g_free0_ (gpointer var) {
#line 861 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
var = (g_free (var), NULL);
-#line 8558 "scanner.c"
+#line 8490 "scanner.c"
}
@@ -8573,27 +8505,26 @@ static void scanner_do_open (Scanner* self) {
gboolean _tmp3_ = FALSE;
ScanJob* _tmp4_ = NULL;
const gchar* _tmp5_ = NULL;
- gboolean _tmp7_ = FALSE;
- ScanJob* _tmp11_ = NULL;
- const gchar* _tmp12_ = NULL;
- gboolean _tmp14_ = FALSE;
- GHashFunc _tmp19_ = NULL;
- GEqualFunc _tmp20_ = NULL;
- GHashTable* _tmp21_ = NULL;
+ ScanJob* _tmp10_ = NULL;
+ const gchar* _tmp11_ = NULL;
+ gboolean _tmp13_ = FALSE;
+ GHashFunc _tmp18_ = NULL;
+ GEqualFunc _tmp19_ = NULL;
+ GHashTable* _tmp20_ = NULL;
SANE_Status status = 0;
- ScanJob* _tmp22_ = NULL;
- const gchar* _tmp23_ = NULL;
- SANE_Handle _tmp24_ = {0};
- SANE_Status _tmp25_ = 0;
- ScanJob* _tmp26_ = NULL;
- const gchar* _tmp27_ = NULL;
- SANE_Status _tmp28_ = 0;
+ ScanJob* _tmp21_ = NULL;
+ const gchar* _tmp22_ = NULL;
+ SANE_Handle _tmp23_ = {0};
+ SANE_Status _tmp24_ = 0;
+ ScanJob* _tmp25_ = NULL;
+ const gchar* _tmp26_ = NULL;
+ SANE_Status _tmp27_ = 0;
+ gchar* _tmp28_ = NULL;
gchar* _tmp29_ = NULL;
- gchar* _tmp30_ = NULL;
- SANE_Status _tmp31_ = 0;
- ScanJob* _tmp36_ = NULL;
- const gchar* _tmp37_ = NULL;
- gchar* _tmp38_ = NULL;
+ SANE_Status _tmp30_ = 0;
+ ScanJob* _tmp35_ = NULL;
+ const gchar* _tmp36_ = NULL;
+ gchar* _tmp37_ = NULL;
#line 822 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
#line 824 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -8620,92 +8551,90 @@ static void scanner_do_open (Scanner* self) {
_tmp5_ = _tmp4_->device;
#line 832 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp5_ == NULL) {
-#line 8617 "scanner.c"
+#line 8548 "scanner.c"
const gchar* _tmp6_ = NULL;
#line 832 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = self->priv->default_device;
#line 832 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = _tmp6_ != NULL;
-#line 8623 "scanner.c"
+#line 8554 "scanner.c"
} else {
#line 832 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = FALSE;
-#line 8627 "scanner.c"
+#line 8558 "scanner.c"
}
#line 832 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp7_ = _tmp3_;
-#line 832 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp7_) {
-#line 8633 "scanner.c"
- ScanJob* _tmp8_ = NULL;
- const gchar* _tmp9_ = NULL;
- gchar* _tmp10_ = NULL;
+ if (_tmp3_) {
+#line 8562 "scanner.c"
+ ScanJob* _tmp7_ = NULL;
+ const gchar* _tmp8_ = NULL;
+ gchar* _tmp9_ = NULL;
#line 833 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp8_ = job;
+ _tmp7_ = job;
#line 833 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp9_ = self->priv->default_device;
+ _tmp8_ = self->priv->default_device;
#line 833 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp10_ = g_strdup (_tmp9_);
+ _tmp9_ = g_strdup (_tmp8_);
#line 833 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp8_->device);
+ _g_free0 (_tmp7_->device);
#line 833 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp8_->device = _tmp10_;
-#line 8647 "scanner.c"
+ _tmp7_->device = _tmp9_;
+#line 8576 "scanner.c"
}
#line 835 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp11_ = job;
+ _tmp10_ = job;
#line 835 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp12_ = _tmp11_->device;
+ _tmp11_ = _tmp10_->device;
#line 835 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp12_ == NULL) {
-#line 8655 "scanner.c"
- const gchar* _tmp13_ = NULL;
+ if (_tmp11_ == NULL) {
+#line 8584 "scanner.c"
+ const gchar* _tmp12_ = NULL;
#line 837 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_warning ("scanner.vala:837: No scan device available");
#line 838 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp13_ = _ ("No scanners available. Please connect a scanner.");
+ _tmp12_ = _ ("No scanners available. Please connect a scanner.");
#line 838 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_fail_scan (self, 0, _tmp13_);
+ scanner_fail_scan (self, 0, _tmp12_);
#line 841 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
#line 841 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
-#line 8667 "scanner.c"
+#line 8596 "scanner.c"
}
#line 845 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp14_ = self->priv->have_handle;
+ _tmp13_ = self->priv->have_handle;
#line 845 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp14_) {
-#line 8673 "scanner.c"
- const gchar* _tmp15_ = NULL;
- ScanJob* _tmp16_ = NULL;
- const gchar* _tmp17_ = NULL;
- SANE_Handle _tmp18_ = {0};
+ if (_tmp13_) {
+#line 8602 "scanner.c"
+ const gchar* _tmp14_ = NULL;
+ ScanJob* _tmp15_ = NULL;
+ const gchar* _tmp16_ = NULL;
+ SANE_Handle _tmp17_ = {0};
#line 847 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp15_ = self->priv->current_device;
+ _tmp14_ = self->priv->current_device;
#line 847 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp16_ = job;
+ _tmp15_ = job;
#line 847 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp17_ = _tmp16_->device;
+ _tmp16_ = _tmp15_->device;
#line 847 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (g_strcmp0 (_tmp15_, _tmp17_) == 0) {
+ if (g_strcmp0 (_tmp14_, _tmp16_) == 0) {
#line 849 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_GET_OPTION;
#line 850 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
#line 850 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
-#line 8692 "scanner.c"
+#line 8621 "scanner.c"
}
#line 853 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp18_ = self->priv->handle;
+ _tmp17_ = self->priv->handle;
#line 853 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- sane_close (_tmp18_);
+ sane_close (_tmp17_);
#line 854 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_debug ("scanner.vala:854: sane_close ()");
#line 855 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->have_handle = FALSE;
-#line 8702 "scanner.c"
+#line 8631 "scanner.c"
}
#line 858 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->priv->current_device);
@@ -8714,83 +8643,83 @@ static void scanner_do_open (Scanner* self) {
#line 860 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->have_handle = FALSE;
#line 861 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp19_ = g_str_hash;
+ _tmp18_ = g_str_hash;
#line 861 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp20_ = g_str_equal;
+ _tmp19_ = g_str_equal;
#line 861 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp21_ = g_hash_table_new_full (_tmp19_, _tmp20_, _g_free0_, NULL);
+ _tmp20_ = g_hash_table_new_full (_tmp18_, _tmp19_, _g_free0_, NULL);
#line 861 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_hash_table_unref0 (self->priv->options);
#line 861 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- self->priv->options = _tmp21_;
+ self->priv->options = _tmp20_;
#line 862 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp22_ = job;
+ _tmp21_ = job;
#line 862 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp23_ = _tmp22_->device;
+ _tmp22_ = _tmp21_->device;
#line 862 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp25_ = sane_open (_tmp23_, &_tmp24_);
+ _tmp24_ = sane_open (_tmp22_, &_tmp23_);
#line 862 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- self->priv->handle = _tmp24_;
+ self->priv->handle = _tmp23_;
#line 862 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- status = _tmp25_;
+ status = _tmp24_;
#line 863 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp26_ = job;
+ _tmp25_ = job;
#line 863 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp27_ = _tmp26_->device;
+ _tmp26_ = _tmp25_->device;
#line 863 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp28_ = status;
+ _tmp27_ = status;
#line 863 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp29_ = sane_status_to_string (_tmp28_);
+ _tmp28_ = sane_status_to_string (_tmp27_);
#line 863 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp30_ = _tmp29_;
+ _tmp29_ = _tmp28_;
#line 863 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- g_debug ("scanner.vala:863: sane_open (\"%s\") -> %s", _tmp27_, _tmp30_);
+ g_debug ("scanner.vala:863: sane_open (\"%s\") -> %s", _tmp26_, _tmp29_);
#line 863 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp30_);
+ _g_free0 (_tmp29_);
#line 865 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp31_ = status;
+ _tmp30_ = status;
#line 865 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp31_ != SANE_STATUS_GOOD) {
-#line 8748 "scanner.c"
- SANE_Status _tmp32_ = 0;
- const gchar* _tmp33_ = NULL;
- SANE_Status _tmp34_ = 0;
- const gchar* _tmp35_ = NULL;
+ if (_tmp30_ != SANE_STATUS_GOOD) {
+#line 8677 "scanner.c"
+ SANE_Status _tmp31_ = 0;
+ const gchar* _tmp32_ = NULL;
+ SANE_Status _tmp33_ = 0;
+ const gchar* _tmp34_ = NULL;
#line 867 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp32_ = status;
+ _tmp31_ = status;
#line 867 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp33_ = sane_strstatus (_tmp32_);
+ _tmp32_ = sane_strstatus (_tmp31_);
#line 867 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- g_warning ("scanner.vala:867: Unable to get open device: %s", _tmp33_);
+ g_warning ("scanner.vala:867: Unable to get open device: %s", _tmp32_);
#line 868 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp34_ = status;
+ _tmp33_ = status;
#line 868 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp35_ = _ ("Unable to connect to scanner");
+ _tmp34_ = _ ("Unable to connect to scanner");
#line 868 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_fail_scan (self, (gint) _tmp34_, _tmp35_);
+ scanner_fail_scan (self, (gint) _tmp33_, _tmp34_);
#line 871 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
#line 871 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
-#line 8769 "scanner.c"
+#line 8698 "scanner.c"
}
#line 873 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->have_handle = TRUE;
#line 875 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp36_ = job;
+ _tmp35_ = job;
#line 875 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp37_ = _tmp36_->device;
+ _tmp36_ = _tmp35_->device;
#line 875 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp38_ = g_strdup (_tmp37_);
+ _tmp37_ = g_strdup (_tmp36_);
#line 875 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_free0 (self->priv->current_device);
#line 875 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- self->priv->current_device = _tmp38_;
+ self->priv->current_device = _tmp37_;
#line 876 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_GET_OPTION;
#line 822 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
-#line 8787 "scanner.c"
+#line 8716 "scanner.c"
}
@@ -8808,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 _tmp355_ = {0};
- SANE_Option_Descriptor* _tmp356_ = NULL;
+ SANE_Int _tmp353_ = {0};
+ SANE_Option_Descriptor* _tmp354_ = NULL;
+ SANE_Option_Descriptor* _tmp355_ = NULL;
+ SANE_Value_Type _tmp356_ = 0;
SANE_Option_Descriptor* _tmp357_ = NULL;
- SANE_Value_Type _tmp358_ = 0;
+ SANE_Int _tmp358_ = {0};
SANE_Option_Descriptor* _tmp359_ = NULL;
- SANE_Int _tmp360_ = {0};
- SANE_Option_Descriptor* _tmp361_ = NULL;
- const gchar* _tmp362_ = NULL;
- GHashTable* _tmp363_ = NULL;
- SANE_Option_Descriptor* _tmp364_ = NULL;
- const gchar* _tmp365_ = NULL;
- gchar* _tmp366_ = NULL;
- SANE_Int _tmp367_ = {0};
+ const gchar* _tmp360_ = NULL;
+ GHashTable* _tmp361_ = NULL;
+ SANE_Option_Descriptor* _tmp362_ = NULL;
+ const gchar* _tmp363_ = NULL;
+ gchar* _tmp364_ = NULL;
+ SANE_Int _tmp365_ = {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"
@@ -8855,7 +8784,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp9_ = option;
#line 889 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp9_ == NULL) {
-#line 8852 "scanner.c"
+#line 8781 "scanner.c"
SANE_Handle _tmp10_ = {0};
const gchar* _tmp11_ = NULL;
gint _tmp12_ = 0;
@@ -8900,25 +8829,23 @@ static void scanner_do_get_option (Scanner* self) {
SANE_Option_Descriptor* _tmp256_ = NULL;
gboolean _tmp257_ = FALSE;
SANE_Option_Descriptor* _tmp258_ = NULL;
- gboolean _tmp261_ = FALSE;
- SANE_Handle _tmp271_ = {0};
- const gchar* _tmp272_ = NULL;
- gint _tmp273_ = 0;
- SANE_Option_Descriptor* _tmp274_ = NULL;
- gboolean _tmp275_ = FALSE;
- SANE_Option_Descriptor* _tmp276_ = NULL;
- gboolean _tmp279_ = FALSE;
- SANE_Handle _tmp289_ = {0};
- const gchar* _tmp290_ = NULL;
- gint _tmp291_ = 0;
- SANE_Option_Descriptor* _tmp292_ = NULL;
- SANE_Option_Descriptor* _tmp293_ = NULL;
- SANE_Handle _tmp304_ = {0};
- const gchar* _tmp305_ = NULL;
- gint _tmp306_ = 0;
- SANE_Option_Descriptor* _tmp307_ = NULL;
- SANE_Option_Descriptor* _tmp308_ = NULL;
- const gchar* _tmp319_ = 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;
#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"
@@ -8933,7 +8860,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp14_ = option;
#line 893 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp14_ == NULL) {
-#line 8930 "scanner.c"
+#line 8857 "scanner.c"
SANE_Handle _tmp15_ = {0};
gint _tmp16_ = 0;
SANE_Option_Descriptor* _tmp17_ = NULL;
@@ -8948,13 +8875,13 @@ static void scanner_do_get_option (Scanner* self) {
index = (SANE_Int) _tmp16_;
#line 896 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
option = _tmp17_;
-#line 8944 "scanner.c"
+#line 8871 "scanner.c"
}
#line 898 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = option;
#line 898 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp18_ != NULL) {
-#line 8950 "scanner.c"
+#line 8877 "scanner.c"
gchar** flatbed_sources = NULL;
gchar* _tmp19_ = NULL;
const gchar* _tmp20_ = NULL;
@@ -9151,7 +9078,7 @@ static void scanner_do_get_option (Scanner* self) {
switch (_tmp53_) {
#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_SINGLE:
-#line 9147 "scanner.c"
+#line 9074 "scanner.c"
{
SANE_Handle _tmp54_ = {0};
SANE_Option_Descriptor* _tmp55_ = NULL;
@@ -9167,7 +9094,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp57_ = scanner_set_default_option (self, _tmp54_, _tmp55_, _tmp56_);
#line 944 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp57_) {
-#line 9163 "scanner.c"
+#line 9090 "scanner.c"
SANE_Handle _tmp58_ = {0};
SANE_Option_Descriptor* _tmp59_ = NULL;
SANE_Int _tmp60_ = {0};
@@ -9190,16 +9117,16 @@ static void scanner_do_get_option (Scanner* self) {
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 9186 "scanner.c"
+#line 9113 "scanner.c"
}
}
#line 947 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 9191 "scanner.c"
+#line 9118 "scanner.c"
}
#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_ADF_FRONT:
-#line 9195 "scanner.c"
+#line 9122 "scanner.c"
{
SANE_Handle _tmp63_ = {0};
SANE_Option_Descriptor* _tmp64_ = NULL;
@@ -9221,7 +9148,7 @@ static void scanner_do_get_option (Scanner* self) {
_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 9217 "scanner.c"
+#line 9144 "scanner.c"
SANE_Handle _tmp68_ = {0};
SANE_Option_Descriptor* _tmp69_ = NULL;
SANE_Int _tmp70_ = {0};
@@ -9244,16 +9171,16 @@ static void scanner_do_get_option (Scanner* self) {
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 9240 "scanner.c"
+#line 9167 "scanner.c"
}
}
#line 952 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 9245 "scanner.c"
+#line 9172 "scanner.c"
}
#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_ADF_BACK:
-#line 9249 "scanner.c"
+#line 9176 "scanner.c"
{
SANE_Handle _tmp73_ = {0};
SANE_Option_Descriptor* _tmp74_ = NULL;
@@ -9275,7 +9202,7 @@ static void scanner_do_get_option (Scanner* self) {
_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 9271 "scanner.c"
+#line 9198 "scanner.c"
SANE_Handle _tmp78_ = {0};
SANE_Option_Descriptor* _tmp79_ = NULL;
SANE_Int _tmp80_ = {0};
@@ -9298,16 +9225,16 @@ static void scanner_do_get_option (Scanner* self) {
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 9294 "scanner.c"
+#line 9221 "scanner.c"
}
}
#line 957 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 9299 "scanner.c"
+#line 9226 "scanner.c"
}
#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_ADF_BOTH:
-#line 9303 "scanner.c"
+#line 9230 "scanner.c"
{
SANE_Handle _tmp83_ = {0};
SANE_Option_Descriptor* _tmp84_ = NULL;
@@ -9329,7 +9256,7 @@ static void scanner_do_get_option (Scanner* self) {
_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 9325 "scanner.c"
+#line 9252 "scanner.c"
SANE_Handle _tmp88_ = {0};
SANE_Option_Descriptor* _tmp89_ = NULL;
SANE_Int _tmp90_ = {0};
@@ -9352,17 +9279,17 @@ static void scanner_do_get_option (Scanner* self) {
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 9348 "scanner.c"
+#line 9275 "scanner.c"
}
}
#line 962 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 9353 "scanner.c"
+#line 9280 "scanner.c"
}
default:
#line 941 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 9358 "scanner.c"
+#line 9285 "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);
@@ -9374,7 +9301,7 @@ 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 9370 "scanner.c"
+#line 9297 "scanner.c"
}
#line 967 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp93_ = self->priv->handle;
@@ -9390,7 +9317,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp97_ = option;
#line 968 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp97_ != NULL) {
-#line 9386 "scanner.c"
+#line 9313 "scanner.c"
gchar** color_scan_modes = NULL;
const gchar* _tmp98_ = NULL;
gchar* _tmp99_ = NULL;
@@ -9594,7 +9521,7 @@ static void scanner_do_get_option (Scanner* self) {
switch (_tmp137_) {
#line 1007 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_MODE_COLOR:
-#line 9590 "scanner.c"
+#line 9517 "scanner.c"
{
SANE_Handle _tmp138_ = {0};
SANE_Option_Descriptor* _tmp139_ = NULL;
@@ -9618,15 +9545,15 @@ static void scanner_do_get_option (Scanner* self) {
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 9614 "scanner.c"
+#line 9541 "scanner.c"
}
#line 1012 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 9618 "scanner.c"
+#line 9545 "scanner.c"
}
#line 1007 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_MODE_GRAY:
-#line 9622 "scanner.c"
+#line 9549 "scanner.c"
{
SANE_Handle _tmp143_ = {0};
SANE_Option_Descriptor* _tmp144_ = NULL;
@@ -9650,15 +9577,15 @@ static void scanner_do_get_option (Scanner* self) {
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 9646 "scanner.c"
+#line 9573 "scanner.c"
}
#line 1016 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 9650 "scanner.c"
+#line 9577 "scanner.c"
}
#line 1007 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_MODE_LINEART:
-#line 9654 "scanner.c"
+#line 9581 "scanner.c"
{
SANE_Handle _tmp148_ = {0};
SANE_Option_Descriptor* _tmp149_ = NULL;
@@ -9682,17 +9609,17 @@ static void scanner_do_get_option (Scanner* self) {
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 9678 "scanner.c"
+#line 9605 "scanner.c"
}
#line 1020 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 9682 "scanner.c"
+#line 9609 "scanner.c"
}
default:
{
#line 1022 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 9688 "scanner.c"
+#line 9615 "scanner.c"
}
}
#line 968 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -9701,7 +9628,7 @@ static void scanner_do_get_option (Scanner* self) {
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"
color_scan_modes = (_vala_array_free (color_scan_modes, color_scan_modes_length1, (GDestroyNotify) g_free), NULL);
-#line 9697 "scanner.c"
+#line 9624 "scanner.c"
}
#line 1027 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp153_ = self->priv->handle;
@@ -9715,7 +9642,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp156_ = option;
#line 1028 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp156_ != NULL) {
-#line 9711 "scanner.c"
+#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"
@@ -9724,7 +9651,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp158_ = _tmp157_->type;
#line 1030 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp158_ == SANE_TYPE_BOOL) {
-#line 9720 "scanner.c"
+#line 9647 "scanner.c"
SANE_Handle _tmp159_ = {0};
SANE_Option_Descriptor* _tmp160_ = NULL;
SANE_Int _tmp161_ = {0};
@@ -9742,7 +9669,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp163_ = _tmp162_->type;
#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 9738 "scanner.c"
+#line 9665 "scanner.c"
}
}
#line 1035 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -9757,7 +9684,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp167_ = option;
#line 1036 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp167_ != NULL) {
-#line 9753 "scanner.c"
+#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"
@@ -9766,7 +9693,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp169_ = _tmp168_->type;
#line 1038 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp169_ == SANE_TYPE_BOOL) {
-#line 9762 "scanner.c"
+#line 9689 "scanner.c"
SANE_Handle _tmp170_ = {0};
SANE_Option_Descriptor* _tmp171_ = NULL;
SANE_Int _tmp172_ = {0};
@@ -9784,7 +9711,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp174_ = _tmp173_->type;
#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 9780 "scanner.c"
+#line 9707 "scanner.c"
}
}
#line 1043 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -9799,7 +9726,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp178_ = option;
#line 1044 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp178_ != NULL) {
-#line 9795 "scanner.c"
+#line 9722 "scanner.c"
gchar** disable_compression_names = NULL;
const gchar* _tmp179_ = NULL;
gchar* _tmp180_ = NULL;
@@ -9860,11 +9787,11 @@ static void scanner_do_get_option (Scanner* self) {
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 9856 "scanner.c"
+#line 9783 "scanner.c"
}
#line 1044 "/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 9860 "scanner.c"
+#line 9787 "scanner.c"
}
#line 1059 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp191_ = self->priv->handle;
@@ -9880,7 +9807,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp195_ = option;
#line 1060 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp195_ != NULL) {
-#line 9876 "scanner.c"
+#line 9803 "scanner.c"
SANE_Handle _tmp196_ = {0};
SANE_Option_Descriptor* _tmp197_ = NULL;
SANE_Int _tmp198_ = {0};
@@ -9923,7 +9850,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp207_ = option;
#line 1064 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp207_ != NULL) {
-#line 9919 "scanner.c"
+#line 9846 "scanner.c"
ScanJob* _tmp208_ = NULL;
gint _tmp209_ = 0;
#line 1066 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -9932,7 +9859,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp209_ = _tmp208_->depth;
#line 1066 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp209_ > 0) {
-#line 9928 "scanner.c"
+#line 9855 "scanner.c"
SANE_Handle _tmp210_ = {0};
SANE_Option_Descriptor* _tmp211_ = NULL;
SANE_Int _tmp212_ = {0};
@@ -9950,7 +9877,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp214_ = _tmp213_->depth;
#line 1067 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_set_int_option (self, _tmp210_, _tmp211_, _tmp212_, _tmp214_, NULL);
-#line 9946 "scanner.c"
+#line 9873 "scanner.c"
}
}
}
@@ -9968,7 +9895,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp219_ = option;
#line 1073 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp219_ != NULL) {
-#line 9964 "scanner.c"
+#line 9891 "scanner.c"
ScanJob* _tmp220_ = NULL;
gint _tmp221_ = 0;
#line 1075 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -9977,7 +9904,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp221_ = _tmp220_->page_width;
#line 1075 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp221_ > 0) {
-#line 9973 "scanner.c"
+#line 9900 "scanner.c"
SANE_Handle _tmp222_ = {0};
SANE_Option_Descriptor* _tmp223_ = NULL;
SANE_Int _tmp224_ = {0};
@@ -10007,7 +9934,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp230_ = scanner_convert_page_size (self, _tmp225_, (gdouble) _tmp227_, _tmp229_);
#line 1076 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_set_fixed_or_int_option (self, _tmp222_, _tmp223_, _tmp224_, _tmp230_, NULL);
-#line 10003 "scanner.c"
+#line 9930 "scanner.c"
} else {
SANE_Handle _tmp231_ = {0};
SANE_Option_Descriptor* _tmp232_ = NULL;
@@ -10020,7 +9947,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp233_ = index;
#line 1078 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_set_option_to_max (self, _tmp231_, _tmp232_, _tmp233_);
-#line 10016 "scanner.c"
+#line 9943 "scanner.c"
}
}
#line 1080 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -10037,7 +9964,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp238_ = option;
#line 1081 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp238_ != NULL) {
-#line 10033 "scanner.c"
+#line 9960 "scanner.c"
ScanJob* _tmp239_ = NULL;
gint _tmp240_ = 0;
#line 1083 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -10046,7 +9973,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp240_ = _tmp239_->page_height;
#line 1083 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp240_ > 0) {
-#line 10042 "scanner.c"
+#line 9969 "scanner.c"
SANE_Handle _tmp241_ = {0};
SANE_Option_Descriptor* _tmp242_ = NULL;
SANE_Int _tmp243_ = {0};
@@ -10076,7 +10003,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp249_ = scanner_convert_page_size (self, _tmp244_, (gdouble) _tmp246_, _tmp248_);
#line 1084 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_set_fixed_or_int_option (self, _tmp241_, _tmp242_, _tmp243_, _tmp249_, NULL);
-#line 10072 "scanner.c"
+#line 9999 "scanner.c"
} else {
SANE_Handle _tmp250_ = {0};
SANE_Option_Descriptor* _tmp251_ = NULL;
@@ -10089,7 +10016,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp252_ = index;
#line 1086 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_set_option_to_max (self, _tmp250_, _tmp251_, _tmp252_);
-#line 10085 "scanner.c"
+#line 10012 "scanner.c"
}
}
#line 1090 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -10106,7 +10033,7 @@ static void scanner_do_get_option (Scanner* self) {
_tmp258_ = option;
#line 1091 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp258_ != NULL) {
-#line 10102 "scanner.c"
+#line 10029 "scanner.c"
ScanJob* _tmp259_ = NULL;
gint _tmp260_ = 0;
#line 1091 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -10115,379 +10042,375 @@ static void scanner_do_get_option (Scanner* self) {
_tmp260_ = _tmp259_->page_width;
#line 1091 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp257_ = ((gdouble) _tmp260_) > 0.0;
-#line 10111 "scanner.c"
+#line 10038 "scanner.c"
} else {
#line 1091 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp257_ = FALSE;
-#line 10115 "scanner.c"
+#line 10042 "scanner.c"
}
#line 1091 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp261_ = _tmp257_;
-#line 1091 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp261_) {
-#line 10121 "scanner.c"
- SANE_Handle _tmp262_ = {0};
- SANE_Option_Descriptor* _tmp263_ = NULL;
- SANE_Int _tmp264_ = {0};
- SANE_Option_Descriptor* _tmp265_ = NULL;
- ScanJob* _tmp266_ = NULL;
- gint _tmp267_ = 0;
- ScanJob* _tmp268_ = NULL;
+ 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;
- gdouble _tmp270_ = 0.0;
#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp262_ = self->priv->handle;
+ _tmp261_ = self->priv->handle;
#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp263_ = option;
+ _tmp262_ = option;
#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp264_ = index;
+ _tmp263_ = index;
#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp265_ = option;
+ _tmp264_ = option;
#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp266_ = job;
+ _tmp265_ = job;
#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp267_ = _tmp266_->page_width;
+ _tmp266_ = _tmp265_->page_width;
#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp268_ = job;
+ _tmp267_ = job;
#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp269_ = _tmp268_->dpi;
+ _tmp268_ = _tmp267_->dpi;
#line 1092 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp270_ = scanner_convert_page_size (self, _tmp265_, (gdouble) _tmp267_, _tmp269_);
+ _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, _tmp262_, _tmp263_, _tmp264_, _tmp270_, NULL);
-#line 10151 "scanner.c"
+ 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"
- _tmp271_ = self->priv->handle;
+ _tmp270_ = self->priv->handle;
#line 1093 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp272_ = SANE_NAME_PAGE_HEIGHT;
+ _tmp271_ = SANE_NAME_PAGE_HEIGHT;
#line 1093 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp274_ = scanner_get_option_by_name (self, _tmp271_, _tmp272_, &_tmp273_);
+ _tmp273_ = scanner_get_option_by_name (self, _tmp270_, _tmp271_, &_tmp272_);
#line 1093 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- index = (SANE_Int) _tmp273_;
+ index = (SANE_Int) _tmp272_;
#line 1093 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- option = _tmp274_;
+ option = _tmp273_;
#line 1094 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp276_ = option;
+ _tmp275_ = option;
#line 1094 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp276_ != NULL) {
-#line 10167 "scanner.c"
- ScanJob* _tmp277_ = NULL;
- gint _tmp278_ = 0;
+ if (_tmp275_ != NULL) {
+#line 10092 "scanner.c"
+ ScanJob* _tmp276_ = NULL;
+ gint _tmp277_ = 0;
#line 1094 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp277_ = job;
+ _tmp276_ = job;
#line 1094 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp278_ = _tmp277_->page_height;
+ _tmp277_ = _tmp276_->page_height;
#line 1094 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp275_ = ((gdouble) _tmp278_) > 0.0;
-#line 10176 "scanner.c"
+ _tmp274_ = ((gdouble) _tmp277_) > 0.0;
+#line 10101 "scanner.c"
} else {
#line 1094 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp275_ = FALSE;
-#line 10180 "scanner.c"
+ _tmp274_ = FALSE;
+#line 10105 "scanner.c"
}
#line 1094 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp279_ = _tmp275_;
-#line 1094 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp279_) {
-#line 10186 "scanner.c"
- SANE_Handle _tmp280_ = {0};
+ if (_tmp274_) {
+#line 10109 "scanner.c"
+ SANE_Handle _tmp278_ = {0};
+ SANE_Option_Descriptor* _tmp279_ = NULL;
+ SANE_Int _tmp280_ = {0};
SANE_Option_Descriptor* _tmp281_ = NULL;
- SANE_Int _tmp282_ = {0};
- SANE_Option_Descriptor* _tmp283_ = NULL;
+ ScanJob* _tmp282_ = NULL;
+ gint _tmp283_ = 0;
ScanJob* _tmp284_ = NULL;
- gint _tmp285_ = 0;
- ScanJob* _tmp286_ = NULL;
- gdouble _tmp287_ = 0.0;
- gdouble _tmp288_ = 0.0;
+ gdouble _tmp285_ = 0.0;
+ gdouble _tmp286_ = 0.0;
#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp280_ = self->priv->handle;
+ _tmp278_ = self->priv->handle;
#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp281_ = option;
+ _tmp279_ = option;
#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp282_ = index;
+ _tmp280_ = index;
#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp283_ = option;
+ _tmp281_ = option;
#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp284_ = job;
+ _tmp282_ = job;
#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp285_ = _tmp284_->page_height;
+ _tmp283_ = _tmp282_->page_height;
#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp286_ = job;
+ _tmp284_ = job;
#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp287_ = _tmp286_->dpi;
+ _tmp285_ = _tmp284_->dpi;
#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp288_ = scanner_convert_page_size (self, _tmp283_, (gdouble) _tmp285_, _tmp287_);
+ _tmp286_ = scanner_convert_page_size (self, _tmp281_, (gdouble) _tmp283_, _tmp285_);
#line 1095 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_set_fixed_or_int_option (self, _tmp280_, _tmp281_, _tmp282_, _tmp288_, NULL);
-#line 10216 "scanner.c"
+ scanner_set_fixed_or_int_option (self, _tmp278_, _tmp279_, _tmp280_, _tmp286_, NULL);
+#line 10139 "scanner.c"
}
#line 1097 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp289_ = self->priv->handle;
+ _tmp287_ = self->priv->handle;
#line 1097 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp290_ = SANE_NAME_BRIGHTNESS;
+ _tmp288_ = SANE_NAME_BRIGHTNESS;
#line 1097 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp292_ = scanner_get_option_by_name (self, _tmp289_, _tmp290_, &_tmp291_);
+ _tmp290_ = scanner_get_option_by_name (self, _tmp287_, _tmp288_, &_tmp289_);
#line 1097 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- index = (SANE_Int) _tmp291_;
+ index = (SANE_Int) _tmp289_;
#line 1097 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- option = _tmp292_;
+ option = _tmp290_;
#line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp293_ = option;
+ _tmp291_ = option;
#line 1098 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp293_ != NULL) {
-#line 10232 "scanner.c"
- ScanJob* _tmp294_ = NULL;
- gint _tmp295_ = 0;
+ if (_tmp291_ != NULL) {
+#line 10155 "scanner.c"
+ ScanJob* _tmp292_ = NULL;
+ gint _tmp293_ = 0;
#line 1100 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp294_ = job;
+ _tmp292_ = job;
#line 1100 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp295_ = _tmp294_->brightness;
+ _tmp293_ = _tmp292_->brightness;
#line 1100 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp295_ != 0) {
-#line 10241 "scanner.c"
+ if (_tmp293_ != 0) {
+#line 10164 "scanner.c"
gint brightness = 0;
- SANE_Option_Descriptor* _tmp296_ = NULL;
- ScanJob* _tmp297_ = NULL;
- gint _tmp298_ = 0;
- gint _tmp299_ = 0;
- SANE_Handle _tmp300_ = {0};
- SANE_Option_Descriptor* _tmp301_ = NULL;
- SANE_Int _tmp302_ = {0};
- gint _tmp303_ = 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"
- _tmp296_ = option;
+ _tmp294_ = option;
#line 1102 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp297_ = job;
+ _tmp295_ = job;
#line 1102 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp298_ = _tmp297_->brightness;
+ _tmp296_ = _tmp295_->brightness;
#line 1102 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp299_ = scanner_scale_int (self, -100, 100, _tmp296_, _tmp298_);
+ _tmp297_ = scanner_scale_int (self, -100, 100, _tmp294_, _tmp296_);
#line 1102 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- brightness = _tmp299_;
+ brightness = _tmp297_;
#line 1103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp300_ = self->priv->handle;
+ _tmp298_ = self->priv->handle;
#line 1103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp301_ = option;
+ _tmp299_ = option;
#line 1103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp302_ = index;
+ _tmp300_ = index;
#line 1103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp303_ = brightness;
+ _tmp301_ = brightness;
#line 1103 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_set_int_option (self, _tmp300_, _tmp301_, _tmp302_, _tmp303_, NULL);
-#line 10271 "scanner.c"
+ scanner_set_int_option (self, _tmp298_, _tmp299_, _tmp300_, _tmp301_, NULL);
+#line 10194 "scanner.c"
}
}
#line 1106 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp304_ = self->priv->handle;
+ _tmp302_ = self->priv->handle;
#line 1106 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp305_ = SANE_NAME_CONTRAST;
+ _tmp303_ = SANE_NAME_CONTRAST;
#line 1106 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp307_ = scanner_get_option_by_name (self, _tmp304_, _tmp305_, &_tmp306_);
+ _tmp305_ = scanner_get_option_by_name (self, _tmp302_, _tmp303_, &_tmp304_);
#line 1106 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- index = (SANE_Int) _tmp306_;
+ index = (SANE_Int) _tmp304_;
#line 1106 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- option = _tmp307_;
+ option = _tmp305_;
#line 1107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp308_ = option;
+ _tmp306_ = option;
#line 1107 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp308_ != NULL) {
-#line 10288 "scanner.c"
- ScanJob* _tmp309_ = NULL;
- gint _tmp310_ = 0;
+ if (_tmp306_ != NULL) {
+#line 10211 "scanner.c"
+ ScanJob* _tmp307_ = NULL;
+ gint _tmp308_ = 0;
#line 1109 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp309_ = job;
+ _tmp307_ = job;
#line 1109 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp310_ = _tmp309_->contrast;
+ _tmp308_ = _tmp307_->contrast;
#line 1109 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp310_ != 0) {
-#line 10297 "scanner.c"
+ if (_tmp308_ != 0) {
+#line 10220 "scanner.c"
gint contrast = 0;
- SANE_Option_Descriptor* _tmp311_ = NULL;
- ScanJob* _tmp312_ = NULL;
- gint _tmp313_ = 0;
- gint _tmp314_ = 0;
- SANE_Handle _tmp315_ = {0};
- SANE_Option_Descriptor* _tmp316_ = NULL;
- SANE_Int _tmp317_ = {0};
- gint _tmp318_ = 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"
- _tmp311_ = option;
+ _tmp309_ = option;
#line 1111 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp312_ = job;
+ _tmp310_ = job;
#line 1111 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp313_ = _tmp312_->contrast;
+ _tmp311_ = _tmp310_->contrast;
#line 1111 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp314_ = scanner_scale_int (self, -100, 100, _tmp311_, _tmp313_);
+ _tmp312_ = scanner_scale_int (self, -100, 100, _tmp309_, _tmp311_);
#line 1111 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- contrast = _tmp314_;
+ contrast = _tmp312_;
#line 1112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp315_ = self->priv->handle;
+ _tmp313_ = self->priv->handle;
#line 1112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp316_ = option;
+ _tmp314_ = option;
#line 1112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp317_ = index;
+ _tmp315_ = index;
#line 1112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp318_ = contrast;
+ _tmp316_ = contrast;
#line 1112 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_set_int_option (self, _tmp315_, _tmp316_, _tmp317_, _tmp318_, NULL);
-#line 10327 "scanner.c"
+ scanner_set_int_option (self, _tmp313_, _tmp314_, _tmp315_, _tmp316_, NULL);
+#line 10250 "scanner.c"
}
}
#line 1117 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp319_ = self->priv->current_device;
+ _tmp317_ = self->priv->current_device;
#line 1117 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (g_strcmp0 (_tmp319_, "test") == 0) {
-#line 10334 "scanner.c"
- SANE_Handle _tmp320_ = {0};
- gint _tmp321_ = 0;
- SANE_Option_Descriptor* _tmp322_ = NULL;
- SANE_Option_Descriptor* _tmp323_ = NULL;
- SANE_Handle _tmp327_ = {0};
- gint _tmp328_ = 0;
- SANE_Option_Descriptor* _tmp329_ = NULL;
- SANE_Option_Descriptor* _tmp330_ = NULL;
- SANE_Handle _tmp334_ = {0};
- gint _tmp335_ = 0;
- SANE_Option_Descriptor* _tmp336_ = NULL;
- SANE_Option_Descriptor* _tmp337_ = NULL;
- SANE_Handle _tmp341_ = {0};
- gint _tmp342_ = 0;
- SANE_Option_Descriptor* _tmp343_ = NULL;
- SANE_Option_Descriptor* _tmp344_ = NULL;
- SANE_Handle _tmp348_ = {0};
- gint _tmp349_ = 0;
- SANE_Option_Descriptor* _tmp350_ = NULL;
- SANE_Option_Descriptor* _tmp351_ = NULL;
+ 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"
- _tmp320_ = self->priv->handle;
+ _tmp318_ = self->priv->handle;
#line 1119 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp322_ = scanner_get_option_by_name (self, _tmp320_, "hand-scanner", &_tmp321_);
+ _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) _tmp321_;
+ index = (SANE_Int) _tmp319_;
#line 1119 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- option = _tmp322_;
+ option = _tmp320_;
#line 1120 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp323_ = option;
+ _tmp321_ = option;
#line 1120 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp323_ != NULL) {
-#line 10367 "scanner.c"
- SANE_Handle _tmp324_ = {0};
- SANE_Option_Descriptor* _tmp325_ = NULL;
- SANE_Int _tmp326_ = {0};
+ 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"
- _tmp324_ = self->priv->handle;
+ _tmp322_ = self->priv->handle;
#line 1121 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp325_ = option;
+ _tmp323_ = option;
#line 1121 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp326_ = index;
+ _tmp324_ = index;
#line 1121 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_set_bool_option (self, _tmp324_, _tmp325_, _tmp326_, FALSE, NULL);
-#line 10379 "scanner.c"
+ scanner_set_bool_option (self, _tmp322_, _tmp323_, _tmp324_, FALSE, NULL);
+#line 10302 "scanner.c"
}
#line 1122 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp327_ = self->priv->handle;
+ _tmp325_ = self->priv->handle;
#line 1122 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp329_ = scanner_get_option_by_name (self, _tmp327_, "three-pass", &_tmp328_);
+ _tmp327_ = scanner_get_option_by_name (self, _tmp325_, "three-pass", &_tmp326_);
#line 1122 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- index = (SANE_Int) _tmp328_;
+ index = (SANE_Int) _tmp326_;
#line 1122 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- option = _tmp329_;
+ option = _tmp327_;
#line 1123 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp330_ = option;
+ _tmp328_ = option;
#line 1123 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp330_ != NULL) {
-#line 10393 "scanner.c"
- SANE_Handle _tmp331_ = {0};
- SANE_Option_Descriptor* _tmp332_ = NULL;
- SANE_Int _tmp333_ = {0};
+ if (_tmp328_ != NULL) {
+#line 10316 "scanner.c"
+ SANE_Handle _tmp329_ = {0};
+ SANE_Option_Descriptor* _tmp330_ = NULL;
+ SANE_Int _tmp331_ = {0};
#line 1124 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp331_ = self->priv->handle;
+ _tmp329_ = self->priv->handle;
#line 1124 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp332_ = option;
+ _tmp330_ = option;
#line 1124 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp333_ = index;
+ _tmp331_ = index;
#line 1124 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_set_bool_option (self, _tmp331_, _tmp332_, _tmp333_, FALSE, NULL);
-#line 10405 "scanner.c"
+ scanner_set_bool_option (self, _tmp329_, _tmp330_, _tmp331_, FALSE, NULL);
+#line 10328 "scanner.c"
}
#line 1125 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp334_ = self->priv->handle;
+ _tmp332_ = self->priv->handle;
#line 1125 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp336_ = scanner_get_option_by_name (self, _tmp334_, "test-picture", &_tmp335_);
+ _tmp334_ = scanner_get_option_by_name (self, _tmp332_, "test-picture", &_tmp333_);
#line 1125 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- index = (SANE_Int) _tmp335_;
+ index = (SANE_Int) _tmp333_;
#line 1125 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- option = _tmp336_;
+ option = _tmp334_;
#line 1126 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp337_ = option;
+ _tmp335_ = option;
#line 1126 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp337_ != NULL) {
-#line 10419 "scanner.c"
- SANE_Handle _tmp338_ = {0};
- SANE_Option_Descriptor* _tmp339_ = NULL;
- SANE_Int _tmp340_ = {0};
+ if (_tmp335_ != NULL) {
+#line 10342 "scanner.c"
+ SANE_Handle _tmp336_ = {0};
+ SANE_Option_Descriptor* _tmp337_ = NULL;
+ SANE_Int _tmp338_ = {0};
#line 1127 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp338_ = self->priv->handle;
+ _tmp336_ = self->priv->handle;
#line 1127 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp339_ = option;
+ _tmp337_ = option;
#line 1127 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp340_ = index;
+ _tmp338_ = index;
#line 1127 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_set_string_option (self, _tmp338_, _tmp339_, _tmp340_, "Color pattern", NULL);
-#line 10431 "scanner.c"
+ scanner_set_string_option (self, _tmp336_, _tmp337_, _tmp338_, "Color pattern", NULL);
+#line 10354 "scanner.c"
}
#line 1128 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp341_ = self->priv->handle;
+ _tmp339_ = self->priv->handle;
#line 1128 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp343_ = scanner_get_option_by_name (self, _tmp341_, "read-delay", &_tmp342_);
+ _tmp341_ = scanner_get_option_by_name (self, _tmp339_, "read-delay", &_tmp340_);
#line 1128 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- index = (SANE_Int) _tmp342_;
+ index = (SANE_Int) _tmp340_;
#line 1128 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- option = _tmp343_;
+ option = _tmp341_;
#line 1129 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp344_ = option;
+ _tmp342_ = option;
#line 1129 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp344_ != NULL) {
-#line 10445 "scanner.c"
- SANE_Handle _tmp345_ = {0};
- SANE_Option_Descriptor* _tmp346_ = NULL;
- SANE_Int _tmp347_ = {0};
+ if (_tmp342_ != NULL) {
+#line 10368 "scanner.c"
+ SANE_Handle _tmp343_ = {0};
+ SANE_Option_Descriptor* _tmp344_ = NULL;
+ SANE_Int _tmp345_ = {0};
#line 1130 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp345_ = self->priv->handle;
+ _tmp343_ = self->priv->handle;
#line 1130 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp346_ = option;
+ _tmp344_ = option;
#line 1130 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp347_ = index;
+ _tmp345_ = index;
#line 1130 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_set_bool_option (self, _tmp345_, _tmp346_, _tmp347_, TRUE, NULL);
-#line 10457 "scanner.c"
+ scanner_set_bool_option (self, _tmp343_, _tmp344_, _tmp345_, TRUE, NULL);
+#line 10380 "scanner.c"
}
#line 1131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp348_ = self->priv->handle;
+ _tmp346_ = self->priv->handle;
#line 1131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp350_ = scanner_get_option_by_name (self, _tmp348_, "read-delay-duration", &_tmp349_);
+ _tmp348_ = scanner_get_option_by_name (self, _tmp346_, "read-delay-duration", &_tmp347_);
#line 1131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- index = (SANE_Int) _tmp349_;
+ index = (SANE_Int) _tmp347_;
#line 1131 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- option = _tmp350_;
+ option = _tmp348_;
#line 1132 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp351_ = option;
+ _tmp349_ = option;
#line 1132 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp351_ != NULL) {
-#line 10471 "scanner.c"
- SANE_Handle _tmp352_ = {0};
- SANE_Option_Descriptor* _tmp353_ = NULL;
- SANE_Int _tmp354_ = {0};
+ if (_tmp349_ != NULL) {
+#line 10394 "scanner.c"
+ SANE_Handle _tmp350_ = {0};
+ SANE_Option_Descriptor* _tmp351_ = NULL;
+ SANE_Int _tmp352_ = {0};
#line 1133 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp352_ = self->priv->handle;
+ _tmp350_ = self->priv->handle;
#line 1133 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp353_ = option;
+ _tmp351_ = option;
#line 1133 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp354_ = index;
+ _tmp352_ = index;
#line 1133 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_set_int_option (self, _tmp352_, _tmp353_, _tmp354_, 200000, NULL);
-#line 10483 "scanner.c"
+ scanner_set_int_option (self, _tmp350_, _tmp351_, _tmp352_, 200000, NULL);
+#line 10406 "scanner.c"
}
}
#line 1136 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -10496,65 +10419,65 @@ static void scanner_do_get_option (Scanner* self) {
_scan_job_unref0 (job);
#line 1137 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
-#line 10492 "scanner.c"
+#line 10415 "scanner.c"
}
#line 1140 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp355_ = index;
+ _tmp353_ = index;
#line 1140 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp356_ = option;
+ _tmp354_ = option;
#line 1140 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_log_option (self, _tmp355_, _tmp356_);
+ scanner_log_option (self, _tmp353_, _tmp354_);
#line 1143 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp357_ = option;
+ _tmp355_ = option;
#line 1143 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp358_ = _tmp357_->type;
+ _tmp356_ = _tmp355_->type;
#line 1143 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp358_ == SANE_TYPE_GROUP) {
+ 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 10510 "scanner.c"
+#line 10433 "scanner.c"
}
#line 1147 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp359_ = option;
+ _tmp357_ = option;
#line 1147 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp360_ = _tmp359_->cap;
+ _tmp358_ = _tmp357_->cap;
#line 1147 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if ((_tmp360_ & SANE_CAP_INACTIVE) != ((SANE_Int) 0)) {
+ 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"
return;
-#line 10522 "scanner.c"
+#line 10445 "scanner.c"
}
#line 1151 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp361_ = option;
+ _tmp359_ = option;
#line 1151 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp362_ = _tmp361_->name;
+ _tmp360_ = _tmp359_->name;
#line 1151 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp362_ == NULL) {
+ 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"
return;
-#line 10534 "scanner.c"
+#line 10457 "scanner.c"
}
#line 1154 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp363_ = self->priv->options;
+ _tmp361_ = self->priv->options;
#line 1154 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp364_ = option;
+ _tmp362_ = option;
#line 1154 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp365_ = _tmp364_->name;
+ _tmp363_ = _tmp362_->name;
#line 1154 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp366_ = g_strdup (_tmp365_);
+ _tmp364_ = g_strdup (_tmp363_);
#line 1154 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp367_ = index;
+ _tmp365_ = index;
#line 1154 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- g_hash_table_insert (_tmp363_, _tmp366_, (gpointer) ((gintptr) ((gint) _tmp367_)));
+ g_hash_table_insert (_tmp361_, _tmp364_, (gpointer) ((gintptr) ((gint) _tmp365_)));
#line 879 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
-#line 10550 "scanner.c"
+#line 10473 "scanner.c"
}
@@ -10572,7 +10495,7 @@ static gdouble scanner_convert_page_size (Scanner* self, SANE_Option_Descriptor*
_tmp1_ = _tmp0_->unit;
#line 1159 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp1_ == SANE_UNIT_PIXEL) {
-#line 10568 "scanner.c"
+#line 10491 "scanner.c"
gdouble _tmp2_ = 0.0;
gdouble _tmp3_ = 0.0;
#line 1160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -10583,7 +10506,7 @@ static gdouble scanner_convert_page_size (Scanner* self, SANE_Option_Descriptor*
result = (_tmp2_ * _tmp3_) / 254.0;
#line 1160 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 10579 "scanner.c"
+#line 10502 "scanner.c"
} else {
SANE_Option_Descriptor* _tmp4_ = NULL;
SANE_Unit _tmp5_ = 0;
@@ -10593,7 +10516,7 @@ static gdouble scanner_convert_page_size (Scanner* self, SANE_Option_Descriptor*
_tmp5_ = _tmp4_->unit;
#line 1161 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp5_ == SANE_UNIT_MM) {
-#line 10589 "scanner.c"
+#line 10512 "scanner.c"
gdouble _tmp6_ = 0.0;
#line 1162 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp6_ = size;
@@ -10601,7 +10524,7 @@ static gdouble scanner_convert_page_size (Scanner* self, SANE_Option_Descriptor*
result = _tmp6_ / 10.0;
#line 1162 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 10597 "scanner.c"
+#line 10520 "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");
@@ -10609,7 +10532,7 @@ static gdouble scanner_convert_page_size (Scanner* self, SANE_Option_Descriptor*
result = (gdouble) 0.0f;
#line 1166 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 10605 "scanner.c"
+#line 10528 "scanner.c"
}
}
}
@@ -10647,11 +10570,11 @@ static SANE_Option_Descriptor* scanner_get_option_by_name (Scanner* self, SANE_H
if (index) {
#line 1174 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*index = _vala_index;
-#line 10643 "scanner.c"
+#line 10566 "scanner.c"
}
#line 1174 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 10647 "scanner.c"
+#line 10570 "scanner.c"
}
#line 1176 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp4_ = handle;
@@ -10665,11 +10588,11 @@ static SANE_Option_Descriptor* scanner_get_option_by_name (Scanner* self, SANE_H
if (index) {
#line 1176 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*index = _vala_index;
-#line 10661 "scanner.c"
+#line 10584 "scanner.c"
}
#line 1176 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 10665 "scanner.c"
+#line 10588 "scanner.c"
}
@@ -10701,7 +10624,7 @@ static void scanner_do_complete_document (Scanner* self) {
self->priv->state = SCAN_STATE_OPEN;
#line 1192 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
-#line 10697 "scanner.c"
+#line 10620 "scanner.c"
}
#line 1198 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = notify_document_done_new ();
@@ -10713,7 +10636,7 @@ static void scanner_do_complete_document (Scanner* self) {
_notify_unref0 (_tmp4_);
#line 1199 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_set_scanning (self, FALSE);
-#line 10709 "scanner.c"
+#line 10632 "scanner.c"
}
@@ -10765,7 +10688,7 @@ static void scanner_do_start (Scanner* self) {
if (_tmp9_ == SANE_STATUS_GOOD) {
#line 1211 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_GET_PARAMETERS;
-#line 10761 "scanner.c"
+#line 10684 "scanner.c"
} else {
SANE_Status _tmp10_ = 0;
#line 1212 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -10774,7 +10697,7 @@ static void scanner_do_start (Scanner* self) {
if (_tmp10_ == SANE_STATUS_NO_DOCS) {
#line 1213 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_do_complete_document (self);
-#line 10770 "scanner.c"
+#line 10693 "scanner.c"
} else {
SANE_Status _tmp11_ = 0;
const gchar* _tmp12_ = NULL;
@@ -10792,7 +10715,7 @@ static void scanner_do_start (Scanner* self) {
_tmp14_ = _ ("Unable to start scan");
#line 1217 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_fail_scan (self, (gint) _tmp13_, _tmp14_);
-#line 10788 "scanner.c"
+#line 10711 "scanner.c"
}
}
}
@@ -10807,7 +10730,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 10803 "scanner.c"
+#line 10726 "scanner.c"
{
gchar* _tmp1_ = NULL;
#line 106 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -10816,11 +10739,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 10812 "scanner.c"
+#line 10735 "scanner.c"
}
#line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_FRAME_RGB:
-#line 10816 "scanner.c"
+#line 10739 "scanner.c"
{
gchar* _tmp2_ = NULL;
#line 108 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -10829,11 +10752,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 10825 "scanner.c"
+#line 10748 "scanner.c"
}
#line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_FRAME_RED:
-#line 10829 "scanner.c"
+#line 10752 "scanner.c"
{
gchar* _tmp3_ = NULL;
#line 110 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -10842,11 +10765,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 10838 "scanner.c"
+#line 10761 "scanner.c"
}
#line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_FRAME_GREEN:
-#line 10842 "scanner.c"
+#line 10765 "scanner.c"
{
gchar* _tmp4_ = NULL;
#line 112 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -10855,11 +10778,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 10851 "scanner.c"
+#line 10774 "scanner.c"
}
#line 103 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
case SANE_FRAME_BLUE:
-#line 10855 "scanner.c"
+#line 10778 "scanner.c"
{
gchar* _tmp5_ = NULL;
#line 114 "/home/bob/bzr/simple-scan/trunk/src/sane.vapi"
@@ -10868,7 +10791,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 10864 "scanner.c"
+#line 10787 "scanner.c"
}
default:
{
@@ -10882,7 +10805,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 10878 "scanner.c"
+#line 10801 "scanner.c"
}
}
}
@@ -10908,52 +10831,47 @@ static void scanner_do_get_parameters (Scanner* self) {
SANE_Frame _tmp18_ = 0;
gchar* _tmp19_ = NULL;
gchar* _tmp20_ = NULL;
- const gchar* _tmp21_ = NULL;
- SANE_Parameters _tmp22_ = {0};
- gint _tmp23_ = 0;
- SANE_Parameters _tmp24_ = {0};
- gint _tmp25_ = 0;
- SANE_Parameters _tmp26_ = {0};
- gint _tmp27_ = 0;
- SANE_Parameters _tmp28_ = {0};
- gint _tmp29_ = 0;
+ SANE_Parameters _tmp21_ = {0};
+ gint _tmp22_ = 0;
+ SANE_Parameters _tmp23_ = {0};
+ gint _tmp24_ = 0;
+ SANE_Parameters _tmp25_ = {0};
+ gint _tmp26_ = 0;
+ SANE_Parameters _tmp27_ = {0};
+ gint _tmp28_ = 0;
ScanPageInfo* info = NULL;
+ ScanPageInfo* _tmp29_ = NULL;
ScanPageInfo* _tmp30_ = NULL;
- ScanPageInfo* _tmp31_ = NULL;
- SANE_Parameters _tmp32_ = {0};
- gint _tmp33_ = 0;
- ScanPageInfo* _tmp34_ = NULL;
- SANE_Parameters _tmp35_ = {0};
- gint _tmp36_ = 0;
- ScanPageInfo* _tmp37_ = NULL;
- SANE_Parameters _tmp38_ = {0};
- gint _tmp39_ = 0;
+ SANE_Parameters _tmp31_ = {0};
+ gint _tmp32_ = 0;
+ ScanPageInfo* _tmp33_ = NULL;
+ SANE_Parameters _tmp34_ = {0};
+ gint _tmp35_ = 0;
+ ScanPageInfo* _tmp36_ = NULL;
+ SANE_Parameters _tmp37_ = {0};
+ gint _tmp38_ = 0;
+ gboolean _tmp39_ = FALSE;
gboolean _tmp40_ = FALSE;
gboolean _tmp41_ = FALSE;
- gboolean _tmp42_ = FALSE;
- SANE_Parameters _tmp43_ = {0};
- gint _tmp44_ = 0;
- gboolean _tmp47_ = FALSE;
- gboolean _tmp50_ = FALSE;
- gboolean _tmp53_ = FALSE;
- gint _tmp57_ = 0;
- SANE_Parameters _tmp58_ = {0};
- SANE_Frame _tmp59_ = 0;
+ SANE_Parameters _tmp42_ = {0};
+ gint _tmp43_ = 0;
+ gint _tmp53_ = 0;
+ SANE_Parameters _tmp54_ = {0};
+ SANE_Frame _tmp55_ = 0;
+ ScanPageInfo* _tmp56_ = NULL;
+ ScanPageInfo* _tmp57_ = NULL;
+ ScanJob* _tmp58_ = NULL;
+ gdouble _tmp59_ = 0.0;
ScanPageInfo* _tmp60_ = NULL;
- gint _tmp61_ = 0;
- ScanPageInfo* _tmp62_ = NULL;
- ScanJob* _tmp63_ = NULL;
- gdouble _tmp64_ = 0.0;
- ScanPageInfo* _tmp65_ = NULL;
- const gchar* _tmp66_ = NULL;
- gchar* _tmp67_ = NULL;
- gint _tmp68_ = 0;
- gint _tmp69_ = 0;
+ const gchar* _tmp61_ = NULL;
+ gchar* _tmp62_ = NULL;
+ gint _tmp63_ = 0;
+ gint _tmp64_ = 0;
gint buffer_size = 0;
- SANE_Parameters _tmp76_ = {0};
- gint _tmp77_ = 0;
- gint _tmp78_ = 0;
- guchar* _tmp79_ = NULL;
+ SANE_Parameters _tmp71_ = {0};
+ gint _tmp72_ = 0;
+ gint _tmp73_ = 0;
+ guchar* _tmp74_ = NULL;
#line 1223 "/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"
@@ -10978,7 +10896,7 @@ static void scanner_do_get_parameters (Scanner* self) {
_tmp6_ = status;
#line 1227 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp6_ != SANE_STATUS_GOOD) {
-#line 10974 "scanner.c"
+#line 10892 "scanner.c"
SANE_Status _tmp7_ = 0;
const gchar* _tmp8_ = NULL;
SANE_Status _tmp9_ = 0;
@@ -10997,7 +10915,7 @@ static void scanner_do_get_parameters (Scanner* self) {
scanner_fail_scan (self, (gint) _tmp9_, _tmp10_);
#line 1233 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
-#line 10993 "scanner.c"
+#line 10911 "scanner.c"
}
#line 1236 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp11_ = self->priv->job_queue;
@@ -11015,11 +10933,11 @@ static void scanner_do_get_parameters (Scanner* self) {
if (_tmp16_) {
#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = "SANE_TRUE";
-#line 11011 "scanner.c"
+#line 10929 "scanner.c"
} else {
#line 1240 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp14_ = "SANE_FALSE";
-#line 11015 "scanner.c"
+#line 10933 "scanner.c"
}
#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp17_ = self->priv->parameters;
@@ -11030,220 +10948,210 @@ static void scanner_do_get_parameters (Scanner* self) {
#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp20_ = _tmp19_;
#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp21_ = _tmp14_;
-#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp22_ = self->priv->parameters;
+ _tmp21_ = self->priv->parameters;
#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp23_ = _tmp22_.bytes_per_line;
+ _tmp22_ = _tmp21_.bytes_per_line;
#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp24_ = self->priv->parameters;
+ _tmp23_ = self->priv->parameters;
#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp25_ = _tmp24_.pixels_per_line;
+ _tmp24_ = _tmp23_.pixels_per_line;
#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp26_ = self->priv->parameters;
+ _tmp25_ = self->priv->parameters;
#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp27_ = _tmp26_.lines;
+ _tmp26_ = _tmp25_.lines;
#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp28_ = self->priv->parameters;
+ _tmp27_ = self->priv->parameters;
#line 1238 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp29_ = _tmp28_.depth;
+ _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=" \
-"%d pixels_per_line=%d lines=%d depth=%d", _tmp20_, _tmp21_, _tmp23_, _tmp25_, _tmp27_, _tmp29_);
+"%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"
_g_free0 (_tmp20_);
#line 1246 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp30_ = scan_page_info_new ();
+ _tmp29_ = scan_page_info_new ();
#line 1246 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- info = _tmp30_;
+ info = _tmp29_;
#line 1247 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp31_ = info;
+ _tmp30_ = info;
#line 1247 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp32_ = self->priv->parameters;
+ _tmp31_ = self->priv->parameters;
#line 1247 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp33_ = _tmp32_.pixels_per_line;
+ _tmp32_ = _tmp31_.pixels_per_line;
#line 1247 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp31_->width = _tmp33_;
+ _tmp30_->width = _tmp32_;
#line 1248 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp34_ = info;
+ _tmp33_ = info;
#line 1248 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp35_ = self->priv->parameters;
+ _tmp34_ = self->priv->parameters;
#line 1248 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp36_ = _tmp35_.lines;
+ _tmp35_ = _tmp34_.lines;
#line 1248 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp34_->height = _tmp36_;
+ _tmp33_->height = _tmp35_;
#line 1249 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp37_ = info;
+ _tmp36_ = info;
#line 1249 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp38_ = self->priv->parameters;
+ _tmp37_ = self->priv->parameters;
#line 1249 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp39_ = _tmp38_.depth;
+ _tmp38_ = _tmp37_.depth;
#line 1249 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp37_->depth = _tmp39_;
+ _tmp36_->depth = _tmp38_;
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp43_ = self->priv->parameters;
+ _tmp42_ = self->priv->parameters;
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp44_ = _tmp43_.depth;
+ _tmp43_ = _tmp42_.depth;
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp44_ == 8) {
-#line 11081 "scanner.c"
- SANE_Parameters _tmp45_ = {0};
- SANE_Frame _tmp46_ = 0;
+ if (_tmp43_ == 8) {
+#line 10997 "scanner.c"
+ SANE_Parameters _tmp44_ = {0};
+ SANE_Frame _tmp45_ = 0;
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp45_ = self->priv->parameters;
+ _tmp44_ = self->priv->parameters;
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp46_ = _tmp45_.format;
+ _tmp45_ = _tmp44_.format;
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp42_ = _tmp46_ == SANE_FRAME_GRAY;
-#line 11090 "scanner.c"
+ _tmp41_ = _tmp45_ == SANE_FRAME_GRAY;
+#line 11006 "scanner.c"
} else {
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp42_ = FALSE;
-#line 11094 "scanner.c"
+ _tmp41_ = FALSE;
+#line 11010 "scanner.c"
}
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp47_ = _tmp42_;
+ if (_tmp41_) {
+#line 11014 "scanner.c"
+ ScanJob* _tmp46_ = NULL;
+ gint _tmp47_ = 0;
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp47_) {
-#line 11100 "scanner.c"
- ScanJob* _tmp48_ = NULL;
- gint _tmp49_ = 0;
+ _tmp46_ = job;
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp48_ = job;
-#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp49_ = _tmp48_->depth;
+ _tmp47_ = _tmp46_->depth;
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp41_ = _tmp49_ == 2;
-#line 11109 "scanner.c"
+ _tmp40_ = _tmp47_ == 2;
+#line 11023 "scanner.c"
} else {
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp41_ = FALSE;
-#line 11113 "scanner.c"
+ _tmp40_ = FALSE;
+#line 11027 "scanner.c"
}
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp50_ = _tmp41_;
-#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp50_) {
-#line 11119 "scanner.c"
- ScanJob* _tmp51_ = NULL;
- ScanMode _tmp52_ = 0;
+ if (_tmp40_) {
+#line 11031 "scanner.c"
+ ScanJob* _tmp48_ = NULL;
+ ScanMode _tmp49_ = 0;
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp51_ = job;
+ _tmp48_ = job;
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp52_ = _tmp51_->scan_mode;
+ _tmp49_ = _tmp48_->scan_mode;
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp40_ = _tmp52_ == SCAN_MODE_GRAY;
-#line 11128 "scanner.c"
+ _tmp39_ = _tmp49_ == SCAN_MODE_GRAY;
+#line 11040 "scanner.c"
} else {
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp40_ = FALSE;
-#line 11132 "scanner.c"
+ _tmp39_ = FALSE;
+#line 11044 "scanner.c"
}
#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp53_ = _tmp40_;
-#line 1252 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp53_) {
-#line 11138 "scanner.c"
- ScanPageInfo* _tmp54_ = NULL;
- ScanJob* _tmp55_ = NULL;
- gint _tmp56_ = 0;
+ if (_tmp39_) {
+#line 11048 "scanner.c"
+ ScanPageInfo* _tmp50_ = NULL;
+ ScanJob* _tmp51_ = NULL;
+ gint _tmp52_ = 0;
#line 1253 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp54_ = info;
+ _tmp50_ = info;
#line 1253 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp55_ = job;
+ _tmp51_ = job;
#line 1253 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp56_ = _tmp55_->depth;
+ _tmp52_ = _tmp51_->depth;
#line 1253 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp54_->depth = _tmp56_;
-#line 11150 "scanner.c"
+ _tmp50_->depth = _tmp52_;
+#line 11060 "scanner.c"
}
#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp58_ = self->priv->parameters;
+ _tmp54_ = self->priv->parameters;
#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp59_ = _tmp58_.format;
+ _tmp55_ = _tmp54_.format;
#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp59_ == SANE_FRAME_GRAY) {
+ if (_tmp55_ == SANE_FRAME_GRAY) {
#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp57_ = 1;
-#line 11160 "scanner.c"
+ _tmp53_ = 1;
+#line 11070 "scanner.c"
} else {
#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp57_ = 3;
-#line 11164 "scanner.c"
+ _tmp53_ = 3;
+#line 11074 "scanner.c"
}
#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp60_ = info;
-#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp61_ = _tmp57_;
+ _tmp56_ = info;
#line 1254 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp60_->n_channels = _tmp61_;
+ _tmp56_->n_channels = _tmp53_;
#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp62_ = info;
+ _tmp57_ = info;
#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp63_ = job;
+ _tmp58_ = job;
#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp64_ = _tmp63_->dpi;
+ _tmp59_ = _tmp58_->dpi;
#line 1255 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp62_->dpi = _tmp64_;
+ _tmp57_->dpi = _tmp59_;
#line 1256 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp65_ = info;
+ _tmp60_ = info;
#line 1256 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp66_ = self->priv->current_device;
+ _tmp61_ = self->priv->current_device;
#line 1256 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp67_ = g_strdup (_tmp66_);
+ _tmp62_ = g_strdup (_tmp61_);
#line 1256 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp65_->device);
+ _g_free0 (_tmp60_->device);
#line 1256 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp65_->device = _tmp67_;
+ _tmp60_->device = _tmp62_;
#line 1258 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp68_ = self->priv->page_number;
+ _tmp63_ = self->priv->page_number;
#line 1258 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp69_ = self->priv->notified_page;
+ _tmp64_ = self->priv->notified_page;
#line 1258 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp68_ != _tmp69_) {
-#line 11196 "scanner.c"
- ScanJob* _tmp70_ = NULL;
- gint _tmp71_ = 0;
- ScanPageInfo* _tmp72_ = NULL;
- NotifyGotPageInfo* _tmp73_ = NULL;
- NotifyGotPageInfo* _tmp74_ = NULL;
- gint _tmp75_ = 0;
+ if (_tmp63_ != _tmp64_) {
+#line 11104 "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"
- _tmp70_ = job;
+ _tmp65_ = job;
#line 1260 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp71_ = _tmp70_->id;
+ _tmp66_ = _tmp65_->id;
#line 1260 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp72_ = info;
+ _tmp67_ = info;
#line 1260 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp73_ = notify_got_page_info_new (_tmp71_, _tmp72_);
+ _tmp68_ = notify_got_page_info_new (_tmp66_, _tmp67_);
#line 1260 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp74_ = _tmp73_;
+ _tmp69_ = _tmp68_;
#line 1260 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_notify (self, (Notify*) _tmp74_);
+ scanner_notify (self, (Notify*) _tmp69_);
#line 1260 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _notify_unref0 (_tmp74_);
+ _notify_unref0 (_tmp69_);
#line 1261 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp75_ = self->priv->page_number;
+ _tmp70_ = self->priv->page_number;
#line 1261 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- self->priv->notified_page = _tmp75_;
-#line 11221 "scanner.c"
+ self->priv->notified_page = _tmp70_;
+#line 11129 "scanner.c"
}
#line 1265 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp76_ = self->priv->parameters;
+ _tmp71_ = self->priv->parameters;
#line 1265 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp77_ = _tmp76_.bytes_per_line;
+ _tmp72_ = _tmp71_.bytes_per_line;
#line 1265 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- buffer_size = _tmp77_ + 1;
+ buffer_size = _tmp72_ + 1;
#line 1266 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp78_ = buffer_size;
+ _tmp73_ = buffer_size;
#line 1266 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp79_ = g_new0 (guchar, _tmp78_);
+ _tmp74_ = g_new0 (guchar, _tmp73_);
#line 1266 "/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"
- self->priv->buffer = _tmp79_;
+ self->priv->buffer = _tmp74_;
#line 1266 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- self->priv->buffer_length1 = _tmp78_;
+ self->priv->buffer_length1 = _tmp73_;
#line 1266 "/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"
@@ -11258,7 +11166,7 @@ static void scanner_do_get_parameters (Scanner* self) {
_scan_page_info_unref0 (info);
#line 1223 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
-#line 11253 "scanner.c"
+#line 11161 "scanner.c"
}
@@ -11303,7 +11211,7 @@ static void scanner_do_complete_page (Scanner* self) {
_tmp8_ = _tmp7_.last_frame;
#line 1280 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (!_tmp8_) {
-#line 11298 "scanner.c"
+#line 11206 "scanner.c"
gint _tmp9_ = 0;
#line 1282 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp9_ = self->priv->pass_number;
@@ -11315,7 +11223,7 @@ static void scanner_do_complete_page (Scanner* self) {
_scan_job_unref0 (job);
#line 1284 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
-#line 11310 "scanner.c"
+#line 11218 "scanner.c"
}
#line 1288 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp10_ = job;
@@ -11323,7 +11231,7 @@ static void scanner_do_complete_page (Scanner* self) {
_tmp11_ = _tmp10_->type;
#line 1288 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp11_ != SCAN_TYPE_SINGLE) {
-#line 11318 "scanner.c"
+#line 11226 "scanner.c"
gint _tmp12_ = 0;
ScanJob* _tmp13_ = NULL;
gint _tmp14_ = 0;
@@ -11353,13 +11261,13 @@ static void scanner_do_complete_page (Scanner* self) {
_scan_job_unref0 (job);
#line 1294 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
-#line 11348 "scanner.c"
+#line 11256 "scanner.c"
}
#line 1297 "/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"
_scan_job_unref0 (job);
-#line 11354 "scanner.c"
+#line 11262 "scanner.c"
}
@@ -11389,16 +11297,15 @@ static void scanner_do_read (Scanner* self) {
gchar* _tmp15_ = NULL;
SANE_Int _tmp16_ = {0};
SANE_Status _tmp17_ = 0;
- SANE_Status _tmp30_ = 0;
+ SANE_Status _tmp29_ = 0;
gboolean full_read = FALSE;
- gboolean _tmp35_ = FALSE;
- gint _tmp36_ = 0;
- gboolean _tmp39_ = FALSE;
+ gboolean _tmp34_ = FALSE;
+ gint _tmp35_ = 0;
+ gint _tmp38_ = 0;
+ SANE_Int _tmp39_ = {0};
gint _tmp40_ = 0;
- SANE_Int _tmp41_ = {0};
+ SANE_Parameters _tmp41_ = {0};
gint _tmp42_ = 0;
- SANE_Parameters _tmp43_ = {0};
- gint _tmp44_ = 0;
#line 1300 "/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"
@@ -11455,19 +11362,18 @@ static void scanner_do_read (Scanner* self) {
_tmp17_ = status;
#line 1313 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp17_ == SANE_STATUS_EOF) {
-#line 11450 "scanner.c"
+#line 11357 "scanner.c"
gboolean _tmp18_ = FALSE;
SANE_Parameters _tmp19_ = {0};
gint _tmp20_ = 0;
- gboolean _tmp24_ = FALSE;
- gint _tmp28_ = 0;
+ gint _tmp27_ = 0;
#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp19_ = self->priv->parameters;
#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp20_ = _tmp19_.lines;
#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp20_ > 0) {
-#line 11462 "scanner.c"
+#line 11368 "scanner.c"
gint _tmp21_ = 0;
SANE_Parameters _tmp22_ = {0};
gint _tmp23_ = 0;
@@ -11479,41 +11385,39 @@ static void scanner_do_read (Scanner* self) {
_tmp23_ = _tmp22_.lines;
#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = _tmp21_ != _tmp23_;
-#line 11474 "scanner.c"
+#line 11380 "scanner.c"
} else {
#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp18_ = FALSE;
-#line 11478 "scanner.c"
+#line 11384 "scanner.c"
}
#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp24_ = _tmp18_;
-#line 1315 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp24_) {
-#line 11484 "scanner.c"
- gint _tmp25_ = 0;
- SANE_Parameters _tmp26_ = {0};
- gint _tmp27_ = 0;
+ if (_tmp18_) {
+#line 11388 "scanner.c"
+ gint _tmp24_ = 0;
+ SANE_Parameters _tmp25_ = {0};
+ gint _tmp26_ = 0;
#line 1316 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp25_ = self->priv->line_count;
+ _tmp24_ = self->priv->line_count;
#line 1316 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp26_ = self->priv->parameters;
+ _tmp25_ = self->priv->parameters;
#line 1316 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp27_ = _tmp26_.lines;
+ _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", _tmp25_, _tmp27_);
-#line 11496 "scanner.c"
+ g_warning ("scanner.vala:1316: Scan completed with %d lines, expected %d lines", _tmp24_, _tmp26_);
+#line 11400 "scanner.c"
}
#line 1317 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp28_ = self->priv->n_used;
+ _tmp27_ = self->priv->n_used;
#line 1317 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp28_ > 0) {
-#line 11502 "scanner.c"
- gint _tmp29_ = 0;
+ if (_tmp27_ > 0) {
+#line 11406 "scanner.c"
+ gint _tmp28_ = 0;
#line 1318 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp29_ = self->priv->n_used;
+ _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", _tmp29_);
-#line 11508 "scanner.c"
+ g_warning ("scanner.vala:1318: Scan complete with %d bytes of unused data", _tmp28_);
+#line 11412 "scanner.c"
}
#line 1319 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_do_complete_page (self);
@@ -11521,779 +11425,764 @@ static void scanner_do_read (Scanner* self) {
_scan_job_unref0 (job);
#line 1320 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
-#line 11516 "scanner.c"
+#line 11420 "scanner.c"
}
#line 1324 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp30_ = status;
+ _tmp29_ = status;
#line 1324 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp30_ != SANE_STATUS_GOOD) {
-#line 11522 "scanner.c"
- SANE_Status _tmp31_ = 0;
- const gchar* _tmp32_ = NULL;
- SANE_Status _tmp33_ = 0;
- const gchar* _tmp34_ = NULL;
+ if (_tmp29_ != SANE_STATUS_GOOD) {
+#line 11426 "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"
- _tmp31_ = status;
+ _tmp30_ = status;
#line 1326 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp32_ = sane_strstatus (_tmp31_);
+ _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", _tmp32_);
+ g_warning ("scanner.vala:1326: Unable to read frame from device: %s", _tmp31_);
#line 1327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp33_ = status;
+ _tmp32_ = status;
#line 1327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp34_ = _ ("Error communicating with scanner");
+ _tmp33_ = _ ("Error communicating with scanner");
#line 1327 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_fail_scan (self, (gint) _tmp33_, _tmp34_);
+ scanner_fail_scan (self, (gint) _tmp32_, _tmp33_);
#line 1330 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
#line 1330 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
-#line 11543 "scanner.c"
+#line 11447 "scanner.c"
}
#line 1333 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
full_read = FALSE;
#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp36_ = self->priv->n_used;
+ _tmp35_ = self->priv->n_used;
#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp36_ == 0) {
-#line 11551 "scanner.c"
- SANE_Int _tmp37_ = {0};
- guchar* _tmp38_ = NULL;
- gint _tmp38__length1 = 0;
+ if (_tmp35_ == 0) {
+#line 11455 "scanner.c"
+ SANE_Int _tmp36_ = {0};
+ guchar* _tmp37_ = NULL;
+ gint _tmp37__length1 = 0;
#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp37_ = n_read;
+ _tmp36_ = n_read;
#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp38_ = self->priv->buffer;
+ _tmp37_ = self->priv->buffer;
#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp38__length1 = self->priv->buffer_length1;
+ _tmp37__length1 = self->priv->buffer_length1;
#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp35_ = _tmp37_ == ((SANE_Int) _tmp38__length1);
-#line 11563 "scanner.c"
+ _tmp34_ = _tmp36_ == ((SANE_Int) _tmp37__length1);
+#line 11467 "scanner.c"
} else {
#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp35_ = FALSE;
-#line 11567 "scanner.c"
+ _tmp34_ = FALSE;
+#line 11471 "scanner.c"
}
#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp39_ = _tmp35_;
-#line 1334 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp39_) {
+ if (_tmp34_) {
#line 1335 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
full_read = TRUE;
-#line 11575 "scanner.c"
+#line 11477 "scanner.c"
}
#line 1336 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp40_ = self->priv->n_used;
+ _tmp38_ = self->priv->n_used;
#line 1336 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp41_ = n_read;
+ _tmp39_ = n_read;
#line 1336 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- self->priv->n_used = _tmp40_ + ((gint) _tmp41_);
+ self->priv->n_used = _tmp38_ + ((gint) _tmp39_);
#line 1339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp42_ = self->priv->n_used;
+ _tmp40_ = self->priv->n_used;
#line 1339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp43_ = self->priv->parameters;
+ _tmp41_ = self->priv->parameters;
#line 1339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp44_ = _tmp43_.bytes_per_line;
+ _tmp42_ = _tmp41_.bytes_per_line;
#line 1339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp42_ >= _tmp44_) {
-#line 11591 "scanner.c"
+ if (_tmp40_ >= _tmp42_) {
+#line 11493 "scanner.c"
ScanLine* line = NULL;
- ScanLine* _tmp45_ = NULL;
- SANE_Parameters _tmp46_ = {0};
- SANE_Frame _tmp47_ = 0;
- ScanLine* _tmp53_ = NULL;
- SANE_Parameters _tmp54_ = {0};
- gint _tmp55_ = 0;
- ScanLine* _tmp56_ = NULL;
- SANE_Parameters _tmp57_ = {0};
- gint _tmp58_ = 0;
+ ScanLine* _tmp43_ = NULL;
+ SANE_Parameters _tmp44_ = {0};
+ SANE_Frame _tmp45_ = 0;
+ ScanLine* _tmp51_ = NULL;
+ SANE_Parameters _tmp52_ = {0};
+ gint _tmp53_ = 0;
+ ScanLine* _tmp54_ = NULL;
+ SANE_Parameters _tmp55_ = {0};
+ gint _tmp56_ = 0;
+ ScanLine* _tmp57_ = NULL;
+ guchar* _tmp58_ = NULL;
+ gint _tmp58__length1 = 0;
ScanLine* _tmp59_ = NULL;
- guchar* _tmp60_ = NULL;
- gint _tmp60__length1 = 0;
- ScanLine* _tmp61_ = NULL;
- SANE_Parameters _tmp62_ = {0};
+ SANE_Parameters _tmp60_ = {0};
+ gint _tmp61_ = 0;
+ ScanLine* _tmp62_ = NULL;
gint _tmp63_ = 0;
ScanLine* _tmp64_ = NULL;
gint _tmp65_ = 0;
ScanLine* _tmp66_ = NULL;
gint _tmp67_ = 0;
- ScanLine* _tmp68_ = NULL;
- gint _tmp69_ = 0;
+ gint _tmp68_ = 0;
+ ScanLine* _tmp69_ = NULL;
gint _tmp70_ = 0;
- ScanLine* _tmp71_ = NULL;
- gint _tmp72_ = 0;
gint buffer_size = 0;
- guchar* _tmp73_ = NULL;
- gint _tmp73__length1 = 0;
- gboolean _tmp74_ = FALSE;
- gint _tmp78_ = 0;
- guchar* _tmp79_ = NULL;
+ ScanLine* _tmp71_ = NULL;
+ guchar* _tmp72_ = NULL;
+ gint _tmp72__length1 = 0;
+ gboolean _tmp73_ = FALSE;
+ gint _tmp77_ = 0;
+ guchar* _tmp78_ = NULL;
gint n_remaining = 0;
- gint _tmp80_ = 0;
- ScanLine* _tmp81_ = NULL;
- gint _tmp82_ = 0;
- ScanLine* _tmp83_ = NULL;
- gint _tmp84_ = 0;
+ gint _tmp79_ = 0;
+ ScanLine* _tmp80_ = NULL;
+ gint _tmp81_ = 0;
+ ScanLine* _tmp82_ = NULL;
+ gint _tmp83_ = 0;
+ gboolean _tmp100_ = FALSE;
+ gboolean _tmp101_ = FALSE;
gboolean _tmp102_ = FALSE;
- gboolean _tmp103_ = FALSE;
- gboolean _tmp104_ = FALSE;
- SANE_Parameters _tmp105_ = {0};
- gint _tmp106_ = 0;
- gboolean _tmp109_ = FALSE;
- gboolean _tmp112_ = FALSE;
- gboolean _tmp115_ = FALSE;
- ScanJob* _tmp160_ = NULL;
- gint _tmp161_ = 0;
- ScanLine* _tmp162_ = NULL;
- NotifyGotLine* _tmp163_ = NULL;
- NotifyGotLine* _tmp164_ = NULL;
+ SANE_Parameters _tmp103_ = {0};
+ gint _tmp104_ = 0;
+ ScanJob* _tmp153_ = NULL;
+ gint _tmp154_ = 0;
+ ScanLine* _tmp155_ = NULL;
+ NotifyGotLine* _tmp156_ = NULL;
+ NotifyGotLine* _tmp157_ = NULL;
#line 1341 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp45_ = scan_line_new ();
+ _tmp43_ = scan_line_new ();
#line 1341 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- line = _tmp45_;
+ line = _tmp43_;
#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp46_ = self->priv->parameters;
+ _tmp44_ = self->priv->parameters;
#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp47_ = _tmp46_.format;
+ _tmp45_ = _tmp44_.format;
#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- switch (_tmp47_) {
+ switch (_tmp45_) {
#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_FRAME_GRAY:
-#line 11654 "scanner.c"
+#line 11554 "scanner.c"
{
- ScanLine* _tmp48_ = NULL;
+ ScanLine* _tmp46_ = NULL;
#line 1345 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp48_ = line;
+ _tmp46_ = line;
#line 1345 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp48_->channel = 0;
+ _tmp46_->channel = 0;
#line 1346 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 11663 "scanner.c"
+#line 11563 "scanner.c"
}
#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_FRAME_RGB:
-#line 11667 "scanner.c"
+#line 11567 "scanner.c"
{
- ScanLine* _tmp49_ = NULL;
+ ScanLine* _tmp47_ = NULL;
#line 1348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp49_ = line;
+ _tmp47_ = line;
#line 1348 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp49_->channel = -1;
+ _tmp47_->channel = -1;
#line 1349 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 11676 "scanner.c"
+#line 11576 "scanner.c"
}
#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_FRAME_RED:
-#line 11680 "scanner.c"
+#line 11580 "scanner.c"
{
- ScanLine* _tmp50_ = NULL;
+ ScanLine* _tmp48_ = NULL;
#line 1351 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp50_ = line;
+ _tmp48_ = line;
#line 1351 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp50_->channel = 0;
+ _tmp48_->channel = 0;
#line 1352 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 11689 "scanner.c"
+#line 11589 "scanner.c"
}
#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_FRAME_GREEN:
-#line 11693 "scanner.c"
+#line 11593 "scanner.c"
{
- ScanLine* _tmp51_ = NULL;
+ ScanLine* _tmp49_ = NULL;
#line 1354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp51_ = line;
+ _tmp49_ = line;
#line 1354 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp51_->channel = 1;
+ _tmp49_->channel = 1;
#line 1355 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 11702 "scanner.c"
+#line 11602 "scanner.c"
}
#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SANE_FRAME_BLUE:
-#line 11706 "scanner.c"
+#line 11606 "scanner.c"
{
- ScanLine* _tmp52_ = NULL;
+ ScanLine* _tmp50_ = NULL;
#line 1357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp52_ = line;
+ _tmp50_ = line;
#line 1357 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp52_->channel = 2;
+ _tmp50_->channel = 2;
#line 1358 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 11715 "scanner.c"
+#line 11615 "scanner.c"
}
default:
#line 1342 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 11720 "scanner.c"
+#line 11620 "scanner.c"
}
#line 1360 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp53_ = line;
+ _tmp51_ = line;
#line 1360 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp54_ = self->priv->parameters;
+ _tmp52_ = self->priv->parameters;
#line 1360 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp55_ = _tmp54_.pixels_per_line;
+ _tmp53_ = _tmp52_.pixels_per_line;
#line 1360 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp53_->width = _tmp55_;
+ _tmp51_->width = _tmp53_;
#line 1361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp56_ = line;
+ _tmp54_ = line;
#line 1361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp57_ = self->priv->parameters;
+ _tmp55_ = self->priv->parameters;
#line 1361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp58_ = _tmp57_.depth;
+ _tmp56_ = _tmp55_.depth;
#line 1361 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp56_->depth = _tmp58_;
+ _tmp54_->depth = _tmp56_;
#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp59_ = line;
+ _tmp57_ = line;
#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp60_ = self->priv->buffer;
+ _tmp58_ = self->priv->buffer;
#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp60__length1 = self->priv->buffer_length1;
+ _tmp58__length1 = self->priv->buffer_length1;
#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->buffer = NULL;
#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp59_->data = (g_free (_tmp59_->data), NULL);
+ self->priv->buffer_length1 = 0;
#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp59_->data = _tmp60_;
+ _tmp57_->data = (g_free (_tmp57_->data), NULL);
#line 1362 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp59_->data_length1 = _tmp60__length1;
+ _tmp57_->data = _tmp58_;
+#line 1362 "/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"
- _tmp61_ = line;
+ _tmp59_ = line;
#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp62_ = self->priv->parameters;
+ _tmp60_ = self->priv->parameters;
#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp63_ = _tmp62_.bytes_per_line;
+ _tmp61_ = _tmp60_.bytes_per_line;
#line 1363 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp61_->data_length = _tmp63_;
+ _tmp59_->data_length = _tmp61_;
#line 1364 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp64_ = line;
+ _tmp62_ = line;
#line 1364 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp65_ = self->priv->line_count;
+ _tmp63_ = self->priv->line_count;
#line 1364 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp64_->number = _tmp65_;
+ _tmp62_->number = _tmp63_;
#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp66_ = line;
+ _tmp64_ = line;
#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp67_ = self->priv->n_used;
+ _tmp65_ = self->priv->n_used;
#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp68_ = line;
+ _tmp66_ = line;
#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp69_ = _tmp68_->data_length;
+ _tmp67_ = _tmp66_->data_length;
#line 1365 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp66_->n_lines = _tmp67_ / _tmp69_;
+ _tmp64_->n_lines = _tmp65_ / _tmp67_;
#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp70_ = self->priv->line_count;
+ _tmp68_ = self->priv->line_count;
#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp71_ = line;
+ _tmp69_ = line;
#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp72_ = _tmp71_->n_lines;
+ _tmp70_ = _tmp69_->n_lines;
#line 1367 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- self->priv->line_count = _tmp70_ + _tmp72_;
+ self->priv->line_count = _tmp68_ + _tmp70_;
+#line 1370 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp71_ = line;
#line 1370 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp73_ = self->priv->buffer;
+ _tmp72_ = _tmp71_->data;
#line 1370 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp73__length1 = self->priv->buffer_length1;
+ _tmp72__length1 = _tmp71_->data_length1;
#line 1370 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- buffer_size = _tmp73__length1;
+ buffer_size = _tmp72__length1;
#line 1371 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp74_ = full_read;
+ _tmp73_ = full_read;
#line 1371 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp74_) {
-#line 11794 "scanner.c"
- gint _tmp75_ = 0;
- SANE_Parameters _tmp76_ = {0};
- gint _tmp77_ = 0;
+ if (_tmp73_) {
+#line 11698 "scanner.c"
+ gint _tmp74_ = 0;
+ SANE_Parameters _tmp75_ = {0};
+ gint _tmp76_ = 0;
#line 1372 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp75_ = buffer_size;
+ _tmp74_ = buffer_size;
#line 1372 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp76_ = self->priv->parameters;
+ _tmp75_ = self->priv->parameters;
#line 1372 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp77_ = _tmp76_.bytes_per_line;
+ _tmp76_ = _tmp75_.bytes_per_line;
#line 1372 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- buffer_size = _tmp75_ + _tmp77_;
-#line 11806 "scanner.c"
+ buffer_size = _tmp74_ + _tmp76_;
+#line 11710 "scanner.c"
}
#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp78_ = buffer_size;
+ _tmp77_ = buffer_size;
#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp79_ = g_new0 (guchar, _tmp78_);
+ _tmp78_ = g_new0 (guchar, _tmp77_);
#line 1374 "/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"
- self->priv->buffer = _tmp79_;
+ self->priv->buffer = _tmp78_;
#line 1374 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- self->priv->buffer_length1 = _tmp78_;
+ self->priv->buffer_length1 = _tmp77_;
#line 1374 "/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"
- _tmp80_ = self->priv->n_used;
+ _tmp79_ = self->priv->n_used;
#line 1375 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp81_ = line;
+ _tmp80_ = line;
#line 1375 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp82_ = _tmp81_->n_lines;
+ _tmp81_ = _tmp80_->n_lines;
#line 1375 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp83_ = line;
+ _tmp82_ = line;
#line 1375 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp84_ = _tmp83_->data_length;
+ _tmp83_ = _tmp82_->data_length;
#line 1375 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- n_remaining = _tmp80_ - (_tmp82_ * _tmp84_);
+ n_remaining = _tmp79_ - (_tmp81_ * _tmp83_);
#line 1376 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->n_used = 0;
-#line 11834 "scanner.c"
+#line 11738 "scanner.c"
{
gint i = 0;
#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
-#line 11839 "scanner.c"
+#line 11743 "scanner.c"
{
- gboolean _tmp85_ = FALSE;
+ gboolean _tmp84_ = FALSE;
#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp85_ = TRUE;
+ _tmp84_ = TRUE;
#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
-#line 11846 "scanner.c"
- gboolean _tmp86_ = FALSE;
- gint _tmp88_ = 0;
+#line 11750 "scanner.c"
+ gint _tmp86_ = 0;
+ gint _tmp87_ = 0;
+ guchar* _tmp88_ = NULL;
+ gint _tmp88__length1 = 0;
gint _tmp89_ = 0;
- guchar* _tmp90_ = NULL;
- gint _tmp90__length1 = 0;
- gint _tmp91_ = 0;
- ScanLine* _tmp92_ = NULL;
- guchar* _tmp93_ = NULL;
- gint _tmp93__length1 = 0;
+ ScanLine* _tmp90_ = NULL;
+ guchar* _tmp91_ = NULL;
+ gint _tmp91__length1 = 0;
+ gint _tmp92_ = 0;
+ ScanLine* _tmp93_ = NULL;
gint _tmp94_ = 0;
ScanLine* _tmp95_ = NULL;
gint _tmp96_ = 0;
- ScanLine* _tmp97_ = NULL;
- gint _tmp98_ = 0;
- guchar _tmp99_ = '\0';
- guchar _tmp100_ = '\0';
- gint _tmp101_ = 0;
-#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp86_ = _tmp85_;
+ guchar _tmp97_ = '\0';
+ guchar _tmp98_ = '\0';
+ gint _tmp99_ = 0;
#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp86_) {
-#line 11868 "scanner.c"
- gint _tmp87_ = 0;
+ if (!_tmp84_) {
+#line 11769 "scanner.c"
+ gint _tmp85_ = 0;
#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp87_ = i;
+ _tmp85_ = i;
#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- i = _tmp87_ + 1;
-#line 11874 "scanner.c"
+ i = _tmp85_ + 1;
+#line 11775 "scanner.c"
}
#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp85_ = FALSE;
+ _tmp84_ = FALSE;
#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp88_ = i;
+ _tmp86_ = i;
#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp89_ = n_remaining;
+ _tmp87_ = n_remaining;
#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!(_tmp88_ < _tmp89_)) {
+ if (!(_tmp86_ < _tmp87_)) {
#line 1377 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 11886 "scanner.c"
+#line 11787 "scanner.c"
}
#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp90_ = self->priv->buffer;
+ _tmp88_ = self->priv->buffer;
#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp90__length1 = self->priv->buffer_length1;
+ _tmp88__length1 = self->priv->buffer_length1;
#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp91_ = i;
+ _tmp89_ = i;
#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp92_ = line;
+ _tmp90_ = line;
#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp93_ = _tmp92_->data;
+ _tmp91_ = _tmp90_->data;
#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp93__length1 = _tmp92_->data_length1;
+ _tmp91__length1 = _tmp90_->data_length1;
#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp94_ = i;
+ _tmp92_ = i;
#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp95_ = line;
+ _tmp93_ = line;
#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp96_ = _tmp95_->n_lines;
+ _tmp94_ = _tmp93_->n_lines;
#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp97_ = line;
+ _tmp95_ = line;
#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp98_ = _tmp97_->data_length;
+ _tmp96_ = _tmp95_->data_length;
#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp99_ = _tmp93_[_tmp94_ + (_tmp96_ * _tmp98_)];
+ _tmp97_ = _tmp91_[_tmp92_ + (_tmp94_ * _tmp96_)];
#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp90_[_tmp91_] = _tmp99_;
+ _tmp88_[_tmp89_] = _tmp97_;
#line 1379 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp100_ = _tmp90_[_tmp91_];
+ _tmp98_ = _tmp88_[_tmp89_];
#line 1380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp101_ = self->priv->n_used;
+ _tmp99_ = self->priv->n_used;
#line 1380 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- self->priv->n_used = _tmp101_ + 1;
-#line 11920 "scanner.c"
+ self->priv->n_used = _tmp99_ + 1;
+#line 11821 "scanner.c"
}
}
}
#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp105_ = self->priv->parameters;
+ _tmp103_ = self->priv->parameters;
#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp106_ = _tmp105_.depth;
+ _tmp104_ = _tmp103_.depth;
#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp106_ == 8) {
-#line 11930 "scanner.c"
- SANE_Parameters _tmp107_ = {0};
- SANE_Frame _tmp108_ = 0;
+ if (_tmp104_ == 8) {
+#line 11831 "scanner.c"
+ SANE_Parameters _tmp105_ = {0};
+ SANE_Frame _tmp106_ = 0;
#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp107_ = self->priv->parameters;
+ _tmp105_ = self->priv->parameters;
#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp108_ = _tmp107_.format;
+ _tmp106_ = _tmp105_.format;
#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp104_ = _tmp108_ == SANE_FRAME_GRAY;
-#line 11939 "scanner.c"
+ _tmp102_ = _tmp106_ == SANE_FRAME_GRAY;
+#line 11840 "scanner.c"
} else {
#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp104_ = FALSE;
-#line 11943 "scanner.c"
+ _tmp102_ = FALSE;
+#line 11844 "scanner.c"
}
#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp109_ = _tmp104_;
-#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp109_) {
-#line 11949 "scanner.c"
- ScanJob* _tmp110_ = NULL;
- gint _tmp111_ = 0;
+ if (_tmp102_) {
+#line 11848 "scanner.c"
+ ScanJob* _tmp107_ = NULL;
+ gint _tmp108_ = 0;
#line 1386 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp110_ = job;
+ _tmp107_ = job;
#line 1386 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp111_ = _tmp110_->depth;
+ _tmp108_ = _tmp107_->depth;
#line 1386 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp103_ = _tmp111_ == 2;
-#line 11958 "scanner.c"
+ _tmp101_ = _tmp108_ == 2;
+#line 11857 "scanner.c"
} else {
#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp103_ = FALSE;
-#line 11962 "scanner.c"
+ _tmp101_ = FALSE;
+#line 11861 "scanner.c"
}
#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp112_ = _tmp103_;
-#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp112_) {
-#line 11968 "scanner.c"
- ScanJob* _tmp113_ = NULL;
- ScanMode _tmp114_ = 0;
+ if (_tmp101_) {
+#line 11865 "scanner.c"
+ ScanJob* _tmp109_ = NULL;
+ ScanMode _tmp110_ = 0;
#line 1386 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp113_ = job;
+ _tmp109_ = job;
#line 1386 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp114_ = _tmp113_->scan_mode;
+ _tmp110_ = _tmp109_->scan_mode;
#line 1386 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp102_ = _tmp114_ == SCAN_MODE_GRAY;
-#line 11977 "scanner.c"
+ _tmp100_ = _tmp110_ == SCAN_MODE_GRAY;
+#line 11874 "scanner.c"
} else {
#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp102_ = FALSE;
-#line 11981 "scanner.c"
+ _tmp100_ = FALSE;
+#line 11878 "scanner.c"
}
#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp115_ = _tmp102_;
-#line 1385 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp115_) {
-#line 11987 "scanner.c"
+ if (_tmp100_) {
+#line 11882 "scanner.c"
guchar block = '\0';
gint write_offset = 0;
gint block_shift = 0;
- ScanLine* _tmp157_ = NULL;
- ScanLine* _tmp158_ = NULL;
- gint _tmp159_ = 0;
+ ScanLine* _tmp150_ = NULL;
+ ScanLine* _tmp151_ = NULL;
+ gint _tmp152_ = 0;
#line 1388 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
block = (guchar) 0;
#line 1389 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
write_offset = 0;
#line 1390 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
block_shift = 6;
-#line 12000 "scanner.c"
+#line 11895 "scanner.c"
{
gint i = 0;
#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
i = 0;
-#line 12005 "scanner.c"
+#line 11900 "scanner.c"
{
- gboolean _tmp116_ = FALSE;
+ gboolean _tmp111_ = FALSE;
#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp116_ = TRUE;
+ _tmp111_ = TRUE;
#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
-#line 12012 "scanner.c"
- gboolean _tmp117_ = FALSE;
- gint _tmp119_ = 0;
- ScanLine* _tmp120_ = NULL;
- gint _tmp121_ = 0;
+#line 11907 "scanner.c"
+ gint _tmp113_ = 0;
+ ScanLine* _tmp114_ = NULL;
+ gint _tmp115_ = 0;
gint offset = 0;
- gint _tmp122_ = 0;
- ScanLine* _tmp123_ = NULL;
- gint _tmp124_ = 0;
- gint _tmp150_ = 0;
+ gint _tmp116_ = 0;
+ ScanLine* _tmp117_ = NULL;
+ gint _tmp118_ = 0;
+ gint _tmp143_ = 0;
#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp117_ = _tmp116_;
+ if (!_tmp111_) {
+#line 11918 "scanner.c"
+ gint _tmp112_ = 0;
#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp117_) {
-#line 12026 "scanner.c"
- gint _tmp118_ = 0;
+ _tmp112_ = i;
#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp118_ = i;
-#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- i = _tmp118_ + 1;
-#line 12032 "scanner.c"
+ i = _tmp112_ + 1;
+#line 11924 "scanner.c"
}
#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp116_ = FALSE;
+ _tmp111_ = FALSE;
#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp119_ = i;
+ _tmp113_ = i;
#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp120_ = line;
+ _tmp114_ = line;
#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp121_ = _tmp120_->n_lines;
+ _tmp115_ = _tmp114_->n_lines;
#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!(_tmp119_ < _tmp121_)) {
+ if (!(_tmp113_ < _tmp115_)) {
#line 1391 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 12046 "scanner.c"
+#line 11938 "scanner.c"
}
#line 1393 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp122_ = i;
+ _tmp116_ = i;
#line 1393 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp123_ = line;
+ _tmp117_ = line;
#line 1393 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp124_ = _tmp123_->data_length;
+ _tmp118_ = _tmp117_->data_length;
#line 1393 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- offset = _tmp122_ * _tmp124_;
-#line 12056 "scanner.c"
+ offset = _tmp116_ * _tmp118_;
+#line 11948 "scanner.c"
{
gint x = 0;
#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
x = 0;
-#line 12061 "scanner.c"
+#line 11953 "scanner.c"
{
- gboolean _tmp125_ = FALSE;
+ gboolean _tmp119_ = FALSE;
#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp125_ = TRUE;
+ _tmp119_ = TRUE;
#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
-#line 12068 "scanner.c"
- gboolean _tmp126_ = FALSE;
- gint _tmp128_ = 0;
- ScanLine* _tmp129_ = NULL;
- gint _tmp130_ = 0;
+#line 11960 "scanner.c"
+ gint _tmp121_ = 0;
+ ScanLine* _tmp122_ = NULL;
+ gint _tmp123_ = 0;
guchar p = '\0';
- ScanLine* _tmp131_ = NULL;
- guchar* _tmp132_ = NULL;
- gint _tmp132__length1 = 0;
- gint _tmp133_ = 0;
- gint _tmp134_ = 0;
- guchar _tmp135_ = '\0';
+ ScanLine* _tmp124_ = NULL;
+ guchar* _tmp125_ = NULL;
+ gint _tmp125__length1 = 0;
+ gint _tmp126_ = 0;
+ gint _tmp127_ = 0;
+ guchar _tmp128_ = '\0';
guchar sample = '\0';
- guchar _tmp136_ = '\0';
- guchar _tmp139_ = '\0';
- guchar _tmp140_ = '\0';
- gint _tmp141_ = 0;
- gint _tmp142_ = 0;
-#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp126_ = _tmp125_;
+ guchar _tmp129_ = '\0';
+ guchar _tmp132_ = '\0';
+ guchar _tmp133_ = '\0';
+ gint _tmp134_ = 0;
+ gint _tmp135_ = 0;
#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!_tmp126_) {
-#line 12090 "scanner.c"
- gint _tmp127_ = 0;
+ if (!_tmp119_) {
+#line 11979 "scanner.c"
+ gint _tmp120_ = 0;
#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp127_ = x;
+ _tmp120_ = x;
#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- x = _tmp127_ + 1;
-#line 12096 "scanner.c"
+ x = _tmp120_ + 1;
+#line 11985 "scanner.c"
}
#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp125_ = FALSE;
+ _tmp119_ = FALSE;
#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp128_ = x;
+ _tmp121_ = x;
#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp129_ = line;
+ _tmp122_ = line;
#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp130_ = _tmp129_->width;
+ _tmp123_ = _tmp122_->width;
#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (!(_tmp128_ < _tmp130_)) {
+ if (!(_tmp121_ < _tmp123_)) {
#line 1394 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 12110 "scanner.c"
+#line 11999 "scanner.c"
}
#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp131_ = line;
+ _tmp124_ = line;
#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp132_ = _tmp131_->data;
+ _tmp125_ = _tmp124_->data;
#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp132__length1 = _tmp131_->data_length1;
+ _tmp125__length1 = _tmp124_->data_length1;
#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp133_ = offset;
+ _tmp126_ = offset;
#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp134_ = x;
+ _tmp127_ = x;
#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp135_ = _tmp132_[_tmp133_ + _tmp134_];
+ _tmp128_ = _tmp125_[_tmp126_ + _tmp127_];
#line 1396 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- p = _tmp135_;
+ p = _tmp128_;
#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp136_ = p;
+ _tmp129_ = p;
#line 1399 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (((gint) _tmp136_) >= 192) {
+ if (((gint) _tmp129_) >= 192) {
#line 1400 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
sample = (guchar) 3;
-#line 12132 "scanner.c"
+#line 12021 "scanner.c"
} else {
- guchar _tmp137_ = '\0';
+ guchar _tmp130_ = '\0';
#line 1401 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp137_ = p;
+ _tmp130_ = p;
#line 1401 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (((gint) _tmp137_) >= 128) {
+ if (((gint) _tmp130_) >= 128) {
#line 1402 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
sample = (guchar) 2;
-#line 12141 "scanner.c"
+#line 12030 "scanner.c"
} else {
- guchar _tmp138_ = '\0';
+ guchar _tmp131_ = '\0';
#line 1403 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp138_ = p;
+ _tmp131_ = p;
#line 1403 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (((gint) _tmp138_) >= 64) {
+ if (((gint) _tmp131_) >= 64) {
#line 1404 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
sample = (guchar) 1;
-#line 12150 "scanner.c"
+#line 12039 "scanner.c"
} else {
#line 1406 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
sample = (guchar) 0;
-#line 12154 "scanner.c"
+#line 12043 "scanner.c"
}
}
}
#line 1408 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp139_ = block;
+ _tmp132_ = block;
#line 1408 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp140_ = sample;
+ _tmp133_ = sample;
#line 1408 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp141_ = block_shift;
+ _tmp134_ = block_shift;
#line 1408 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- block = _tmp139_ | (_tmp140_ << _tmp141_);
+ block = _tmp132_ | (_tmp133_ << _tmp134_);
#line 1409 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp142_ = block_shift;
+ _tmp135_ = block_shift;
#line 1409 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp142_ == 0) {
-#line 12170 "scanner.c"
- ScanLine* _tmp143_ = NULL;
- guchar* _tmp144_ = NULL;
- gint _tmp144__length1 = 0;
- gint _tmp145_ = 0;
- guchar _tmp146_ = '\0';
- guchar _tmp147_ = '\0';
- gint _tmp148_ = 0;
+ if (_tmp135_ == 0) {
+#line 12059 "scanner.c"
+ ScanLine* _tmp136_ = NULL;
+ guchar* _tmp137_ = NULL;
+ gint _tmp137__length1 = 0;
+ gint _tmp138_ = 0;
+ guchar _tmp139_ = '\0';
+ guchar _tmp140_ = '\0';
+ gint _tmp141_ = 0;
#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp143_ = line;
+ _tmp136_ = line;
#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp144_ = _tmp143_->data;
+ _tmp137_ = _tmp136_->data;
#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp144__length1 = _tmp143_->data_length1;
+ _tmp137__length1 = _tmp136_->data_length1;
#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp145_ = write_offset;
+ _tmp138_ = write_offset;
#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp146_ = block;
+ _tmp139_ = block;
#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp144_[_tmp145_] = _tmp146_;
+ _tmp137_[_tmp138_] = _tmp139_;
#line 1411 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp147_ = _tmp144_[_tmp145_];
+ _tmp140_ = _tmp137_[_tmp138_];
#line 1412 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp148_ = write_offset;
+ _tmp141_ = write_offset;
#line 1412 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- write_offset = _tmp148_ + 1;
+ write_offset = _tmp141_ + 1;
#line 1413 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
block = (guchar) 0;
#line 1414 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
block_shift = 6;
-#line 12200 "scanner.c"
+#line 12089 "scanner.c"
} else {
- gint _tmp149_ = 0;
+ gint _tmp142_ = 0;
#line 1417 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp149_ = block_shift;
+ _tmp142_ = block_shift;
#line 1417 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- block_shift = _tmp149_ - 2;
-#line 12207 "scanner.c"
+ block_shift = _tmp142_ - 2;
+#line 12096 "scanner.c"
}
}
}
}
#line 1421 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp150_ = block_shift;
+ _tmp143_ = block_shift;
#line 1421 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- if (_tmp150_ != 6) {
-#line 12216 "scanner.c"
- ScanLine* _tmp151_ = NULL;
- guchar* _tmp152_ = NULL;
- gint _tmp152__length1 = 0;
- gint _tmp153_ = 0;
- guchar _tmp154_ = '\0';
- guchar _tmp155_ = '\0';
- gint _tmp156_ = 0;
+ if (_tmp143_ != 6) {
+#line 12105 "scanner.c"
+ ScanLine* _tmp144_ = NULL;
+ guchar* _tmp145_ = NULL;
+ gint _tmp145__length1 = 0;
+ gint _tmp146_ = 0;
+ guchar _tmp147_ = '\0';
+ guchar _tmp148_ = '\0';
+ gint _tmp149_ = 0;
#line 1423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp151_ = line;
+ _tmp144_ = line;
#line 1423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp152_ = _tmp151_->data;
+ _tmp145_ = _tmp144_->data;
#line 1423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp152__length1 = _tmp151_->data_length1;
+ _tmp145__length1 = _tmp144_->data_length1;
#line 1423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp153_ = write_offset;
+ _tmp146_ = write_offset;
#line 1423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp154_ = block;
+ _tmp147_ = block;
#line 1423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp152_[_tmp153_] = _tmp154_;
+ _tmp145_[_tmp146_] = _tmp147_;
#line 1423 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp155_ = _tmp152_[_tmp153_];
+ _tmp148_ = _tmp145_[_tmp146_];
#line 1424 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp156_ = write_offset;
+ _tmp149_ = write_offset;
#line 1424 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- write_offset = _tmp156_ + 1;
+ write_offset = _tmp149_ + 1;
#line 1425 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
block = (guchar) 0;
#line 1426 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
block_shift = 6;
-#line 12246 "scanner.c"
+#line 12135 "scanner.c"
}
}
}
}
#line 1430 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp157_ = line;
+ _tmp150_ = line;
#line 1430 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp158_ = line;
+ _tmp151_ = line;
#line 1430 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp159_ = _tmp158_->width;
+ _tmp152_ = _tmp151_->width;
#line 1430 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp157_->data_length = ((_tmp159_ * 2) + 7) / 8;
-#line 12259 "scanner.c"
+ _tmp150_->data_length = ((_tmp152_ * 2) + 7) / 8;
+#line 12148 "scanner.c"
}
#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp160_ = job;
+ _tmp153_ = job;
#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp161_ = _tmp160_->id;
+ _tmp154_ = _tmp153_->id;
#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp162_ = line;
+ _tmp155_ = line;
#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp163_ = notify_got_line_new (_tmp161_, _tmp162_);
+ _tmp156_ = notify_got_line_new (_tmp154_, _tmp155_);
#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp164_ = _tmp163_;
+ _tmp157_ = _tmp156_;
#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- scanner_notify (self, (Notify*) _tmp164_);
+ scanner_notify (self, (Notify*) _tmp157_);
#line 1433 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _notify_unref0 (_tmp164_);
+ _notify_unref0 (_tmp157_);
#line 1339 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_line_unref0 (line);
-#line 12277 "scanner.c"
+#line 12166 "scanner.c"
}
#line 1300 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_scan_job_unref0 (job);
-#line 12281 "scanner.c"
+#line 12170 "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"
scanner_authorization_cb (resource, username, -1, password, -1);
-#line 12288 "scanner.c"
+#line 12177 "scanner.c"
}
@@ -12337,7 +12226,7 @@ static void* scanner_scan_thread (Scanner* self) {
_tmp5_ = status;
#line 1444 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp5_ != SANE_STATUS_GOOD) {
-#line 12332 "scanner.c"
+#line 12221 "scanner.c"
SANE_Status _tmp6_ = 0;
const gchar* _tmp7_ = NULL;
#line 1446 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -12350,7 +12239,7 @@ static void* scanner_scan_thread (Scanner* self) {
result = NULL;
#line 1447 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 12345 "scanner.c"
+#line 12234 "scanner.c"
}
#line 1449 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp8_ = version_code;
@@ -12370,7 +12259,7 @@ static void* scanner_scan_thread (Scanner* self) {
scanner_redetect (self);
#line 1457 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
while (TRUE) {
-#line 12365 "scanner.c"
+#line 12254 "scanner.c"
gboolean _tmp14_ = FALSE;
ScanState _tmp15_ = 0;
#line 1457 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -12379,7 +12268,7 @@ static void* scanner_scan_thread (Scanner* self) {
if (!_tmp14_) {
#line 1457 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 12374 "scanner.c"
+#line 12263 "scanner.c"
}
#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp15_ = self->priv->state;
@@ -12387,7 +12276,7 @@ static void* scanner_scan_thread (Scanner* self) {
switch (_tmp15_) {
#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_STATE_IDLE:
-#line 12382 "scanner.c"
+#line 12271 "scanner.c"
{
GList* _tmp16_ = NULL;
#line 1462 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -12398,94 +12287,94 @@ static void* scanner_scan_thread (Scanner* self) {
scanner_set_scanning (self, TRUE);
#line 1465 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->state = SCAN_STATE_OPEN;
-#line 12393 "scanner.c"
+#line 12282 "scanner.c"
}
#line 1467 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 12397 "scanner.c"
+#line 12286 "scanner.c"
}
#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_STATE_REDETECT:
-#line 12401 "scanner.c"
+#line 12290 "scanner.c"
{
#line 1469 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_do_redetect (self);
#line 1470 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 12407 "scanner.c"
+#line 12296 "scanner.c"
}
#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_STATE_OPEN:
-#line 12411 "scanner.c"
+#line 12300 "scanner.c"
{
#line 1472 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_do_open (self);
#line 1473 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 12417 "scanner.c"
+#line 12306 "scanner.c"
}
#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_STATE_GET_OPTION:
-#line 12421 "scanner.c"
+#line 12310 "scanner.c"
{
#line 1475 "/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"
break;
-#line 12427 "scanner.c"
+#line 12316 "scanner.c"
}
#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_STATE_START:
-#line 12431 "scanner.c"
+#line 12320 "scanner.c"
{
#line 1478 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_do_start (self);
#line 1479 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 12437 "scanner.c"
+#line 12326 "scanner.c"
}
#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_STATE_GET_PARAMETERS:
-#line 12441 "scanner.c"
+#line 12330 "scanner.c"
{
#line 1481 "/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"
break;
-#line 12447 "scanner.c"
+#line 12336 "scanner.c"
}
#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_STATE_READ:
-#line 12451 "scanner.c"
+#line 12340 "scanner.c"
{
#line 1484 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_do_read (self);
#line 1485 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 12457 "scanner.c"
+#line 12346 "scanner.c"
}
default:
#line 1459 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
break;
-#line 12462 "scanner.c"
+#line 12351 "scanner.c"
}
}
#line 1489 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
result = NULL;
#line 1489 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 12469 "scanner.c"
+#line 12358 "scanner.c"
}
static gpointer _scanner_scan_thread_gthread_func (gpointer self) {
gpointer result;
- result = scanner_scan_thread (self);
+ result = scanner_scan_thread ((Scanner*) self);
#line 1496 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
scanner_unref (self);
#line 1496 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 12480 "scanner.c"
+#line 12369 "scanner.c"
}
@@ -12493,44 +12382,51 @@ void scanner_start (Scanner* self) {
GError * _inner_error_ = NULL;
#line 1492 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_return_if_fail (self != NULL);
-#line 12488 "scanner.c"
+#line 12377 "scanner.c"
{
GThread* _tmp0_ = NULL;
GThread* _tmp1_ = NULL;
+ GThread* _tmp2_ = NULL;
#line 1496 "/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"
_tmp0_ = _tmp1_;
#line 1496 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_inner_error_ != NULL) {
-#line 12498 "scanner.c"
+#line 12388 "scanner.c"
goto __catch15_g_error;
}
#line 1496 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp2_ = _tmp0_;
+#line 1496 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _tmp0_ = NULL;
+#line 1496 "/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"
- self->priv->thread = _tmp0_;
-#line 12505 "scanner.c"
+ self->priv->thread = _tmp2_;
+#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ _g_thread_unref0 (_tmp0_);
+#line 12401 "scanner.c"
}
goto __finally15;
__catch15_g_error:
{
GError* e = NULL;
- GError* _tmp2_ = NULL;
- const gchar* _tmp3_ = NULL;
+ GError* _tmp3_ = NULL;
+ const gchar* _tmp4_ = NULL;
#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
e = _inner_error_;
#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_inner_error_ = NULL;
#line 1500 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp2_ = e;
+ _tmp3_ = e;
#line 1500 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp3_ = _tmp2_->message;
+ _tmp4_ = _tmp3_->message;
#line 1500 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- g_critical ("scanner.vala:1500: Unable to create thread: %s", _tmp3_);
+ g_critical ("scanner.vala:1500: Unable to create thread: %s", _tmp4_);
#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_g_error_free0 (e);
-#line 12525 "scanner.c"
+#line 12421 "scanner.c"
}
__finally15:
#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -12541,7 +12437,7 @@ void scanner_start (Scanner* self) {
g_clear_error (&_inner_error_);
#line 1494 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
-#line 12536 "scanner.c"
+#line 12432 "scanner.c"
}
}
@@ -12558,7 +12454,7 @@ void scanner_redetect (Scanner* self) {
if (_tmp0_) {
#line 1507 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return;
-#line 12553 "scanner.c"
+#line 12449 "scanner.c"
}
#line 1508 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
self->priv->need_redetect = TRUE;
@@ -12570,7 +12466,7 @@ void scanner_redetect (Scanner* self) {
_tmp2_ = request_redetect_new ();
#line 1512 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_async_queue_push (_tmp1_, (Request*) _tmp2_);
-#line 12565 "scanner.c"
+#line 12461 "scanner.c"
}
@@ -12585,7 +12481,7 @@ gboolean scanner_is_scanning (Scanner* self) {
result = _tmp0_;
#line 1517 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 12580 "scanner.c"
+#line 12476 "scanner.c"
}
@@ -12600,7 +12496,7 @@ static gchar* scanner_get_scan_mode_string (Scanner* self, ScanMode mode) {
switch (_tmp0_) {
#line 1522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_MODE_DEFAULT:
-#line 12595 "scanner.c"
+#line 12491 "scanner.c"
{
gchar* _tmp1_ = NULL;
#line 1525 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -12609,11 +12505,11 @@ static gchar* scanner_get_scan_mode_string (Scanner* self, ScanMode mode) {
result = _tmp1_;
#line 1525 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 12604 "scanner.c"
+#line 12500 "scanner.c"
}
#line 1522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_MODE_COLOR:
-#line 12608 "scanner.c"
+#line 12504 "scanner.c"
{
gchar* _tmp2_ = NULL;
#line 1527 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -12622,11 +12518,11 @@ static gchar* scanner_get_scan_mode_string (Scanner* self, ScanMode mode) {
result = _tmp2_;
#line 1527 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 12617 "scanner.c"
+#line 12513 "scanner.c"
}
#line 1522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_MODE_GRAY:
-#line 12621 "scanner.c"
+#line 12517 "scanner.c"
{
gchar* _tmp3_ = NULL;
#line 1529 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -12635,11 +12531,11 @@ static gchar* scanner_get_scan_mode_string (Scanner* self, ScanMode mode) {
result = _tmp3_;
#line 1529 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 12630 "scanner.c"
+#line 12526 "scanner.c"
}
#line 1522 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_MODE_LINEART:
-#line 12634 "scanner.c"
+#line 12530 "scanner.c"
{
gchar* _tmp4_ = NULL;
#line 1531 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -12648,7 +12544,7 @@ static gchar* scanner_get_scan_mode_string (Scanner* self, ScanMode mode) {
result = _tmp4_;
#line 1531 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 12643 "scanner.c"
+#line 12539 "scanner.c"
}
default:
{
@@ -12662,7 +12558,7 @@ static gchar* scanner_get_scan_mode_string (Scanner* self, ScanMode mode) {
result = _tmp6_;
#line 1533 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 12657 "scanner.c"
+#line 12553 "scanner.c"
}
}
}
@@ -12679,7 +12575,7 @@ static gchar* scanner_get_scan_type_string (Scanner* self, ScanType type) {
switch (_tmp0_) {
#line 1539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_SINGLE:
-#line 12674 "scanner.c"
+#line 12570 "scanner.c"
{
gchar* _tmp1_ = NULL;
#line 1542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -12688,11 +12584,11 @@ static gchar* scanner_get_scan_type_string (Scanner* self, ScanType type) {
result = _tmp1_;
#line 1542 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 12683 "scanner.c"
+#line 12579 "scanner.c"
}
#line 1539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_ADF_FRONT:
-#line 12687 "scanner.c"
+#line 12583 "scanner.c"
{
gchar* _tmp2_ = NULL;
#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -12701,11 +12597,11 @@ static gchar* scanner_get_scan_type_string (Scanner* self, ScanType type) {
result = _tmp2_;
#line 1544 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 12696 "scanner.c"
+#line 12592 "scanner.c"
}
#line 1539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_ADF_BACK:
-#line 12700 "scanner.c"
+#line 12596 "scanner.c"
{
gchar* _tmp3_ = NULL;
#line 1546 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -12714,11 +12610,11 @@ static gchar* scanner_get_scan_type_string (Scanner* self, ScanType type) {
result = _tmp3_;
#line 1546 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 12709 "scanner.c"
+#line 12605 "scanner.c"
}
#line 1539 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
case SCAN_TYPE_ADF_BOTH:
-#line 12713 "scanner.c"
+#line 12609 "scanner.c"
{
gchar* _tmp4_ = NULL;
#line 1548 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
@@ -12727,7 +12623,7 @@ static gchar* scanner_get_scan_type_string (Scanner* self, ScanType type) {
result = _tmp4_;
#line 1548 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 12722 "scanner.c"
+#line 12618 "scanner.c"
}
default:
{
@@ -12741,7 +12637,7 @@ static gchar* scanner_get_scan_type_string (Scanner* self, ScanType type) {
result = _tmp6_;
#line 1550 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return result;
-#line 12736 "scanner.c"
+#line 12632 "scanner.c"
}
}
}
@@ -12750,61 +12646,60 @@ static gchar* scanner_get_scan_type_string (Scanner* self, ScanType type) {
void scanner_scan (Scanner* self, const gchar* device, ScanOptions* options) {
const gchar* _tmp0_ = NULL;
const gchar* _tmp1_ = NULL;
- const gchar* _tmp3_ = NULL;
- ScanOptions* _tmp4_ = NULL;
- gint _tmp5_ = 0;
- ScanOptions* _tmp6_ = NULL;
- ScanMode _tmp7_ = 0;
+ ScanOptions* _tmp3_ = NULL;
+ gint _tmp4_ = 0;
+ ScanOptions* _tmp5_ = NULL;
+ ScanMode _tmp6_ = 0;
+ gchar* _tmp7_ = NULL;
gchar* _tmp8_ = NULL;
- gchar* _tmp9_ = NULL;
- ScanOptions* _tmp10_ = NULL;
- gint _tmp11_ = 0;
- ScanOptions* _tmp12_ = NULL;
- ScanType _tmp13_ = 0;
+ ScanOptions* _tmp9_ = NULL;
+ gint _tmp10_ = 0;
+ ScanOptions* _tmp11_ = NULL;
+ ScanType _tmp12_ = 0;
+ gchar* _tmp13_ = NULL;
gchar* _tmp14_ = NULL;
- gchar* _tmp15_ = NULL;
- ScanOptions* _tmp16_ = NULL;
- gint _tmp17_ = 0;
- ScanOptions* _tmp18_ = NULL;
- gint _tmp19_ = 0;
- ScanOptions* _tmp20_ = NULL;
- gint _tmp21_ = 0;
- ScanOptions* _tmp22_ = NULL;
- gint _tmp23_ = 0;
+ ScanOptions* _tmp15_ = NULL;
+ gint _tmp16_ = 0;
+ ScanOptions* _tmp17_ = NULL;
+ gint _tmp18_ = 0;
+ ScanOptions* _tmp19_ = NULL;
+ gint _tmp20_ = 0;
+ ScanOptions* _tmp21_ = NULL;
+ gint _tmp22_ = 0;
RequestStartScan* request = NULL;
- RequestStartScan* _tmp24_ = NULL;
+ RequestStartScan* _tmp23_ = NULL;
+ ScanJob* _tmp24_ = NULL;
ScanJob* _tmp25_ = NULL;
- ScanJob* _tmp26_ = NULL;
- gint _tmp27_ = 0;
- ScanJob* _tmp28_ = NULL;
- const gchar* _tmp29_ = NULL;
- gchar* _tmp30_ = NULL;
- ScanJob* _tmp31_ = NULL;
- ScanOptions* _tmp32_ = NULL;
- gint _tmp33_ = 0;
- ScanJob* _tmp34_ = NULL;
- ScanOptions* _tmp35_ = NULL;
- ScanMode _tmp36_ = 0;
- ScanJob* _tmp37_ = NULL;
- ScanOptions* _tmp38_ = NULL;
- gint _tmp39_ = 0;
- ScanJob* _tmp40_ = NULL;
- ScanOptions* _tmp41_ = NULL;
- ScanType _tmp42_ = 0;
- ScanJob* _tmp43_ = NULL;
- ScanOptions* _tmp44_ = NULL;
- gint _tmp45_ = 0;
- ScanJob* _tmp46_ = NULL;
- ScanOptions* _tmp47_ = NULL;
- gint _tmp48_ = 0;
- ScanJob* _tmp49_ = NULL;
- ScanOptions* _tmp50_ = NULL;
- gint _tmp51_ = 0;
- ScanJob* _tmp52_ = NULL;
- ScanOptions* _tmp53_ = NULL;
- gint _tmp54_ = 0;
- GAsyncQueue* _tmp55_ = NULL;
- Request* _tmp56_ = NULL;
+ gint _tmp26_ = 0;
+ ScanJob* _tmp27_ = NULL;
+ const gchar* _tmp28_ = NULL;
+ gchar* _tmp29_ = NULL;
+ ScanJob* _tmp30_ = NULL;
+ ScanOptions* _tmp31_ = NULL;
+ gint _tmp32_ = 0;
+ ScanJob* _tmp33_ = NULL;
+ ScanOptions* _tmp34_ = NULL;
+ ScanMode _tmp35_ = 0;
+ ScanJob* _tmp36_ = NULL;
+ ScanOptions* _tmp37_ = NULL;
+ gint _tmp38_ = 0;
+ ScanJob* _tmp39_ = NULL;
+ ScanOptions* _tmp40_ = NULL;
+ ScanType _tmp41_ = 0;
+ ScanJob* _tmp42_ = NULL;
+ ScanOptions* _tmp43_ = NULL;
+ gint _tmp44_ = 0;
+ ScanJob* _tmp45_ = NULL;
+ ScanOptions* _tmp46_ = NULL;
+ gint _tmp47_ = 0;
+ ScanJob* _tmp48_ = NULL;
+ ScanOptions* _tmp49_ = NULL;
+ gint _tmp50_ = 0;
+ ScanJob* _tmp51_ = NULL;
+ ScanOptions* _tmp52_ = NULL;
+ gint _tmp53_ = 0;
+ GAsyncQueue* _tmp54_ = NULL;
+ Request* _tmp55_ = NULL;
#line 1554 "/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"
@@ -12813,169 +12708,167 @@ void scanner_scan (Scanner* self, const gchar* device, ScanOptions* options) {
_tmp1_ = device;
#line 1557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp1_ != NULL) {
-#line 12808 "scanner.c"
+#line 12703 "scanner.c"
const gchar* _tmp2_ = NULL;
#line 1557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp2_ = device;
#line 1557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = _tmp2_;
-#line 12814 "scanner.c"
+#line 12709 "scanner.c"
} else {
#line 1557 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp0_ = "(null)";
-#line 12818 "scanner.c"
+#line 12713 "scanner.c"
}
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp3_ = _tmp0_;
+ _tmp3_ = options;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp4_ = options;
+ _tmp4_ = _tmp3_->dpi;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp5_ = _tmp4_->dpi;
+ _tmp5_ = options;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp6_ = options;
+ _tmp6_ = _tmp5_->scan_mode;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp7_ = _tmp6_->scan_mode;
+ _tmp7_ = scanner_get_scan_mode_string (self, _tmp6_);
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp8_ = scanner_get_scan_mode_string (self, _tmp7_);
-#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp9_ = _tmp8_;
+ _tmp8_ = _tmp7_;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp10_ = options;
+ _tmp9_ = options;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp11_ = _tmp10_->depth;
+ _tmp10_ = _tmp9_->depth;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp12_ = options;
+ _tmp11_ = options;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp13_ = _tmp12_->type;
+ _tmp12_ = _tmp11_->type;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp14_ = scanner_get_scan_type_string (self, _tmp13_);
+ _tmp13_ = scanner_get_scan_type_string (self, _tmp12_);
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp15_ = _tmp14_;
+ _tmp14_ = _tmp13_;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp16_ = options;
+ _tmp15_ = options;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp17_ = _tmp16_->paper_width;
+ _tmp16_ = _tmp15_->paper_width;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp18_ = options;
+ _tmp17_ = options;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp19_ = _tmp18_->paper_height;
+ _tmp18_ = _tmp17_->paper_height;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp20_ = options;
+ _tmp19_ = options;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp21_ = _tmp20_->brightness;
+ _tmp20_ = _tmp19_->brightness;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp22_ = options;
+ _tmp21_ = options;
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp23_ = _tmp22_->contrast;
+ _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=%" \
"d, type=%s, paper_width=%d, paper_height=%d, brightness=%d, contrast=%" \
-"d)", _tmp3_, _tmp5_, _tmp9_, _tmp11_, _tmp15_, _tmp17_, _tmp19_, _tmp21_, _tmp23_);
+"d)", _tmp0_, _tmp4_, _tmp8_, _tmp10_, _tmp14_, _tmp16_, _tmp18_, _tmp20_, _tmp22_);
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp15_);
+ _g_free0 (_tmp14_);
#line 1556 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp9_);
+ _g_free0 (_tmp8_);
#line 1560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp24_ = request_start_scan_new ();
+ _tmp23_ = request_start_scan_new ();
#line 1560 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- request = _tmp24_;
+ request = _tmp23_;
#line 1561 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp25_ = scan_job_new ();
+ _tmp24_ = scan_job_new ();
#line 1561 "/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"
- request->job = _tmp25_;
+ request->job = _tmp24_;
#line 1562 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp26_ = request->job;
+ _tmp25_ = request->job;
#line 1562 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp27_ = self->job_id;
+ _tmp26_ = self->job_id;
#line 1562 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- self->job_id = _tmp27_ + 1;
+ self->job_id = _tmp26_ + 1;
#line 1562 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp26_->id = _tmp27_;
+ _tmp25_->id = _tmp26_;
#line 1563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp28_ = request->job;
+ _tmp27_ = request->job;
#line 1563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp29_ = device;
+ _tmp28_ = device;
#line 1563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp30_ = g_strdup (_tmp29_);
+ _tmp29_ = g_strdup (_tmp28_);
#line 1563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _g_free0 (_tmp28_->device);
+ _g_free0 (_tmp27_->device);
#line 1563 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp28_->device = _tmp30_;
+ _tmp27_->device = _tmp29_;
#line 1564 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp31_ = request->job;
+ _tmp30_ = request->job;
#line 1564 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp32_ = options;
+ _tmp31_ = options;
#line 1564 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp33_ = _tmp32_->dpi;
+ _tmp32_ = _tmp31_->dpi;
#line 1564 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp31_->dpi = (gdouble) _tmp33_;
+ _tmp30_->dpi = (gdouble) _tmp32_;
#line 1565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp34_ = request->job;
+ _tmp33_ = request->job;
#line 1565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp35_ = options;
+ _tmp34_ = options;
#line 1565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp36_ = _tmp35_->scan_mode;
+ _tmp35_ = _tmp34_->scan_mode;
#line 1565 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp34_->scan_mode = _tmp36_;
+ _tmp33_->scan_mode = _tmp35_;
#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp37_ = request->job;
+ _tmp36_ = request->job;
#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp38_ = options;
+ _tmp37_ = options;
#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp39_ = _tmp38_->depth;
+ _tmp38_ = _tmp37_->depth;
#line 1566 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp37_->depth = _tmp39_;
+ _tmp36_->depth = _tmp38_;
#line 1567 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp40_ = request->job;
+ _tmp39_ = request->job;
#line 1567 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp41_ = options;
+ _tmp40_ = options;
#line 1567 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp42_ = _tmp41_->type;
+ _tmp41_ = _tmp40_->type;
#line 1567 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp40_->type = _tmp42_;
+ _tmp39_->type = _tmp41_;
#line 1568 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp43_ = request->job;
+ _tmp42_ = request->job;
#line 1568 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp44_ = options;
+ _tmp43_ = options;
#line 1568 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp45_ = _tmp44_->paper_width;
+ _tmp44_ = _tmp43_->paper_width;
#line 1568 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp43_->page_width = _tmp45_;
+ _tmp42_->page_width = _tmp44_;
#line 1569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp46_ = request->job;
+ _tmp45_ = request->job;
#line 1569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp47_ = options;
+ _tmp46_ = options;
#line 1569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp48_ = _tmp47_->paper_height;
+ _tmp47_ = _tmp46_->paper_height;
#line 1569 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp46_->page_height = _tmp48_;
+ _tmp45_->page_height = _tmp47_;
#line 1570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp49_ = request->job;
+ _tmp48_ = request->job;
#line 1570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp50_ = options;
+ _tmp49_ = options;
#line 1570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp51_ = _tmp50_->brightness;
+ _tmp50_ = _tmp49_->brightness;
#line 1570 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp49_->brightness = _tmp51_;
+ _tmp48_->brightness = _tmp50_;
#line 1571 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp52_ = request->job;
+ _tmp51_ = request->job;
#line 1571 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp53_ = options;
+ _tmp52_ = options;
#line 1571 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp54_ = _tmp53_->contrast;
+ _tmp53_ = _tmp52_->contrast;
#line 1571 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp52_->contrast = _tmp54_;
+ _tmp51_->contrast = _tmp53_;
#line 1572 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp55_ = self->priv->request_queue;
+ _tmp54_ = self->priv->request_queue;
#line 1572 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- _tmp56_ = _request_ref0 ((Request*) request);
+ _tmp55_ = _request_ref0 ((Request*) request);
#line 1572 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- g_async_queue_push (_tmp55_, _tmp56_);
+ g_async_queue_push (_tmp54_, _tmp55_);
#line 1554 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_request_unref0 (request);
-#line 12968 "scanner.c"
+#line 12861 "scanner.c"
}
@@ -12995,7 +12888,14 @@ void scanner_cancel (Scanner* self) {
_tmp2_ = request_cancel_new ();
#line 1578 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
g_async_queue_push (_tmp1_, (Request*) _tmp2_);
-#line 12988 "scanner.c"
+#line 12881 "scanner.c"
+}
+
+
+static gpointer _g_thread_ref0 (gpointer self) {
+#line 1589 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ return self ? g_thread_ref (self) : NULL;
+#line 12888 "scanner.c"
}
@@ -13017,23 +12917,26 @@ void scanner_free (Scanner* self) {
_tmp2_ = self->priv->thread;
#line 1587 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
if (_tmp2_ != NULL) {
-#line 13010 "scanner.c"
+#line 12910 "scanner.c"
GThread* _tmp3_ = NULL;
+ GThread* _tmp4_ = NULL;
#line 1589 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
_tmp3_ = self->priv->thread;
#line 1589 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
- g_thread_join (_tmp3_);
+ _tmp4_ = _g_thread_ref0 (_tmp3_);
+#line 1589 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
+ g_thread_join (_tmp4_);
#line 1590 "/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"
self->priv->thread = NULL;
-#line 13020 "scanner.c"
+#line 12923 "scanner.c"
}
#line 1593 "/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 13026 "scanner.c"
+#line 12929 "scanner.c"
}
@@ -13052,19 +12955,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 13045 "scanner.c"
+#line 12948 "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 13051 "scanner.c"
+#line 12954 "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 13057 "scanner.c"
+#line 12960 "scanner.c"
}
@@ -13083,19 +12986,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 13076 "scanner.c"
+#line 12979 "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 13082 "scanner.c"
+#line 12985 "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 13088 "scanner.c"
+#line 12991 "scanner.c"
}
@@ -13114,26 +13017,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 13107 "scanner.c"
+#line 13010 "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 13113 "scanner.c"
+#line 13016 "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 13119 "scanner.c"
+#line 13022 "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 13126 "scanner.c"
+#line 13029 "scanner.c"
}
@@ -13142,7 +13045,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 13135 "scanner.c"
+#line 13038 "scanner.c"
}
}
@@ -13152,11 +13055,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 13145 "scanner.c"
+#line 13048 "scanner.c"
} else {
#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
dest_value->data[0].v_pointer = NULL;
-#line 13149 "scanner.c"
+#line 13052 "scanner.c"
}
}
@@ -13164,37 +13067,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 13157 "scanner.c"
+#line 13060 "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 13164 "scanner.c"
+#line 13067 "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 13171 "scanner.c"
+#line 13074 "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 13175 "scanner.c"
+#line 13078 "scanner.c"
}
#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = scanner_ref (object);
-#line 13179 "scanner.c"
+#line 13082 "scanner.c"
} else {
#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
-#line 13183 "scanner.c"
+#line 13086 "scanner.c"
}
#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
-#line 13187 "scanner.c"
+#line 13090 "scanner.c"
}
@@ -13205,25 +13108,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 13198 "scanner.c"
+#line 13101 "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 13204 "scanner.c"
+#line 13107 "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 13208 "scanner.c"
+#line 13111 "scanner.c"
} else {
#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
*object_p = scanner_ref (value->data[0].v_pointer);
-#line 13212 "scanner.c"
+#line 13115 "scanner.c"
}
#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
return NULL;
-#line 13216 "scanner.c"
+#line 13119 "scanner.c"
}
@@ -13237,7 +13140,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 13230 "scanner.c"
+#line 13133 "scanner.c"
}
@@ -13246,7 +13149,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 13239 "scanner.c"
+#line 13142 "scanner.c"
}
@@ -13266,17 +13169,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 13259 "scanner.c"
+#line 13162 "scanner.c"
} else {
#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
-#line 13263 "scanner.c"
+#line 13166 "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 13269 "scanner.c"
+#line 13172 "scanner.c"
}
}
@@ -13295,17 +13198,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 13288 "scanner.c"
+#line 13191 "scanner.c"
} else {
#line 208 "/home/bob/bzr/simple-scan/trunk/src/scanner.vala"
value->data[0].v_pointer = NULL;
-#line 13292 "scanner.c"
+#line 13195 "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 13298 "scanner.c"
+#line 13201 "scanner.c"
}
}
@@ -13335,7 +13238,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 13328 "scanner.c"
+#line 13231 "scanner.c"
}
@@ -13344,7 +13247,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 13337 "scanner.c"
+#line 13240 "scanner.c"
}
@@ -13370,7 +13273,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 13363 "scanner.c"
+#line 13266 "scanner.c"
}
@@ -13395,7 +13298,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 13388 "scanner.c"
+#line 13291 "scanner.c"
}
@@ -13408,7 +13311,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 13401 "scanner.c"
+#line 13304 "scanner.c"
}
}