summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-02-22 14:52:16 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-02-22 14:53:41 +1000
commit59ca9718987d831ffc17ecf0a7df3817727f928a (patch)
treeedffb2fc40f10ecb9da46e5c8b0196989fe63bd8
parent201b81ebe95fc514530061d8e62f9e309aa22861 (diff)
downloadlibinput-59ca9718987d831ffc17ecf0a7df3817727f928a.tar.gz
tools/record: print a header as first line
To make the file format easier to detect Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--tools/libinput-record.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libinput-record.c b/tools/libinput-record.c
index 26aa8108..067d8136 100644
--- a/tools/libinput-record.c
+++ b/tools/libinput-record.c
@@ -1484,6 +1484,7 @@ print_system_header(struct record_context *ctx)
static void
print_header(struct record_context *ctx)
{
+ iprintf(ctx, "# libinput record\n");
iprintf(ctx, "version: %d\n", FILE_VERSION_NUMBER);
iprintf(ctx, "ndevices: %d\n", ctx->ndevices);
print_libinput_header(ctx);