summaryrefslogtreecommitdiff
path: root/setup_native/source/win32/wintools/makecab/parseddf.h
blob: cb982ff8ce504f7a8a9f740d20d4679291604989 (plain)
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
36
37
38
39
40
41
42
43
44
45
46
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#ifndef __PARSEDDF_H__
#define __PARSEDDF_H__

#ifdef __cplusplus
extern "C" {
#endif
#include <windows.h>
#include <fci.h>

typedef enum DDFLINETYPE { DDF_NONE, DDF_CMD, DDF_SRC } DDFLINETYPE;
typedef enum DDFERR { DDF_OK, DDFERR_INVALID_ENDL, DDFERR_NO_MORE_TOKENS, DDFERR_FUNC_FAILED, DDFERR_SRC_SKIPPED, DDFERR_UNREAD } DDFERR;
typedef enum DDFVAR { DDF_CABNAME, DDF_RESERVEPERCAB, DDF_MAXDISK, DDF_COMPTYPE, DDF_COMPRESS, DDF_COMPMEM, DDF_CABINET, DDF_DISKDIRTEMPLATE } DDFVAR;
typedef enum DDFLOGLEVEL { DDFLOG_ERR = 1, DDFLOG_WRN, DDFLOG_MSG } DDFLOGLEVEL;

#define DDF_MAX_CHARS 1024
#define DDF_MAX_LINES 1024
#define DDF_MAX_CABRESERVE 60000
#define DDF_MAX_CABNAME 50

typedef struct DDFSRCFILE
{
    char fileName[MAX_PATH];
    char cabName[DDF_MAX_CABNAME];
    BOOL extract;
    TCOMP cmpType;
    struct DDFSRCFILE * next;
} DDFSRCFILE;

unsigned int ParseDdf(char * ddfFile, PCCAB vars, DDFSRCFILE ** srcListH, unsigned int v);

#ifdef __cplusplus
}
#endif

#endif /* __PARSEDDF_H__ */

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */