aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/implementation.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-08 17:47:10 +0100
committerDavid Robillard <d@drobilla.net>2020-03-08 17:47:10 +0100
commit646af656d4094d44ad0fed615429cb8585db5724 (patch)
tree65b961cd3c286b9d6467a1a6ce982ed9d3f61275 /pugl/detail/implementation.c
parentf54e63ab63409b887621e77168de6b9790d3a3cf (diff)
downloadpugl-646af656d4094d44ad0fed615429cb8585db5724.tar.gz
pugl-646af656d4094d44ad0fed615429cb8585db5724.tar.bz2
pugl-646af656d4094d44ad0fed615429cb8585db5724.zip
Add a user data handle to the world
Diffstat (limited to 'pugl/detail/implementation.c')
-rw-r--r--pugl/detail/implementation.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/pugl/detail/implementation.c b/pugl/detail/implementation.c
index 83f63ae..d3b47df 100644
--- a/pugl/detail/implementation.c
+++ b/pugl/detail/implementation.c
@@ -112,6 +112,18 @@ puglFreeWorld(PuglWorld* const world)
free(world);
}
+void
+puglSetWorldHandle(PuglWorld* world, PuglWorldHandle handle)
+{
+ world->handle = handle;
+}
+
+PuglWorldHandle
+puglGetWorldHandle(PuglWorld* world)
+{
+ return world->handle;
+}
+
PuglStatus
puglSetClassName(PuglWorld* const world, const char* const name)
{