aboutsummaryrefslogtreecommitdiffstats
path: root/pugl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-15 08:45:03 +0200
committerDavid Robillard <d@drobilla.net>2020-10-16 18:22:57 +0200
commit06c0bc8af15f9b1d4e1def4ed1450107c1a5caa8 (patch)
treed1c5e8c4010889c20e4e73bf4224f15ff750cd37 /pugl
parent5f8eca211c33a86fc823bd058c17f7e11e70531d (diff)
downloadpugl-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.h2
-rw-r--r--pugl/pugl_cairo.h2
-rw-r--r--pugl/pugl_gl.h2
-rw-r--r--pugl/pugl_stub.h2
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);