summaryrefslogtreecommitdiffstats
path: root/private/windows/diamond/quantum/qdi_int.h
blob: dab9ad01b61ab2cbb859eeec2a79e5d81365f990 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 *  Microsoft Confidential
 *  Copyright (C) Microsoft Corporation 1994
 *  All Rights Reserved.
 *
 *  QDI_INT.H: Quantum Decompression Interface private data
 *
 *  History:
 *      20-Jun-1994     msliger     Initial version.
 *      18-Aug-1994     msliger     Added CPU type.
 */

/* --- QDI context structure ---------------------------------------------- */

typedef ULONG SIGNATURE;    /* structure signature */

struct QDI_CONTEXT          /* private structure */
{
    SIGNATURE   signature;      /* for validation */
    PFNALLOC    pfnAlloc;       /* where the alloc() is */
    PFNFREE     pfnFree;        /* where the free() is */
    PFNOPEN     pfnOpen;        /* open a file callback or NULL */
    PFNREAD     pfnRead;        /* read a file callback */
    PFNWRITE    pfnWrite;       /* write a file callback */
    PFNCLOSE    pfnClose;       /* close a file callback */
    PFNSEEK     pfnSeek;        /* seek in file callback */
    UINT        cbDataBlockMax; /* promised max data size */
    UINT        fCPUtype;       /* CPU we're running on, QDI_CPU_xxx */
};

typedef struct QDI_CONTEXT FAR *PMDC_CONTEXT;     /* a pointer to one */

extern PMDC_CONTEXT lastContext;             /* needed for memory callbacks */

/* ------------------------------------------------------------------------ */