diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2019-09-04 15:11:45 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2019-09-11 12:23:04 +1000 |
commit | c84366e85e45a20a7d00a735aa31e7587ef5160c (patch) | |
tree | 160f76c9c67419e00679969dc51ffe80905d9367 /test | |
parent | 00f3345b804165578dc0472263d666df9ef62981 (diff) |
Split utility functions into separate source files
libinput-util.h is getting a bit of a catchall bucket and it includes things
like libinput-private.h which in turn includes libwacom. This makes
libinput-util.h less useful for bits that only need e.g. the string processing
utilities.
So let's split them all up in to separate files, to be used as-needed.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rw-r--r-- | test/test-util-includes.c | 6 | ||||
-rw-r--r-- | test/test-utils.c | 11 |
2 files changed, 15 insertions, 2 deletions
diff --git a/test/test-util-includes.c b/test/test-util-includes.c new file mode 100644 index 00000000..6cb3419a --- /dev/null +++ b/test/test-util-includes.c @@ -0,0 +1,6 @@ +/* compile test for the util files */ +#include @FILE@ + +int main(void) { + return 0; +} diff --git a/test/test-utils.c b/test/test-utils.c index 9f13f2e5..46355a59 100644 --- a/test/test-utils.c +++ b/test/test-utils.c @@ -24,11 +24,18 @@ #include <config.h> #include <check.h> -#include <libinput-util.h> #include <valgrind/valgrind.h> -#include "libinput-util.h" +#include "util-list.h" +#include "util-strings.h" +#include "util-time.h" +#include "util-prop-parsers.h" +#include "util-macros.h" +#include "util-bits.h" +#include "util-ratelimit.h" +#include "util-matrix.h" + #define TEST_VERSIONSORT #include "libinput-versionsort.h" |