Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
25d5953c
Commit
25d5953c
authored
Feb 09, 2009
by
Jeremy White
Committed by
Alexandre Julliard
Feb 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sane.ds: Rearrange function position to avoid the need for forward function declarations.
parent
c739edf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
37 deletions
+34
-37
capability.c
dlls/sane.ds/capability.c
+34
-37
No files found.
dlls/sane.ds/capability.c
View file @
25d5953c
...
...
@@ -31,43 +31,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
twain
);
static
TW_UINT16
SANE_ICAPXferMech
(
pTW_CAPABILITY
pCapability
,
TW_UINT16
action
);
static
TW_UINT16
TWAIN_GetSupportedCaps
(
pTW_CAPABILITY
pCapability
);
TW_UINT16
SANE_SaneCapability
(
pTW_CAPABILITY
pCapability
,
TW_UINT16
action
)
{
TW_UINT16
twCC
=
TWCC_CAPUNSUPPORTED
;
TRACE
(
"capability=%d action=%d
\n
"
,
pCapability
->
Cap
,
action
);
switch
(
pCapability
->
Cap
)
{
case
CAP_SUPPORTEDCAPS
:
if
(
action
==
MSG_GET
)
twCC
=
TWAIN_GetSupportedCaps
(
pCapability
);
else
twCC
=
TWCC_BADVALUE
;
break
;
case
CAP_XFERCOUNT
:
/* This is a required capability that every source needs to
support but we haven't implemented it yet. */
twCC
=
TWCC_SUCCESS
;
break
;
case
ICAP_XFERMECH
:
twCC
=
SANE_ICAPXferMech
(
pCapability
,
action
);
break
;
default:
twCC
=
TWRC_FAILURE
;
}
return
twCC
;
}
static
TW_UINT16
get_onevalue
(
pTW_CAPABILITY
pCapability
,
TW_UINT16
*
type
,
TW_UINT32
*
value
)
{
if
(
pCapability
->
hContainer
)
...
...
@@ -230,3 +193,37 @@ static TW_UINT16 SANE_ICAPXferMech (pTW_CAPABILITY pCapability, TW_UINT16 action
}
return
twCC
;
}
TW_UINT16
SANE_SaneCapability
(
pTW_CAPABILITY
pCapability
,
TW_UINT16
action
)
{
TW_UINT16
twCC
=
TWCC_CAPUNSUPPORTED
;
TRACE
(
"capability=%d action=%d
\n
"
,
pCapability
->
Cap
,
action
);
switch
(
pCapability
->
Cap
)
{
case
CAP_SUPPORTEDCAPS
:
if
(
action
==
MSG_GET
)
twCC
=
TWAIN_GetSupportedCaps
(
pCapability
);
else
twCC
=
TWCC_BADVALUE
;
break
;
case
CAP_XFERCOUNT
:
/* This is a required capability that every source needs to
support but we haven't implemented it yet. */
twCC
=
TWCC_SUCCESS
;
break
;
case
ICAP_XFERMECH
:
twCC
=
SANE_ICAPXferMech
(
pCapability
,
action
);
break
;
default:
twCC
=
TWRC_FAILURE
;
}
return
twCC
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment