LibInsane: /build/libinsane/src/libinsane/subprojects/libinsane/include/libinsane/workarounds.h Source File

| LibInsane 1.0.10 Cross-platform Cross-API Cross-driver Cross-image-scanner Image Scan Library

Loading...
Searching...
No Matches
workarounds.h
Go to the documentation of this file.
1#ifndef __LIBINSANE_WORKAROUNDS_H
2#define __LIBINSANE_WORKAROUNDS_H
3
4#include "capi.h"
5
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
35 extern enum lis_error lis_api_workaround_opt_names(
36 struct lis_api *to_wrap, struct lis_api **out_impl
37);
38
39
74 extern enum lis_error lis_api_workaround_opt_values(
75 struct lis_api *to_wrap, struct lis_api **out_impl
76);
77
78
112 extern enum lis_error lis_api_workaround_check_capabilities(
113 struct lis_api *to_wrap, struct lis_api **out_impl
114);
115
116
135 extern enum lis_error lis_api_workaround_hide_source_auto(
136 struct lis_api *to_wrap, struct lis_api **out_impl
137);
138
139
140#ifdef OS_LINUX
158extern enum lis_error lis_api_workaround_dedicated_process(
159 struct lis_api *to_wrap, struct lis_api **out_impl
160);
161#endif
162
177 extern enum lis_error lis_api_workaround_dedicated_thread(
178 struct lis_api *to_wrap, struct lis_api **out_impl
179);
180
181
198 extern enum lis_error lis_api_workaround_one_page_flatbed(
199 struct lis_api *to_wrap, struct lis_api **out_impl
200);
201
202
220 extern enum lis_error lis_api_workaround_cache(
221 struct lis_api *to_wrap, struct lis_api **out_impl
222);
223
224
235 extern enum lis_error lis_api_workaround_lamp(
236 struct lis_api *to_wrap, struct lis_api **out_impl
237);
238
239
254 extern enum lis_error lis_api_workaround_invalid_page_size(
255 struct lis_api *to_wrap, struct lis_api **out_impl
256);
257
258
259#ifdef __cplusplus
260}
261#endif
262
263#endif
capi.h
lis_error
lis_error
Definition error.h:13
lis_api
LibInsane C API.
Definition capi.h:422
lis_api_workaround_invalid_page_size
enum lis_error lis_api_workaround_invalid_page_size(struct lis_api *to_wrap, struct lis_api **out_impl)
Retuns TRUE to end_of_feed on invalid page size.
lis_api_workaround_opt_values
enum lis_error lis_api_workaround_opt_values(struct lis_api *to_wrap, struct lis_api **out_impl)
Replace unusual option values by usual ones.
lis_api_workaround_cache
enum lis_error lis_api_workaround_cache(struct lis_api *to_wrap, struct lis_api **out_impl)
Minimize calls to underlying API.
lis_api_workaround_lamp
enum lis_error lis_api_workaround_lamp(struct lis_api *to_wrap, struct lis_api **out_impl)
Turns the lamp off at the end of the scan.
lis_api_workaround_one_page_flatbed
enum lis_error lis_api_workaround_one_page_flatbed(struct lis_api *to_wrap, struct lis_api **out_impl)
Ensure Flatbeds return only one page.
lis_api_workaround_hide_source_auto
enum lis_error lis_api_workaround_hide_source_auto(struct lis_api *to_wrap, struct lis_api **out_impl)
Disable source 'Auto'.
lis_api_workaround_opt_names
enum lis_error lis_api_workaround_opt_names(struct lis_api *to_wrap, struct lis_api **out_impl)
Fix options names.
lis_api_workaround_check_capabilities
enum lis_error lis_api_workaround_check_capabilities(struct lis_api *to_wrap, struct lis_api **out_impl)
Prevent operations on options that are not allowed by capabilities.
lis_api_workaround_dedicated_thread
enum lis_error lis_api_workaround_dedicated_thread(struct lis_api *to_wrap, struct lis_api **out_impl)
Thread-safety.