diff options
author | David Robillard <d@drobilla.net> | 2020-10-15 08:45:03 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-16 18:22:57 +0200 |
commit | 06c0bc8af15f9b1d4e1def4ed1450107c1a5caa8 (patch) | |
tree | d1c5e8c4010889c20e4e73bf4224f15ff750cd37 /pugl | |
parent | 5f8eca211c33a86fc823bd058c17f7e11e70531d (diff) | |
download | pugl-06c0bc8af15f9b1d4e1def4ed1450107c1a5caa8.tar.gz pugl-06c0bc8af15f9b1d4e1def4ed1450107c1a5caa8.tar.bz2 pugl-06c0bc8af15f9b1d4e1def4ed1450107c1a5caa8.zip |
Add const attribute to backend accessors
Diffstat (limited to 'pugl')
-rw-r--r-- | pugl/pugl.h | 2 | ||||
-rw-r--r-- | pugl/pugl_cairo.h | 2 | ||||
-rw-r--r-- | pugl/pugl_gl.h | 2 | ||||
-rw-r--r-- | pugl/pugl_stub.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h index 4d363c3..cd931ed 100644 --- a/pugl/pugl.h +++ b/pugl/pugl.h @@ -587,7 +587,7 @@ typedef enum { /** Return a string describing a status code. */ -PUGL_API +PUGL_API PUGL_CONST_FUNC const char* puglStrerror(PuglStatus status); diff --git a/pugl/pugl_cairo.h b/pugl/pugl_cairo.h index c68f6bb..4b3b621 100644 --- a/pugl/pugl_cairo.h +++ b/pugl/pugl_cairo.h @@ -38,7 +38,7 @@ PUGL_BEGIN_DECLS Pass the return value to puglInitBackend() to draw to a view with Cairo. */ -PUGL_API const PuglBackend* +PUGL_API PUGL_CONST_FUNC const PuglBackend* puglCairoBackend(void); /** diff --git a/pugl/pugl_gl.h b/pugl/pugl_gl.h index d501b3c..471c5ac 100644 --- a/pugl/pugl_gl.h +++ b/pugl/pugl_gl.h @@ -49,7 +49,7 @@ puglGetProcAddress(const char* name); Pass the return value to puglSetBackend() to draw to a view with OpenGL. */ -PUGL_API const PuglBackend* +PUGL_API PUGL_CONST_FUNC const PuglBackend* puglGlBackend(void); PUGL_END_DECLS diff --git a/pugl/pugl_stub.h b/pugl/pugl_stub.h index ef48000..f50418e 100644 --- a/pugl/pugl_stub.h +++ b/pugl/pugl_stub.h @@ -47,7 +47,7 @@ PUGL_BEGIN_DECLS This backend just creates a simple native window without setting up any portable graphics API. */ -PUGL_API +PUGL_API PUGL_CONST_FUNC const PuglBackend* puglStubBackend(void); |