diff libcore/core/image.h @ 169:eb0a7ab71023

misc: extreme cleanup, closes #2506 While here, remove unneeded stuff.
author David Demelier <markand@malikania.fr>
date Tue, 20 Oct 2020 17:39:13 +0200
parents 789b23e01f52
children dd7c8d4321a3
line wrap: on
line diff
--- a/libcore/core/image.h	Tue Oct 20 15:09:39 2020 +0200
+++ b/libcore/core/image.h	Tue Oct 20 17:39:13 2020 +0200
@@ -28,6 +28,8 @@
 #include <stdbool.h>
 #include <stddef.h>
 
+#include "plat.h"
+
 struct texture;
 
 /**
@@ -40,7 +42,7 @@
  * \return False on errors.
  */
 bool
-image_open(struct texture *tex, const char *path);
+image_open(struct texture *tex, const char *path) PLAT_NODISCARD;
 
 /**
  * Open a file from a memory buffer.
@@ -55,6 +57,6 @@
  * \return False on errors.
  */
 bool
-image_openmem(struct texture *tex, const void *buffer, size_t size);
+image_openmem(struct texture *tex, const void *buffer, size_t size) PLAT_NODISCARD;
 
 #endif /* !MOLKO_IMAGE_H */