aboutsummaryrefslogtreecommitdiffstats
path: root/libglitter_enable_acceleration.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglitter_enable_acceleration.c')
-rw-r--r--libglitter_enable_acceleration.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libglitter_enable_acceleration.c b/libglitter_enable_acceleration.c
new file mode 100644
index 0000000..f012da9
--- /dev/null
+++ b/libglitter_enable_acceleration.c
@@ -0,0 +1,17 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+
+
+int
+libglitter_enable_acceleration(uint64_t features, int async, void (*callback)(int r, int e, void *u), void *userdata)
+{
+ (void) features;
+ (void) async;
+
+ /* TODO add support for hardware acceleration */
+
+ if (callback)
+ callback(0, 0, userdata);
+
+ return 0;
+}