Commit 55303936 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

winecfg: Tidy up included headers.

Get rid of the barely used properties.c.
parent 1017bcc4
...@@ -14,7 +14,6 @@ C_SRCS = \ ...@@ -14,7 +14,6 @@ C_SRCS = \
driveui.c \ driveui.c \
libraries.c \ libraries.c \
main.c \ main.c \
properties.c \
theme.c \ theme.c \
winecfg.c \ winecfg.c \
x11drvdlg.c x11drvdlg.c
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
* *
*/ */
#define WIN32_LEAN_AND_MEAN
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#define NONAMELESSUNION #define NONAMELESSUNION
...@@ -26,14 +27,11 @@ ...@@ -26,14 +27,11 @@
#include "wine/port.h" #include "wine/port.h"
#include <assert.h> #include <assert.h>
#include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <windef.h> #include <windows.h>
#include <winbase.h>
#include <winreg.h>
#include <wine/debug.h> #include <wine/debug.h>
#include <shellapi.h> #include <shellapi.h>
#include <objbase.h> #include <objbase.h>
...@@ -43,7 +41,6 @@ ...@@ -43,7 +41,6 @@
#include <windowsx.h> #include <windowsx.h>
#include <mmsystem.h> #include <mmsystem.h>
#include <mmreg.h> #include <mmreg.h>
#include <mmsystem.h>
#include <mmddk.h> #include <mmddk.h>
#include "winecfg.h" #include "winecfg.h"
...@@ -64,6 +61,18 @@ static const char* DSound_HW_Accels[] = { ...@@ -64,6 +61,18 @@ static const char* DSound_HW_Accels[] = {
NULL 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 */ /* list of available drivers */
static AUDIO_DRIVER * loadedAudioDrv; static AUDIO_DRIVER * loadedAudioDrv;
...@@ -467,7 +476,7 @@ static void findAudioDrivers(void) ...@@ -467,7 +476,7 @@ static void findAudioDrivers(void)
*/ */
old_cursor = SetCursor(LoadCursor(0, IDC_WAIT)); old_cursor = SetCursor(LoadCursor(0, IDC_WAIT));
for (pAudioDrv = getAudioDrivers(); *pAudioDrv->szName; pAudioDrv++) for (pAudioDrv = sAudioDrivers; *pAudioDrv->szName; pAudioDrv++)
{ {
if (strlen(pAudioDrv->szDriver)) if (strlen(pAudioDrv->szDriver))
{ {
......
...@@ -21,20 +21,15 @@ ...@@ -21,20 +21,15 @@
* *
*/ */
#include <stdarg.h> #define WIN32_LEAN_AND_MEAN
#include <stdio.h>
#define COBJMACROS #define COBJMACROS
#include <windef.h> #include <windows.h>
#include <winbase.h>
#include <winreg.h>
#include <shellapi.h> #include <shellapi.h>
#include <objbase.h> #include <objbase.h>
#include <shlguid.h> #include <shlguid.h>
#include <shlwapi.h> #include <shlwapi.h>
#include <shlobj.h> #include <shlobj.h>
#include <winuser.h>
#include <wine/debug.h> #include <wine/debug.h>
...@@ -279,7 +274,9 @@ static int fill_drives_list(HWND dialog) ...@@ -279,7 +274,9 @@ static int fill_drives_list(HWND dialog)
if (drives[i].letter == 'C') if (drives[i].letter == 'C')
drivec_present = TRUE; drivec_present = TRUE;
snprintf(letter, sizeof(letter), "%c:", 'A' + i); letter[0] = 'A' + i;
letter[1] = ':';
letter[2] = 0;
memset(&item, 0, sizeof(item)); memset(&item, 0, sizeof(item));
item.mask = LVIF_TEXT | LVIF_PARAM; item.mask = LVIF_TEXT | LVIF_PARAM;
......
...@@ -21,21 +21,12 @@ ...@@ -21,21 +21,12 @@
* *
*/ */
#include "config.h" #define WIN32_LEAN_AND_MEAN
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#define NONAMELESSUNION #define NONAMELESSUNION
#define NONAMELESSSTRUCT #define NONAMELESSSTRUCT
#include <windef.h> #include <windows.h>
#include <winbase.h>
#include <winuser.h>
#include <commctrl.h> #include <commctrl.h>
#include <objbase.h> #include <objbase.h>
#include <wine/debug.h> #include <wine/debug.h>
......
/*
* 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 ...@@ -87,7 +87,4 @@ typedef struct
int nType; int nType;
} DEV_NODES; } DEV_NODES;
const DLL_DESC *getDLLDefaults(void);
const AUDIO_DRIVER *getAudioDrivers(void);
#endif #endif
...@@ -23,10 +23,7 @@ ...@@ -23,10 +23,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <windef.h> #include <windows.h>
#include <winbase.h>
#include <wingdi.h>
#include <winuser.h>
#include <uxtheme.h> #include <uxtheme.h>
#include <tmschema.h> #include <tmschema.h>
#include <shlobj.h> #include <shlobj.h>
......
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
* *
*/ */
#define WIN32_LEAN_AND_MEAN
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <limits.h> #include <limits.h>
......
...@@ -21,13 +21,13 @@ ...@@ -21,13 +21,13 @@
* *
*/ */
#define WIN32_LEAN_AND_MEAN
#include <stdarg.h> #include <stdarg.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <windef.h> #include <windows.h>
#include <winbase.h>
#include <winreg.h>
#include <wine/debug.h> #include <wine/debug.h>
#include "resource.h" #include "resource.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment