summaryrefslogtreecommitdiffstats
path: root/abcprintd.h
blob: 0fb9f6859858c9e7c024ac3ebaa8b14c0e5a43c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef ABCPRINTD_H
#define ABCPRINTD_H

#include "config.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