Change all head -1 to head -n 1 to be more POSIXly compliant.
[wine] / programs / winecfg / properties.h
1 /*
2  * WineCfg configuration properties
3  *
4  * Copyright 2002 Jaco Greeff
5  * Copyright 2003 Dimitrie O. Paun
6  * Copyright 2003 Mark Westcott
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  *
22  */
23
24 #ifndef WINE_CFG_PROPERTIES_H
25 #define WINE_CFG_PROPERTIES_H
26
27 #include "commctrl.h"
28
29 #define MAX_NAME_LENGTH         64
30 #define MAX_VERSION_LENGTH      48
31 #define MAX_DESCRIPTION_LENGTH 128
32
33 typedef struct
34 {
35     char  szVersion[MAX_VERSION_LENGTH];
36     char  szDescription[MAX_DESCRIPTION_LENGTH];
37 } VERSION_DESC;
38
39 #define DLL_NATIVE  0x0000
40 #define DLL_BUILTIN 0x0001
41
42 typedef struct
43 {
44     char  szName[MAX_NAME_LENGTH];
45     int   nType;
46 } DLL_DESC;
47
48 typedef struct
49 {
50     char  szName[MAX_NAME_LENGTH];
51     char  szWinVer[MAX_VERSION_LENGTH];
52     char  szDOSVer[MAX_VERSION_LENGTH];
53     HDPA  DLLs;
54 } APP_DESC;
55
56
57 typedef struct
58 {
59     char szName[MAX_NAME_LENGTH];
60     char szPath[MAX_NAME_LENGTH];
61     char szType[MAX_NAME_LENGTH];
62     char szFS[MAX_NAME_LENGTH];
63     char szLabel[MAX_NAME_LENGTH];
64     char szDevice[MAX_NAME_LENGTH];
65     char szSerial[MAX_NAME_LENGTH];
66 } DRIVE_DESC;
67
68 typedef struct
69 {
70     char   szX11Display[MAX_NAME_LENGTH];
71     int    nSysColors;
72     int    nPrivateMap;
73     int    nPerfect;
74     int    nDepth;
75     int    nManaged;
76     int    nDesktopSizeX;
77     int    nDesktopSizeY;
78     int    nDGA;
79     int    nXVidMode;
80     int    nXShm;
81     int    nTextCP;
82     int    nXVideoPort;
83     int    nTakeFocus;
84     int    nDXGrab;
85     int    nDoubleBuffered;
86     int    nSynchronous;
87 } X11DRV_DESC;
88
89 const VERSION_DESC *getWinVersions(void);
90 const VERSION_DESC *getDOSVersions(void);
91 const VERSION_DESC *getWinelook(void);
92 const DLL_DESC *getDLLDefaults(void);
93
94 #endif