aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-28 17:23:19 -0700
committerChris Robinson <[email protected]>2013-10-28 17:23:19 -0700
commita407d5763949fdb421b38ac4f624b8e9193f33e5 (patch)
tree81bea7997332686f5633d252b1cd4b2f2dbbeb6b /Alc
parent0a6eff6a890a4ae3327db542594a1d66fc645a05 (diff)
Rename the support method to querySupport
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c4
-rw-r--r--Alc/backends/base.h8
-rw-r--r--Alc/backends/null.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 53a3917b..7527ebf8 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1031,12 +1031,12 @@ static void alc_initconfig(void)
}
TRACE("Initialized backend \"%s\"\n", BackendList[i].name);
- if(!PlaybackBackend.name && VCALL(factory,support)(ALCbackend_Playback))
+ if(!PlaybackBackend.name && VCALL(factory,querySupport)(ALCbackend_Playback))
{
PlaybackBackend = BackendList[i];
TRACE("Added \"%s\" for playback\n", PlaybackBackend.name);
}
- if(!CaptureBackend.name && VCALL(factory,support)(ALCbackend_Capture))
+ if(!CaptureBackend.name && VCALL(factory,querySupport)(ALCbackend_Capture))
{
CaptureBackend = BackendList[i];
TRACE("Added \"%s\" for capture\n", CaptureBackend.name);
diff --git a/Alc/backends/base.h b/Alc/backends/base.h
index ed0fff50..f5950ba1 100644
--- a/Alc/backends/base.h
+++ b/Alc/backends/base.h
@@ -102,7 +102,7 @@ struct ALCbackendFactoryVtable {
ALCboolean (*const init)(ALCbackendFactory *self);
void (*const deinit)(ALCbackendFactory *self);
- ALCboolean (*const support)(ALCbackendFactory *self, ALCbackend_Type type);
+ ALCboolean (*const querySupport)(ALCbackendFactory *self, ALCbackend_Type type);
void (*const probe)(ALCbackendFactory *self, enum DevProbe type);
@@ -114,8 +114,8 @@ static ALCboolean T##_ALCbackendFactory_init(ALCbackendFactory *obj) \
{ return T##_init(STATIC_UPCAST(T, ALCbackendFactory, obj)); } \
static void T##_ALCbackendFactory_deinit(ALCbackendFactory *obj) \
{ T##_deinit(STATIC_UPCAST(T, ALCbackendFactory, obj)); } \
-static ALCboolean T##_ALCbackendFactory_support(ALCbackendFactory *obj, ALCbackend_Type a) \
-{ return T##_support(STATIC_UPCAST(T, ALCbackendFactory, obj), a); } \
+static ALCboolean T##_ALCbackendFactory_querySupport(ALCbackendFactory *obj, ALCbackend_Type a) \
+{ return T##_querySupport(STATIC_UPCAST(T, ALCbackendFactory, obj), a); } \
static void T##_ALCbackendFactory_probe(ALCbackendFactory *obj, enum DevProbe a) \
{ T##_probe(STATIC_UPCAST(T, ALCbackendFactory, obj), a); } \
static ALCbackend* T##_ALCbackendFactory_createBackend(ALCbackendFactory *obj, ALCdevice *a) \
@@ -124,7 +124,7 @@ static ALCbackend* T##_ALCbackendFactory_createBackend(ALCbackendFactory *obj, A
static const struct ALCbackendFactoryVtable T##_ALCbackendFactory_vtable = { \
T##_ALCbackendFactory_init, \
T##_ALCbackendFactory_deinit, \
- T##_ALCbackendFactory_support, \
+ T##_ALCbackendFactory_querySupport, \
T##_ALCbackendFactory_probe, \
T##_ALCbackendFactory_createBackend, \
}
diff --git a/Alc/backends/null.c b/Alc/backends/null.c
index ab371747..9e762190 100644
--- a/Alc/backends/null.c
+++ b/Alc/backends/null.c
@@ -187,7 +187,7 @@ void ALCnullBackendFactory_deinit(ALCnullBackendFactory* UNUSED(self))
{
}
-ALCboolean ALCnullBackendFactory_support(ALCnullBackendFactory* UNUSED(self), ALCbackend_Type type)
+ALCboolean ALCnullBackendFactory_querySupport(ALCnullBackendFactory* UNUSED(self), ALCbackend_Type type)
{
if(type == ALCbackend_Playback)
return ALC_TRUE;