summaryrefslogtreecommitdiffstats
path: root/abcprintd.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2013-10-20 04:52:30 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2013-10-20 05:22:59 (GMT)
commit7a80c330bc82d5b4df5e88db3ff1e5dfdedc8dfa (patch)
treeb300dec200ff7d34397819f13b459773d74b11f4 /abcprintd.h
parent2db7072611d2b361f8fa9c0e8145b04652a88fbc (diff)
downloadabc80sim-7a80c330bc82d5b4df5e88db3ff1e5dfdedc8dfa.zip
abc80sim-7a80c330bc82d5b4df5e88db3ff1e5dfdedc8dfa.tar.gz
abc80sim-7a80c330bc82d5b4df5e88db3ff1e5dfdedc8dfa.tar.bz2
abc80sim-7a80c330bc82d5b4df5e88db3ff1e5dfdedc8dfa.tar.xz
Replace the old UNX:/LIB: device with PR:/PRA:/PRB: from FPGA project
Replace the old UNX:/LIB: devices with the PR:/PRA:/PRB: device from the ABC80-in-FPGA project. This allows printing, and shares both the ROM and the backend code with the FPGA project for consistent behavior. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'abcprintd.h')
-rw-r--r--abcprintd.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/abcprintd.h b/abcprintd.h
new file mode 100644
index 0000000..805ad56
--- /dev/null
+++ b/abcprintd.h
@@ -0,0 +1,35 @@
+#ifndef ABCPRINTD_H
+#define ABCPRINTD_H
+
+#include <ctype.h>
+#include <dirent.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <inttypes.h>
+#include <locale.h>
+#include <stdbool.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+#include <wchar.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+
+#ifndef O_TEXT
+# define O_TEXT 0
+#endif
+#ifndef O_BINARY
+# define O_BINARY 0
+#endif
+
+extern int lpr_argc;
+extern const char **lpr_argv;
+extern void abcprint_init(void);
+extern void abcprint(const void *, size_t);
+extern int abcprint_read(void);
+extern int abcprint_poll(void);
+extern bool file_op(unsigned char);
+extern const char *fileop_prefix;
+
+#endif