file-util: allow specifying path separately in file_create_dated()
authorAleksander Morgado <aleksander@aleksander.es>
Tue, 23 Jan 2018 00:05:21 +0000 (01:05 +0100)
committerDaniel Stone <daniels@collabora.com>
Fri, 9 Feb 2018 15:16:07 +0000 (15:16 +0000)
commit72032accbf6edf5a1f445f5d3ba67458e29f503e
tree750d392d68e73e8a78f93636a122b64d9ced4b05
parente3c2a76d8f6ec09da2dc7fb3e9e9a56f8f48ca44
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>
libweston/timeline.c
shared/file-util.c
shared/file-util.h
tests/surface-screenshot.c