aboutsummaryrefslogtreecommitdiffstats
path: root/include/pugl/detail/implementation.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-21 15:24:45 +0200
committerDavid Robillard <d@drobilla.net>2020-10-21 15:43:29 +0200
commitf88687a95d73a2ac2590b1b9bc59506f7d6b498f (patch)
tree42f66dc264b79cb08ab0568ced9a4b5a948613ba /include/pugl/detail/implementation.h
parent77fccc3e39e778a946b8b5711b513d3cb550b8a1 (diff)
downloadpugl-f88687a95d73a2ac2590b1b9bc59506f7d6b498f.tar.gz
pugl-f88687a95d73a2ac2590b1b9bc59506f7d6b498f.tar.bz2
pugl-f88687a95d73a2ac2590b1b9bc59506f7d6b498f.zip
Cleanup: Always put return types on their own line
Diffstat (limited to 'include/pugl/detail/implementation.h')
-rw-r--r--include/pugl/detail/implementation.h27
1 files changed, 18 insertions, 9 deletions
diff --git a/include/pugl/detail/implementation.h b/include/pugl/detail/implementation.h
index ff97fef..c40a2bb 100644
--- a/include/pugl/detail/implementation.h
+++ b/include/pugl/detail/implementation.h
@@ -31,35 +31,44 @@
PUGL_BEGIN_DECLS
/// Set `blob` to `data` with length `len`, reallocating if necessary
-void puglSetBlob(PuglBlob* dest, const void* data, size_t len);
+void
+puglSetBlob(PuglBlob* dest, const void* data, size_t len);
/// Reallocate and set `*dest` to `string`
-void puglSetString(char** dest, const char* string);
+void
+puglSetString(char** dest, const char* string);
/// Allocate and initialise world internals (implemented once per platform)
PuglWorldInternals*
puglInitWorldInternals(PuglWorldType type, PuglWorldFlags flags);
/// Destroy and free world internals (implemented once per platform)
-void puglFreeWorldInternals(PuglWorld* world);
+void
+puglFreeWorldInternals(PuglWorld* world);
/// Allocate and initialise view internals (implemented once per platform)
-PuglInternals* puglInitViewInternals(void);
+PuglInternals*
+puglInitViewInternals(void);
/// Destroy and free view internals (implemented once per platform)
-void puglFreeViewInternals(PuglView* view);
+void
+puglFreeViewInternals(PuglView* view);
/// Return the Unicode code point for `buf` or the replacement character
-uint32_t puglDecodeUTF8(const uint8_t* buf);
+uint32_t
+puglDecodeUTF8(const uint8_t* buf);
/// Dispatch an event with a simple `type` to `view`
-void puglDispatchSimpleEvent(PuglView* view, PuglEventType type);
+void
+puglDispatchSimpleEvent(PuglView* view, PuglEventType type);
/// Dispatch `event` to `view` while already in the graphics context
-void puglDispatchEventInContext(PuglView* view, const PuglEvent* event);
+void
+puglDispatchEventInContext(PuglView* view, const PuglEvent* event);
/// Dispatch `event` to `view`, entering graphics context if necessary
-void puglDispatchEvent(PuglView* view, const PuglEvent* event);
+void
+puglDispatchEvent(PuglView* view, const PuglEvent* event);
/// Set internal (stored in view) clipboard contents
const void*