Change all head -1 to head -n 1 to be more POSIXly compliant.
[wine] / programs / winecfg / properties.c
1 /*
2  * WineCfg properties management
3  *
4  * Copyright 2002 Jaco Greeff
5  * Copyright 2003 Dimitrie O. Paun
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  *
21  */
22
23 #include <windows.h>
24
25 #include "properties.h"
26
27 static VERSION_DESC sWinVersions[] = {
28     {"win20", "Windows 2.0"},
29     {"win30", "Windows 3.0"},
30     {"win31", "Windows 3.1"},
31     {"nt351", "Windows NT 3.5"},
32     {"nt40", "Windows NT 4.0"},
33     {"win95", "Windows 95"},
34     {"win98", "Windows 98"},
35     {"winme", "Windows ME"},
36     {"win2k", "Windows 2000"},
37     {"win2k3", "Windows 2003"},
38     {"winxp", "Windows XP"},
39     {"", ""}
40 };
41
42 static VERSION_DESC sDOSVersions[] = {
43     {"6.22", "MS-DOS 6.22"},
44     {"", ""}
45 };
46
47 static VERSION_DESC sWineLook[] = {
48     {"win31", "Windows 3.1"},
49     {"win95", "Windows 95"},
50     {"win98", "Windows 98"},
51     {"", ""}
52 };
53
54 #if 0
55 static VERSION_DESC sWineDrivers[] = {
56     {"x11drv", "X11 Interface"},
57     {"ttydrv", "TTY Interface"},
58     {"", ""}
59 };
60 #endif
61
62 static DLL_DESC sDLLType[] = {
63     {"oleaut32", DLL_BUILTIN},
64     {"ole32", DLL_BUILTIN},
65     {"commdlg", DLL_BUILTIN},
66     {"comdlg32", DLL_BUILTIN},
67     {"shell", DLL_BUILTIN},
68     {"shell32", DLL_BUILTIN},
69     {"shfolder", DLL_BUILTIN},
70     {"shlwapi", DLL_BUILTIN},
71     {"shdocvw", DLL_BUILTIN},
72     {"advapi32", DLL_BUILTIN},
73     {"msvcrt", DLL_NATIVE},
74     {"mciavi.drv", DLL_NATIVE},
75     {"mcianim.drv", DLL_NATIVE},
76     {"*", DLL_NATIVE},
77     {"", -1}
78 };
79
80
81 /*****************************************************************************
82  */
83 const VERSION_DESC* getWinVersions(void)
84 {
85     return sWinVersions;
86 }
87
88
89 /*****************************************************************************
90  */
91 const VERSION_DESC* getDOSVersions(void)
92 {
93     return sDOSVersions;
94 }
95
96
97 /*****************************************************************************
98  */
99 const VERSION_DESC* getWinelook(void)
100 {
101     return sWineLook;
102 }
103
104
105 /*****************************************************************************
106  */
107 const DLL_DESC* getDLLDefaults(void)
108 {
109     return sDLLType;
110 }