winecfg: Tidy up included headers.
Get rid of the barely used properties.c.
This commit is contained in:
parent
1017bcc448
commit
55303936b6
|
@ -14,7 +14,6 @@ C_SRCS = \
|
|||
driveui.c \
|
||||
libraries.c \
|
||||
main.c \
|
||||
properties.c \
|
||||
theme.c \
|
||||
winecfg.c \
|
||||
x11drvdlg.c
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#define NONAMELESSSTRUCT
|
||||
#define NONAMELESSUNION
|
||||
|
||||
|
@ -26,14 +27,11 @@
|
|||
#include "wine/port.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <winreg.h>
|
||||
#include <windows.h>
|
||||
#include <wine/debug.h>
|
||||
#include <shellapi.h>
|
||||
#include <objbase.h>
|
||||
|
@ -43,7 +41,6 @@
|
|||
#include <windowsx.h>
|
||||
#include <mmsystem.h>
|
||||
#include <mmreg.h>
|
||||
#include <mmsystem.h>
|
||||
#include <mmddk.h>
|
||||
|
||||
#include "winecfg.h"
|
||||
|
@ -64,6 +61,18 @@ static const char* DSound_HW_Accels[] = {
|
|||
NULL
|
||||
};
|
||||
|
||||
static const AUDIO_DRIVER sAudioDrivers[] = {
|
||||
{"ALSA", "alsa"},
|
||||
{"aRts", "arts"},
|
||||
{"EsounD", "esd"},
|
||||
{"OSS", "oss"},
|
||||
{"JACK", "jack"},
|
||||
{"NAS", "nas"},
|
||||
{"Audio IO(Solaris)", "audioio"},
|
||||
{"Disable sound", ""},
|
||||
{"", ""}
|
||||
};
|
||||
|
||||
/* list of available drivers */
|
||||
static AUDIO_DRIVER * loadedAudioDrv;
|
||||
|
||||
|
@ -467,7 +476,7 @@ static void findAudioDrivers(void)
|
|||
*/
|
||||
old_cursor = SetCursor(LoadCursor(0, IDC_WAIT));
|
||||
|
||||
for (pAudioDrv = getAudioDrivers(); *pAudioDrv->szName; pAudioDrv++)
|
||||
for (pAudioDrv = sAudioDrivers; *pAudioDrv->szName; pAudioDrv++)
|
||||
{
|
||||
if (strlen(pAudioDrv->szDriver))
|
||||
{
|
||||
|
|
|
@ -21,20 +21,15 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#define COBJMACROS
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <winreg.h>
|
||||
#include <windows.h>
|
||||
#include <shellapi.h>
|
||||
#include <objbase.h>
|
||||
#include <shlguid.h>
|
||||
#include <shlwapi.h>
|
||||
#include <shlobj.h>
|
||||
#include <winuser.h>
|
||||
|
||||
#include <wine/debug.h>
|
||||
|
||||
|
@ -279,7 +274,9 @@ static int fill_drives_list(HWND dialog)
|
|||
if (drives[i].letter == 'C')
|
||||
drivec_present = TRUE;
|
||||
|
||||
snprintf(letter, sizeof(letter), "%c:", 'A' + i);
|
||||
letter[0] = 'A' + i;
|
||||
letter[1] = ':';
|
||||
letter[2] = 0;
|
||||
|
||||
memset(&item, 0, sizeof(item));
|
||||
item.mask = LVIF_TEXT | LVIF_PARAM;
|
||||
|
|
|
@ -21,21 +21,12 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
#define NONAMELESSUNION
|
||||
#define NONAMELESSSTRUCT
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <winuser.h>
|
||||
#include <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include <objbase.h>
|
||||
#include <wine/debug.h>
|
||||
|
|
|
@ -1,71 +0,0 @@
|
|||
/*
|
||||
* WineCfg properties management
|
||||
*
|
||||
* Copyright 2002 Jaco Greeff
|
||||
* Copyright 2003 Dimitrie O. Paun
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
*/
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#include "properties.h"
|
||||
|
||||
static const DLL_DESC sDLLType[] = {
|
||||
{"oleaut32", DLL_BUILTIN},
|
||||
{"ole32", DLL_BUILTIN},
|
||||
{"commdlg", DLL_BUILTIN},
|
||||
{"comdlg32", DLL_BUILTIN},
|
||||
{"shell", DLL_BUILTIN},
|
||||
{"shell32", DLL_BUILTIN},
|
||||
{"shfolder", DLL_BUILTIN},
|
||||
{"shlwapi", DLL_BUILTIN},
|
||||
{"shdocvw", DLL_BUILTIN},
|
||||
{"advapi32", DLL_BUILTIN},
|
||||
{"msvcrt", DLL_NATIVE},
|
||||
{"mciavi32.dll", DLL_NATIVE},
|
||||
{"*", DLL_NATIVE},
|
||||
{"", -1}
|
||||
};
|
||||
|
||||
static const AUDIO_DRIVER sAudioDrivers[] = {
|
||||
{"ALSA", "alsa"},
|
||||
{"aRts", "arts"},
|
||||
{"EsounD", "esd"},
|
||||
{"OSS", "oss"},
|
||||
{"JACK", "jack"},
|
||||
{"NAS", "nas"},
|
||||
{"Audio IO(Solaris)", "audioio"},
|
||||
{"Disable sound", ""},
|
||||
{"", ""}
|
||||
};
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*/
|
||||
const DLL_DESC* getDLLDefaults(void)
|
||||
{
|
||||
return sDLLType;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
*/
|
||||
const AUDIO_DRIVER* getAudioDrivers(void)
|
||||
{
|
||||
return sAudioDrivers;
|
||||
}
|
|
@ -87,7 +87,4 @@ typedef struct
|
|||
int nType;
|
||||
} DEV_NODES;
|
||||
|
||||
const DLL_DESC *getDLLDefaults(void);
|
||||
const AUDIO_DRIVER *getAudioDrivers(void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -23,10 +23,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <wingdi.h>
|
||||
#include <winuser.h>
|
||||
#include <windows.h>
|
||||
#include <uxtheme.h>
|
||||
#include <tmschema.h>
|
||||
#include <shlobj.h>
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <limits.h>
|
||||
|
|
|
@ -21,13 +21,13 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
#include <winreg.h>
|
||||
#include <windows.h>
|
||||
#include <wine/debug.h>
|
||||
|
||||
#include "resource.h"
|
||||
|
|
Loading…
Reference in New Issue