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
28 #include "wine/list.h"
30 struct pending_message
36 /* internal information about an active data source */
37 typedef struct tagActiveDS
39 struct tagActiveDS
*next
; /* next active DS */
40 TW_IDENTITY identity
; /* identity */
43 struct list pending_messages
;
48 extern TW_UINT16 DSM_twCC
; /* current condition code of Source Manager */
50 extern activeDS
*activeSources
; /* list of active data sources */
52 extern HINSTANCE DSM_hinstance
;
54 /* Implementation of operation triplets (From Application to Source Manager) */
55 extern TW_UINT16
TWAIN_CloseDS(pTW_IDENTITY pOrigin
, TW_MEMREF pData
);
56 extern TW_UINT16
TWAIN_IdentityGetDefault(pTW_IDENTITY pOrigin
, TW_MEMREF pData
);
57 extern TW_UINT16
TWAIN_IdentityGetFirst(pTW_IDENTITY pOrigin
, TW_MEMREF pData
);
58 extern TW_UINT16
TWAIN_IdentityGetNext(pTW_IDENTITY pOrigin
, TW_MEMREF pData
);
59 extern TW_UINT16
TWAIN_OpenDS(pTW_IDENTITY pOrigin
, TW_MEMREF pData
);
60 extern TW_UINT16
TWAIN_UserSelect(pTW_IDENTITY pOrigin
, TW_MEMREF pData
);
61 extern TW_UINT16
TWAIN_CloseDSM(pTW_IDENTITY pOrigin
, TW_MEMREF pData
);
62 extern TW_UINT16
TWAIN_OpenDSM(pTW_IDENTITY pOrigin
, TW_MEMREF pData
);
63 extern TW_UINT16
TWAIN_GetDSMStatus(pTW_IDENTITY pOrigin
, TW_MEMREF pData
);
64 extern TW_UINT16
TWAIN_ControlNull(pTW_IDENTITY pOrigin
, pTW_IDENTITY pDest
, activeDS
*pSource
, TW_UINT16 MSG
, TW_MEMREF pData
);
65 extern TW_UINT16
TWAIN_ProcessEvent(pTW_IDENTITY pOrigin
, activeDS
*pSource
, TW_MEMREF pData
);