twain_i.h 2.46 KB
Newer Older
1 2
/*
 * Copyright 2000 Corel Corporation
3
 * Copyright 2006 Marcus Meissner
4 5 6 7 8 9 10 11 12 13 14 15 16
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * 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
18 19 20 21 22
 */

#ifndef _TWAIN32_H
#define _TWAIN32_H

23 24 25 26
#ifndef __WINE_CONFIG_H
# error You must include config.h first
#endif

27 28
#include <stdarg.h>

29
#include "windef.h"
30 31
#include "winbase.h"
#include "twain.h"
32

33
/* internal information about an active data source */
34 35 36 37
typedef struct tagActiveDS
{
    struct tagActiveDS	*next;			/* next active DS */
    TW_IDENTITY		identity;		/* identity */
38 39
    HMODULE		hmod;
    DSENTRYPROC		dsEntry;
40
} activeDS;
41

42 43
TW_UINT16 DSM_currentState DECLSPEC_HIDDEN;     /* current state of Source Manager */
TW_UINT16 DSM_twCC DECLSPEC_HIDDEN;             /* current condition code of Source Manager */
44

45
activeDS *activeSources DECLSPEC_HIDDEN;	/* list of active data sources */
46 47 48

/* Implementation of operation triplets (From Application to Source Manager) */
extern TW_UINT16 TWAIN_CloseDS
49
           (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
50
extern TW_UINT16 TWAIN_IdentityGetDefault
51
           (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
52
extern TW_UINT16 TWAIN_IdentityGetFirst
53
           (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
54
extern TW_UINT16 TWAIN_IdentityGetNext
55
           (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
56
extern TW_UINT16 TWAIN_OpenDS
57
           (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
58
extern TW_UINT16 TWAIN_UserSelect
59
           (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
60
extern TW_UINT16 TWAIN_CloseDSM
61
           (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
62
extern TW_UINT16 TWAIN_OpenDSM
63
           (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
64
extern TW_UINT16 TWAIN_GetDSMStatus
65
           (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN;
66 67

#endif