aboutsummaryrefslogtreecommitdiffstats
path: root/src/kern.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-11 12:10:07 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-11 12:27:47 +0100
commit7852af7c93140a5d78cf35414d4ae5b42bca187a (patch)
tree48e6413cb5f83fca6618bd51c4499bd41cb552a0 /src/kern.h
parentwhitespace (diff)
downloadscrotty-7852af7c93140a5d78cf35414d4ae5b42bca187a.tar.gz
scrotty-7852af7c93140a5d78cf35414d4ae5b42bca187a.tar.bz2
scrotty-7852af7c93140a5d78cf35414d4ae5b42bca187a.tar.xz
m + split out save_fbs to main + do not use PATH_MAX + do not use alloca
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/kern.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/kern.h b/src/kern.h
index 624564c..45f692a 100644
--- a/src/kern.h
+++ b/src/kern.h
@@ -35,11 +35,12 @@ void print_not_found_help (void);
/**
* Construct the path to a framebuffer device.
*
- * @param pathbuf Ouput buffer for the path.
- * @param altpath The index of the alternative path-pattern to use.
- * @param fbno The index of the framebuffer.
+ * @param altpath The index of the alternative path-pattern to use.
+ * @param fbno The index of the framebuffer.
+ * @return The path to the framebuffer device. Errors are impossible.
+ * This string is statically allocated and must not be deallocated.
*/
-void get_fbpath (char *restrict pathbuf, int altpath, int fbno);
+char *get_fbpath (int altpath, int fbno);
/**
* Get the dimensions of a framebuffer.