summaryrefslogtreecommitdiff
path: root/ao-tools/libaltos/cjnitest.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-11-24 14:57:57 -0800
committerKeith Packard <keithp@keithp.com>2010-11-24 15:09:05 -0800
commit3fbefb3eea981d34a09496cf8abf0119de2e35bf (patch)
tree6e7956ca5c9336c7c61ebdcede5336a4c0191c37 /ao-tools/libaltos/cjnitest.c
parent7a50837ea0d92db3f469f197ec8210aee22aa143 (diff)
Move altosui to the top level, placing libaltos inside it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/libaltos/cjnitest.c')
-rw-r--r--ao-tools/libaltos/cjnitest.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/ao-tools/libaltos/cjnitest.c b/ao-tools/libaltos/cjnitest.c
deleted file mode 100644
index c6d6e069..00000000
--- a/ao-tools/libaltos/cjnitest.c
+++ /dev/null
@@ -1,43 +0,0 @@
-#include <stdio.h>
-#include "libaltos.h"
-
-static void
-altos_puts(struct altos_file *file, char *string)
-{
- char c;
-
- while ((c = *string++))
- altos_putchar(file, c);
-}
-
-main ()
-{
- struct altos_device device;
- struct altos_list *list;
-
- altos_init();
- list = altos_list_start();
- while (altos_list_next(list, &device)) {
- struct altos_file *file;
- int c;
-
- printf ("%04x:%04x %-20s %4d %s\n", device.vendor, device.product,
- device.name, device.serial, device.path);
-
- file = altos_open(&device);
- if (!file) {
- printf("altos_open failed\n");
- continue;
- }
- altos_puts(file,"v\nc s\n");
- altos_flush(file);
- while ((c = altos_getchar(file, 100)) >= 0) {
- putchar (c);
- }
- if (c != LIBALTOS_TIMEOUT)
- printf ("getchar returns %d\n", c);
- altos_close(file);
- }
- altos_list_finish(list);
- altos_fini();
-}