From: Keith Packard Date: Sun, 23 Jul 2017 23:49:26 +0000 (-0700) Subject: libaltos: Test both bluetooth and USB APIs with cjnitest X-Git-Tag: 1.8~9 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=c7b34e6691b632199bc7802c2e4dea4de992578e;hp=52bbfa9cd46ca27a4de937e89d48246a4e94c8a6 libaltos: Test both bluetooth and USB APIs with cjnitest Signed-off-by: Keith Packard --- 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 #include "libaltos.h" +#include + +#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)) {