aboutsummaryrefslogtreecommitdiffstats
path: root/src/kern.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-10 22:57:51 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-10 22:57:51 +0100
commit6a4cbfccbd649b6e9dd92be74d106f7a8336a264 (patch)
tree4f9f38fe21853c92dc3622db5857d6507613cfd6 /src/kern.h
parentmostly splitting the source (diff)
downloadscrotty-6a4cbfccbd649b6e9dd92be74d106f7a8336a264.tar.gz
scrotty-6a4cbfccbd649b6e9dd92be74d106f7a8336a264.tar.bz2
scrotty-6a4cbfccbd649b6e9dd92be74d106f7a8336a264.tar.xz
soon, convert will not be used
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src/kern.h')
-rw-r--r--src/kern.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/kern.h b/src/kern.h
index 69eaf0b..624564c 100644
--- a/src/kern.h
+++ b/src/kern.h
@@ -39,7 +39,7 @@ void print_not_found_help (void);
* @param altpath The index of the alternative path-pattern to use.
* @param fbno The index of the framebuffer.
*/
-void get_fbpath (char *pathbuf, int altpath, int fbno);
+void get_fbpath (char *restrict pathbuf, int altpath, int fbno);
/**
* Get the dimensions of a framebuffer.
@@ -50,7 +50,7 @@ void get_fbpath (char *pathbuf, int altpath, int fbno);
* @param height Output parameter for the height of the image.
* @return Zero on success, -1 on error.
*/
-int measure (int fbno, char *fbpath, long *width, long *height);
+int measure (int fbno, char *restrict fbpath, long *restrict width, long *restrict height);
/**
* Convert read data from a framebuffer to PNM pixel data.
@@ -64,5 +64,6 @@ int measure (int fbno, char *fbpath, long *width, long *height);
* pixel is encoded.
* @return Zero on success, -1 on error.
*/
-int convert_fb (FILE *file, char *buf, size_t n, size_t *adjustment);
+int convert_fb (FILE *restrict file, const char *restrict buf,
+ size_t n, size_t *restrict adjustment);