From 06c0bc8af15f9b1d4e1def4ed1450107c1a5caa8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 15 Oct 2020 08:45:03 +0200 Subject: Add const attribute to backend accessors --- pugl/pugl.h | 2 +- pugl/pugl_cairo.h | 2 +- pugl/pugl_gl.h | 2 +- pugl/pugl_stub.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'pugl') 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); -- cgit v1.2.1