2 * Copyright 2000 Corel Corporation
3 * Copyright 2006 Marcus Meissner
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
23 #include <wine/config.h>
27 #define NONAMELESSUNION
28 #define NONAMELESSSTRUCT
34 #include <wine/debug.h>
35 WINE_DEFAULT_DEBUG_CHANNEL(twain
);
37 /* internal information about an active data source */
38 typedef struct tagActiveDS
40 struct tagActiveDS
*next
; /* next active DS */
41 TW_IDENTITY identity
; /* identity */
46 TW_UINT16 DSM_twCC DECLSPEC_HIDDEN
; /* current condition code of Source Manager */
48 activeDS
*activeSources DECLSPEC_HIDDEN
; /* list of active data sources */
50 /* Implementation of operation triplets (From Application to Source Manager) */
51 extern TW_UINT16 TWAIN_CloseDS
52 (pTW_IDENTITY pOrigin
, TW_MEMREF pData
) DECLSPEC_HIDDEN
;
53 extern TW_UINT16 TWAIN_IdentityGetDefault
54 (pTW_IDENTITY pOrigin
, TW_MEMREF pData
) DECLSPEC_HIDDEN
;
55 extern TW_UINT16 TWAIN_IdentityGetFirst
56 (pTW_IDENTITY pOrigin
, TW_MEMREF pData
) DECLSPEC_HIDDEN
;
57 extern TW_UINT16 TWAIN_IdentityGetNext
58 (pTW_IDENTITY pOrigin
, TW_MEMREF pData
) DECLSPEC_HIDDEN
;
59 extern TW_UINT16 TWAIN_OpenDS
60 (pTW_IDENTITY pOrigin
, TW_MEMREF pData
) DECLSPEC_HIDDEN
;
61 extern TW_UINT16 TWAIN_UserSelect
62 (pTW_IDENTITY pOrigin
, TW_MEMREF pData
) DECLSPEC_HIDDEN
;
63 extern TW_UINT16 TWAIN_CloseDSM
64 (pTW_IDENTITY pOrigin
, TW_MEMREF pData
) DECLSPEC_HIDDEN
;
65 extern TW_UINT16 TWAIN_OpenDSM
66 (pTW_IDENTITY pOrigin
, TW_MEMREF pData
) DECLSPEC_HIDDEN
;
67 extern TW_UINT16 TWAIN_GetDSMStatus
68 (pTW_IDENTITY pOrigin
, TW_MEMREF pData
) DECLSPEC_HIDDEN
;
70 #endif /* _TWAIN32_H */