summaryrefslogtreecommitdiff
path: root/tools/shared.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-07-17 10:12:16 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-07-17 10:36:08 +1000
commitad5d2fef7202e07581c1a3464ff54ada8565282b (patch)
tree6984efe77a05615cbaa7aeaa929c17ce3bbdddd5 /tools/shared.h
parent8362031064e8c788b1645488002e0a556ea0466b (diff)
downloadlibinput-ad5d2fef7202e07581c1a3464ff54ada8565282b.tar.gz
tools: change prototype of the builddir lookup function
Only one place really needs the return argument, so we might as well just pass the memory to be returned in. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/shared.h')
-rw-r--r--tools/shared.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/shared.h b/tools/shared.h
index 364babe6..7888d265 100644
--- a/tools/shared.h
+++ b/tools/shared.h
@@ -25,6 +25,7 @@
#define _SHARED_H_
#include <stdbool.h>
+#include <limits.h>
#include <quirks.h>
#include <libinput.h>
@@ -119,7 +120,7 @@ tools_list_device_quirks(struct quirks_context *ctx,
void (*callback)(void *userdata, const char *str),
void *userdata);
-char *
-tools_execdir_is_builddir(void);
+bool
+tools_execdir_is_builddir(char *execdir_out, size_t sz);
#endif