aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/implementation.c
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/detail/implementation.c')
-rw-r--r--pugl/detail/implementation.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/pugl/detail/implementation.c b/pugl/detail/implementation.c
index abfd654..6ff71e2 100644
--- a/pugl/detail/implementation.c
+++ b/pugl/detail/implementation.c
@@ -190,22 +190,25 @@ puglGetContext(PuglView* view)
return view->backend->getContext(view);
}
-void
+PuglStatus
puglEnterContext(PuglView* view, bool drawing)
{
view->backend->enter(view, drawing);
+ return PUGL_SUCCESS;
}
-void
+PuglStatus
puglLeaveContext(PuglView* view, bool drawing)
{
view->backend->leave(view, drawing);
+ return PUGL_SUCCESS;
}
-void
+PuglStatus
puglSetEventFunc(PuglView* view, PuglEventFunc eventFunc)
{
view->eventFunc = eventFunc;
+ return PUGL_SUCCESS;
}
/** Return the code point for buf, or the replacement character on error. */