aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/mac.m
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-27 13:18:57 +0100
committerDavid Robillard <d@drobilla.net>2019-11-03 21:03:18 +0100
commitc75c10d2385aaa1bbf7d8f5ae437ccd5d1e3803f (patch)
tree9dace3da383ca1edcc01118f8447f17b0eb52395 /pugl/detail/mac.m
parent3c9a8a2ed86d08da842e11d32065da43b5bfdc77 (diff)
downloadpugl-c75c10d2385aaa1bbf7d8f5ae437ccd5d1e3803f.tar.gz
pugl-c75c10d2385aaa1bbf7d8f5ae437ccd5d1e3803f.tar.bz2
pugl-c75c10d2385aaa1bbf7d8f5ae437ccd5d1e3803f.zip
Expose functional stub backend
Diffstat (limited to 'pugl/detail/mac.m')
-rw-r--r--pugl/detail/mac.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/pugl/detail/mac.m b/pugl/detail/mac.m
index c9847eb..e8a5d57 100644
--- a/pugl/detail/mac.m
+++ b/pugl/detail/mac.m
@@ -24,6 +24,7 @@
#include "pugl/detail/implementation.h"
#include "pugl/detail/mac.h"
#include "pugl/pugl.h"
+#include "pugl/pugl_stub_backend.h"
#import <Cocoa/Cocoa.h>
@@ -1071,3 +1072,17 @@ puglSetClipboard(PuglView* const view,
return PUGL_SUCCESS;
}
+
+const PuglBackend*
+puglStubBackend(void)
+{
+ static const PuglBackend backend = {puglStubConfigure,
+ puglStubCreate,
+ puglStubDestroy,
+ puglStubEnter,
+ puglStubLeave,
+ puglStubResize,
+ puglStubGetContext};
+
+ return &backend;
+}