file-util: allow specifying path separately in file_create_dated()
Instead of assuming the file prefix contains the path and filename prefix, give these two items separately. A NULL or empty string path may still be given to refer to the current directory. Signed-off-by: Aleksander Morgado <aleksander@aleksander.es> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
committed by
Daniel Stone
parent
e3c2a76d8f
commit
72032accbf
@@ -185,7 +185,7 @@ trigger_binding(struct weston_keyboard *keyboard, const struct timespec *time,
|
||||
|
||||
unpremultiply_and_swap_a8b8g8r8_to_PAMrgba(pixels, sz);
|
||||
|
||||
fp = file_create_dated(prefix, suffix, fname, sizeof(fname));
|
||||
fp = file_create_dated(NULL, prefix, suffix, fname, sizeof(fname));
|
||||
if (!fp) {
|
||||
const char *msg;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user