diff options
author | David Robillard <d@drobilla.net> | 2019-08-04 23:20:04 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-09-03 08:34:56 +0200 |
commit | 67a5799618186beecd0ea028101395de3569345f (patch) | |
tree | f0f264c0d3e9965a8143d6effd990f41bb306635 /pugl/detail/implementation.c | |
parent | 59359e4f3d81231e7c665aa53ceeba7de0671d95 (diff) | |
download | pugl-67a5799618186beecd0ea028101395de3569345f.tar.gz pugl-67a5799618186beecd0ea028101395de3569345f.tar.bz2 pugl-67a5799618186beecd0ea028101395de3569345f.zip |
Make almost everything return a status
Prepares the API for proper error handling, even though there isn't any for
these functions yet.
Diffstat (limited to 'pugl/detail/implementation.c')
-rw-r--r-- | pugl/detail/implementation.c | 9 |
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. */ |