Make some declarations static or static const

This commit is contained in:
Chris Robinson 2011-05-21 21:28:27 -07:00
parent c3cbfecbae
commit 4d7aab1df4
9 changed files with 10 additions and 10 deletions

View File

@ -988,7 +988,7 @@ static void alsa_capture_samples(ALCdevice *Device, ALCvoid *Buffer, ALCuint Sam
} }
BackendFuncs alsa_funcs = { static const BackendFuncs alsa_funcs = {
alsa_open_playback, alsa_open_playback,
alsa_close_playback, alsa_close_playback,
alsa_reset_playback, alsa_reset_playback,

View File

@ -73,7 +73,7 @@ static DevMap *DeviceList;
static ALuint NumDevices; static ALuint NumDevices;
void *DSoundLoad(void) static void *DSoundLoad(void)
{ {
if(!ds_handle) if(!ds_handle)
{ {
@ -538,7 +538,7 @@ static ALCuint DSoundAvailableSamples(ALCdevice *pDevice)
} }
BackendFuncs DSoundFuncs = { static const BackendFuncs DSoundFuncs = {
DSoundOpenPlayback, DSoundOpenPlayback,
DSoundClosePlayback, DSoundClosePlayback,
DSoundResetPlayback, DSoundResetPlayback,

View File

@ -48,7 +48,7 @@ static void loopback_stop_playback(ALCdevice *device)
(void)device; (void)device;
} }
static BackendFuncs loopback_funcs = { static const BackendFuncs loopback_funcs = {
loopback_open_playback, loopback_open_playback,
loopback_close_playback, loopback_close_playback,
loopback_reset_playback, loopback_reset_playback,

View File

@ -151,7 +151,7 @@ static ALCboolean null_open_capture(ALCdevice *device, const ALCchar *deviceName
} }
BackendFuncs null_funcs = { static const BackendFuncs null_funcs = {
null_open_playback, null_open_playback,
null_close_playback, null_close_playback,
null_reset_playback, null_reset_playback,

View File

@ -476,7 +476,7 @@ static ALCuint oss_available_samples(ALCdevice *pDevice)
} }
BackendFuncs oss_funcs = { static const BackendFuncs oss_funcs = {
oss_open_playback, oss_open_playback,
oss_close_playback, oss_close_playback,
oss_reset_playback, oss_reset_playback,

View File

@ -1240,7 +1240,7 @@ static void pulse_capture_samples(ALCdevice *device, ALCvoid *buffer, ALCuint sa
} //}}} } //}}}
BackendFuncs pulse_funcs = { //{{{ static const BackendFuncs pulse_funcs = { //{{{
pulse_open_playback, pulse_open_playback,
pulse_close_playback, pulse_close_playback,
pulse_reset_playback, pulse_reset_playback,

View File

@ -273,7 +273,7 @@ static ALCuint solaris_available_samples(ALCdevice *pDevice)
} }
BackendFuncs solaris_funcs = { static const BackendFuncs solaris_funcs = {
solaris_open_playback, solaris_open_playback,
solaris_close_playback, solaris_close_playback,
solaris_reset_playback, solaris_reset_playback,

View File

@ -321,7 +321,7 @@ static ALCboolean wave_open_capture(ALCdevice *pDevice, const ALCchar *deviceNam
} }
BackendFuncs wave_funcs = { static const BackendFuncs wave_funcs = {
wave_open_playback, wave_open_playback,
wave_close_playback, wave_close_playback,
wave_reset_playback, wave_reset_playback,

View File

@ -729,7 +729,7 @@ static void WinMMCaptureSamples(ALCdevice *pDevice, ALCvoid *pBuffer, ALCuint lS
} }
static BackendFuncs WinMMFuncs = { static const BackendFuncs WinMMFuncs = {
WinMMOpenPlayback, WinMMOpenPlayback,
WinMMClosePlayback, WinMMClosePlayback,
WinMMResetPlayback, WinMMResetPlayback,