summaryrefslogtreecommitdiff
path: root/image/webp.h
diff options
context:
space:
mode:
Diffstat (limited to 'image/webp.h')
-rw-r--r--image/webp.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/image/webp.h b/image/webp.h
index a89713ac3..3d976d13e 100644
--- a/image/webp.h
+++ b/image/webp.h
@@ -28,19 +28,15 @@
#include <stdbool.h>
-struct content;
-struct rect;
-
-struct content_webp_data {
-/* empty */
-};
-
-bool webp_convert(struct content *c);
-void webp_destroy(struct content *c);
-bool webp_redraw(struct content *c, int x, int y,
- int width, int height, const struct rect *clip,
- float scale, colour background_colour);
-bool webp_clone(const struct content *old, struct content *new_content);
+#include "utils/errors.h"
+
+nserror webp_init(void);
+void webp_fini(void);
+
+#else
+
+#define webp_init() NSERROR_OK
+#define webp_fini() ((void) 0)
#endif /* WITH_WEBP */