diff options
author | Chris Robinson <[email protected]> | 2014-04-23 03:52:05 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-04-23 03:52:05 -0700 |
commit | 8fd224f84191b3d512f9ea0c44aa1104b23959d8 (patch) | |
tree | 2e5df0bb69426cd1f56d83f29020d5534d54a0f3 /Alc/backends/null.c | |
parent | 420599f8e37c8657fd1568aca3bcd5d1d4711234 (diff) |
Avoid forward-declaring backend vtables
Diffstat (limited to 'Alc/backends/null.c')
-rw-r--r-- | Alc/backends/null.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Alc/backends/null.c b/Alc/backends/null.c index c5a4c15f..3f09c5d6 100644 --- a/Alc/backends/null.c +++ b/Alc/backends/null.c @@ -39,7 +39,6 @@ typedef struct ALCnullBackend { volatile int killNow; althrd_t thread; } ALCnullBackend; -DECLARE_ALCBACKEND_VTABLE(ALCnullBackend); static int ALCnullBackend_mixerProc(void *ptr); @@ -57,6 +56,8 @@ static DECLARE_FORWARD(ALCnullBackend, ALCbackend, void, lock) static DECLARE_FORWARD(ALCnullBackend, ALCbackend, void, unlock) DECLARE_DEFAULT_ALLOCATORS(ALCnullBackend) +DEFINE_ALCBACKEND_VTABLE(ALCnullBackend); + static const ALCchar nullDevice[] = "No Output"; @@ -161,8 +162,6 @@ static void ALCnullBackend_stop(ALCnullBackend *self) althrd_join(self->thread, &res); } -DEFINE_ALCBACKEND_VTABLE(ALCnullBackend); - typedef struct ALCnullBackendFactory { DERIVE_FROM_TYPE(ALCbackendFactory); |