aboutsummaryrefslogtreecommitdiffstats
path: root/router/router.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-07-07 18:33:54 -0700
committerChris Robinson <[email protected]>2017-07-07 18:33:54 -0700
commit6be752a9b1a38379b8631c5dcb6c47e099af4f02 (patch)
treeb22d581ed2fd98fbd12526d2af005c6517f110c4 /router/router.h
parentfaefa1d55479a5d5a05ddb18f6b9051634adec3d (diff)
Add methods for thread-local contexts to the router
Diffstat (limited to 'router/router.h')
-rw-r--r--router/router.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/router/router.h b/router/router.h
index 0749ffad..ee885d85 100644
--- a/router/router.h
+++ b/router/router.h
@@ -9,6 +9,7 @@
#include "AL/alc.h"
#include "AL/al.h"
+#include "AL/alext.h"
#include "atomic.h"
#include "rwlock.h"
#include "threads.h"
@@ -54,6 +55,9 @@ typedef struct DriverIface {
LPALCCAPTURESTOP alcCaptureStop;
LPALCCAPTURESAMPLES alcCaptureSamples;
+ PFNALCSETTHREADCONTEXTPROC alcSetThreadContext;
+ PFNALCGETTHREADCONTEXTPROC alcGetThreadContext;
+
LPALENABLE alEnable;
LPALDISABLE alDisable;
LPALISENABLED alIsEnabled;
@@ -132,6 +136,7 @@ typedef struct DriverIface {
extern DriverIface *DriverList;
extern int DriverListSize;
+extern altss_t ThreadCtxDriver;
extern ATOMIC(DriverIface*) CurrentCtxDriver;