diff options
author | Keith Packard <keithp@keithp.com> | 2017-07-23 16:49:26 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-07-23 16:49:26 -0700 |
commit | c7b34e6691b632199bc7802c2e4dea4de992578e (patch) | |
tree | 12036906d2ef9e83890d17e4f5e9bf9cbc0870c2 /libaltos/cjnitest.c | |
parent | 52bbfa9cd46ca27a4de937e89d48246a4e94c8a6 (diff) |
libaltos: Test both bluetooth and USB APIs with cjnitest
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'libaltos/cjnitest.c')
-rw-r--r-- | libaltos/cjnitest.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libaltos/cjnitest.c b/libaltos/cjnitest.c index 3a65c3d6..7e857275 100644 --- a/libaltos/cjnitest.c +++ b/libaltos/cjnitest.c @@ -1,5 +1,9 @@ #include <stdio.h> #include "libaltos.h" +#include <string.h> + +#define HAS_BLUETOOTH 1 +#define HAS_USB 1 static void altos_puts(struct altos_file *file, char *string) @@ -19,6 +23,7 @@ main (int argc, char **argv) struct altos_bt_list *bt_list; altos_init(); +#if HAS_USB list = altos_list_start(); while (altos_list_next(list, &device)) { struct altos_file *file; @@ -42,6 +47,7 @@ main (int argc, char **argv) altos_close(file); } altos_list_finish(list); +#endif #if HAS_BLUETOOTH bt_list = altos_bt_list_start(8); while (altos_bt_list_next(bt_list, &bt_device)) { |