diff options
author | Chris Robinson <[email protected]> | 2011-05-21 21:28:27 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-21 21:28:27 -0700 |
commit | 4d7aab1df42084a37cc7cda3b01b9fcc1f5ab360 (patch) | |
tree | e330d2cf2b1a4dafaaddaeca96083100ae5591cf | |
parent | c3cbfecbaebcbfeb867a3918b67afe825b030925 (diff) |
Make some declarations static or static const
-rw-r--r-- | Alc/alsa.c | 2 | ||||
-rw-r--r-- | Alc/dsound.c | 4 | ||||
-rw-r--r-- | Alc/loopback.c | 2 | ||||
-rw-r--r-- | Alc/null.c | 2 | ||||
-rw-r--r-- | Alc/oss.c | 2 | ||||
-rw-r--r-- | Alc/pulseaudio.c | 2 | ||||
-rw-r--r-- | Alc/solaris.c | 2 | ||||
-rw-r--r-- | Alc/wave.c | 2 | ||||
-rw-r--r-- | Alc/winmm.c | 2 |
9 files changed, 10 insertions, 10 deletions
@@ -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_close_playback, alsa_reset_playback, diff --git a/Alc/dsound.c b/Alc/dsound.c index ca39d193..7ef49729 100644 --- a/Alc/dsound.c +++ b/Alc/dsound.c @@ -73,7 +73,7 @@ static DevMap *DeviceList; static ALuint NumDevices; -void *DSoundLoad(void) +static void *DSoundLoad(void) { if(!ds_handle) { @@ -538,7 +538,7 @@ static ALCuint DSoundAvailableSamples(ALCdevice *pDevice) } -BackendFuncs DSoundFuncs = { +static const BackendFuncs DSoundFuncs = { DSoundOpenPlayback, DSoundClosePlayback, DSoundResetPlayback, diff --git a/Alc/loopback.c b/Alc/loopback.c index 036e72c1..50975c9c 100644 --- a/Alc/loopback.c +++ b/Alc/loopback.c @@ -48,7 +48,7 @@ static void loopback_stop_playback(ALCdevice *device) (void)device; } -static BackendFuncs loopback_funcs = { +static const BackendFuncs loopback_funcs = { loopback_open_playback, loopback_close_playback, loopback_reset_playback, @@ -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_close_playback, null_reset_playback, @@ -476,7 +476,7 @@ static ALCuint oss_available_samples(ALCdevice *pDevice) } -BackendFuncs oss_funcs = { +static const BackendFuncs oss_funcs = { oss_open_playback, oss_close_playback, oss_reset_playback, diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index c92cab52..353e2e09 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -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_close_playback, pulse_reset_playback, diff --git a/Alc/solaris.c b/Alc/solaris.c index 1b94be1d..0510985e 100644 --- a/Alc/solaris.c +++ b/Alc/solaris.c @@ -273,7 +273,7 @@ static ALCuint solaris_available_samples(ALCdevice *pDevice) } -BackendFuncs solaris_funcs = { +static const BackendFuncs solaris_funcs = { solaris_open_playback, solaris_close_playback, solaris_reset_playback, @@ -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_close_playback, wave_reset_playback, diff --git a/Alc/winmm.c b/Alc/winmm.c index 4be39b22..eebeb9de 100644 --- a/Alc/winmm.c +++ b/Alc/winmm.c @@ -729,7 +729,7 @@ static void WinMMCaptureSamples(ALCdevice *pDevice, ALCvoid *pBuffer, ALCuint lS } -static BackendFuncs WinMMFuncs = { +static const BackendFuncs WinMMFuncs = { WinMMOpenPlayback, WinMMClosePlayback, WinMMResetPlayback, |