2 * WineCfg properties management
4 * Copyright 2002 Jaco Greeff
5 * Copyright 2003 Dimitrie O. Paun
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.
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.
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
25 #include "properties.h"
27 static VERSION_DESC sWinVersions[] = {
28 {"", "Use default(Global setting)"},
29 {"win20", "Windows 2.0"},
30 {"win30", "Windows 3.0"},
31 {"win31", "Windows 3.1"},
32 {"nt351", "Windows NT 3.5"},
33 {"nt40", "Windows NT 4.0"},
34 {"win95", "Windows 95"},
35 {"win98", "Windows 98"},
36 {"winme", "Windows ME"},
37 {"win2k", "Windows 2000"},
38 {"winxp", "Windows XP"},
39 {"win2003", "Windows 2003"},
43 static VERSION_DESC sDOSVersions[] = {
44 {"", "Use default(Global setting)"},
45 {"6.22", "MS-DOS 6.22"},
50 static VERSION_DESC sWineDrivers[] = {
51 {"x11drv", "X11 Interface"},
52 {"ttydrv", "TTY Interface"},
57 static DLL_DESC sDLLType[] = {
58 {"oleaut32", DLL_BUILTIN},
59 {"ole32", DLL_BUILTIN},
60 {"commdlg", DLL_BUILTIN},
61 {"comdlg32", DLL_BUILTIN},
62 {"shell", DLL_BUILTIN},
63 {"shell32", DLL_BUILTIN},
64 {"shfolder", DLL_BUILTIN},
65 {"shlwapi", DLL_BUILTIN},
66 {"shdocvw", DLL_BUILTIN},
67 {"advapi32", DLL_BUILTIN},
68 {"msvcrt", DLL_NATIVE},
69 {"mciavi.drv", DLL_NATIVE},
70 {"mcianim.drv", DLL_NATIVE},
75 static AUDIO_DRIVER sAudioDrivers[] = {
76 {"Alsa", "winealsa.drv"},
77 {"aRts", "winearts.drv"},
78 {"OSS", "wineoss.drv"},
79 {"Jack", "winejack.drv"},
80 {"Nas", "winenas.drv"},
81 {"Audio IO(Solaris)", "wineaudioio.drv"},
82 {"Disable sound", ""},
88 /*****************************************************************************
90 VERSION_DESC* getWinVersions(void)
96 /*****************************************************************************
98 VERSION_DESC* getDOSVersions(void)
104 /*****************************************************************************
106 DLL_DESC* getDLLDefaults(void)
111 /*****************************************************************************
113 AUDIO_DRIVER* getAudioDrivers(void)
115 return sAudioDrivers;
119 /* Functions to convert from version to description and back */
120 char* getVersionFromDescription(VERSION_DESC* pVer, char *desc)
122 for (; *pVer->szVersion; pVer++)
124 if(!strcasecmp(pVer->szDescription, desc))
125 return pVer->szVersion;
131 char* getDescriptionFromVersion(VERSION_DESC* pVer, char *ver)
133 for (; *pVer->szDescription; pVer++)
135 if(!strcasecmp(pVer->szVersion, ver))
136 return pVer->szDescription;