diff options
author | David Robillard <d@drobilla.net> | 2019-09-07 14:16:19 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-09-07 14:40:39 +0200 |
commit | dc9f1d852d3fba8ddcf7bb535810ad384900fe06 (patch) | |
tree | b3ea2e2b5be850fa3b42c476ae03f04d960b0433 /pugl/detail/types.h | |
parent | 7162fa4f5656ad7dfe2d6fea02f9f33c5aa1b1cf (diff) | |
download | pugl-dc9f1d852d3fba8ddcf7bb535810ad384900fe06.tar.gz pugl-dc9f1d852d3fba8ddcf7bb535810ad384900fe06.tar.bz2 pugl-dc9f1d852d3fba8ddcf7bb535810ad384900fe06.zip |
Clean up error handling
Diffstat (limited to 'pugl/detail/types.h')
-rw-r--r-- | pugl/detail/types.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pugl/detail/types.h b/pugl/detail/types.h index 4ac224b..d018be5 100644 --- a/pugl/detail/types.h +++ b/pugl/detail/types.h @@ -89,22 +89,22 @@ typedef void PuglSurface; /** Graphics backend interface. */ struct PuglBackendImpl { /** Get visual information from display and setup view as necessary. */ - int (*configure)(PuglView*); + PuglStatus (*configure)(PuglView*); /** Create surface and drawing context. */ - int (*create)(PuglView*); + PuglStatus (*create)(PuglView*); /** Destroy surface and drawing context. */ - int (*destroy)(PuglView*); + PuglStatus (*destroy)(PuglView*); /** Enter drawing context, for drawing if parameter is true. */ - int (*enter)(PuglView*, bool); + PuglStatus (*enter)(PuglView*, bool); /** Leave drawing context, after drawing if parameter is true. */ - int (*leave)(PuglView*, bool); + PuglStatus (*leave)(PuglView*, bool); /** Resize drawing context to the given width and height. */ - int (*resize)(PuglView*, int, int); + PuglStatus (*resize)(PuglView*, int, int); /** Return the puglGetContext() handle for the application, if any. */ void* (*getContext)(PuglView*); |