aboutsummaryrefslogtreecommitdiffstats
path: root/src/png.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-11 16:13:45 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-11 16:13:45 +0100
commit50da9e696d7be359cdbeaf22bd643f3885827a55 (patch)
treec6fdbf869057e5f21155613c1dec2090c096b029 /src/png.h
parentmake: missed to add a variable needed at dist (diff)
downloadscrotty-50da9e696d7be359cdbeaf22bd643f3885827a55.tar.gz
scrotty-50da9e696d7be359cdbeaf22bd643f3885827a55.tar.bz2
scrotty-50da9e696d7be359cdbeaf22bd643f3885827a55.tar.xz
the kernel-specific functions can fetch and use additional data it may need
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src/png.h')
-rw-r--r--src/png.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/png.h b/src/png.h
index b621234..0f5d93f 100644
--- a/src/png.h
+++ b/src/png.h
@@ -58,8 +58,10 @@
* @param width The width of the image.
* @param height The height of the image.
* @param imgfd The file descriptor connected to conversion process's stdin.
+ * @param data Additional data for `convert_fb_to_pnm`
+ * and `convert_fb_to_png`.
* @return Zero on success, -1 on error.
*/
int
-save_png (int fbfd, long width, long height, int imgfd);
+save_png (int fbfd, long width, long height, int imgfd, void *restrict data);