aboutsummaryrefslogtreecommitdiff
path: root/src/wld/context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wld/context.c')
-rw-r--r--src/wld/context.c55
1 files changed, 30 insertions, 25 deletions
diff --git a/src/wld/context.c b/src/wld/context.c
index 73cf4a0..a735d40 100644
--- a/src/wld/context.c
+++ b/src/wld/context.c
@@ -21,45 +21,50 @@
* SOFTWARE.
*/
-#include "wld/wld-private.h"
+#include "wld-private.h"
-void context_initialize(struct wld_context *context,
- const struct wld_context_impl *impl) {
- *((const struct wld_context_impl **)&context->impl) = impl;
+void context_initialize(struct wld_context * context,
+ const struct wld_context_impl * impl)
+{
+ *((const struct wld_context_impl **) &context->impl) = impl;
}
EXPORT
-struct wld_renderer *wld_create_renderer(struct wld_context *context) {
- return context->impl->create_renderer(context);
+struct wld_renderer * wld_create_renderer(struct wld_context * context)
+{
+ return context->impl->create_renderer(context);
}
EXPORT
-struct wld_buffer *wld_create_buffer(struct wld_context *context,
- uint32_t width, uint32_t height,
- uint32_t format, uint32_t flags) {
- return &context->impl->create_buffer(context, width, height, format, flags)
- ->base;
+struct wld_buffer * wld_create_buffer(struct wld_context * context,
+ uint32_t width, uint32_t height,
+ uint32_t format, uint32_t flags)
+{
+ return &context->impl->create_buffer(context, width, height,
+ format, flags)->base;
}
EXPORT
-struct wld_buffer *wld_import_buffer(struct wld_context *context, uint32_t type,
- union wld_object object, uint32_t width,
- uint32_t height, uint32_t format,
- uint32_t pitch) {
- return &context->impl
- ->import_buffer(context, type, object, width, height, format,
- pitch)
- ->base;
+struct wld_buffer * wld_import_buffer(struct wld_context * context,
+ uint32_t type, union wld_object object,
+ uint32_t width, uint32_t height,
+ uint32_t format, uint32_t pitch)
+{
+ return &context->impl->import_buffer(context, type, object,
+ width, height, format, pitch)->base;
}
EXPORT
-struct wld_surface *wld_create_surface(struct wld_context *context,
- uint32_t width, uint32_t height,
- uint32_t format, uint32_t flags) {
- return context->impl->create_surface(context, width, height, format, flags);
+struct wld_surface * wld_create_surface(struct wld_context * context,
+ uint32_t width, uint32_t height,
+ uint32_t format, uint32_t flags)
+{
+ return context->impl->create_surface(context, width, height, format, flags);
}
EXPORT
-void wld_destroy_context(struct wld_context *context) {
- context->impl->destroy(context);
+void wld_destroy_context(struct wld_context * context)
+{
+ context->impl->destroy(context);
}
+