#include <sys/param.h>#include <sys/time.h>#include <sys/socket.h>#include <sys/stat.h>#include <ctype.h>#include <unistd.h>#include <sys/file.h>#include <sys/un.h>#include <netinet/in.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <netdb.h>#include <fcntl.h>#include <pwd.h>#include <atalk/logger.h>#include <netatalk/at.h>#include <atalk/atp.h>#include <atalk/unicode.h>#include "printer.h"#include "file.h"#include "lp.h"#include "print_cups.h"Data Structures | |
| struct | lp |
Macros | |
| #define | LP_INIT (1<<0) |
| #define | LP_OPEN (1<<1) |
| #define | LP_PIPE (1<<2) |
| #define | LP_CONNECT (1<<3) |
| #define | LP_QUEUE (1<<4) |
| #define | LP_JOBPENDING (1<<5) |
| #define | is_var(a, b) |
| #define | BUFSIZE 32768 |
Functions | |
| int | rresvport (int *alport) |
| int | lp_conn_inet () |
| int | lp_disconn_inet (int) |
| int | lp_conn_unix () |
| int | lp_disconn_unix (int) |
| void | lp_origin (int origin) |
| static void | convert_octal (char *string, charset_t dest) |
| static void | translate (charset_t from, charset_t dest, char **option) |
| static void | lp_setup_comments (charset_t dest) |
| void | lp_person (char *person) |
| void | lp_host (char *host) |
| void | lp_job (char *job) |
| void | lp_for (char *lpfor) |
| static int | lp_init (struct papfile *out, struct sockaddr_at *sat) |
| int | lp_open (struct papfile *out, struct sockaddr_at *sat) |
| int | lp_close (void) |
| int | lp_write (struct papfile *in, char *buf, size_t len) |
| int | lp_cancel (void) |
| int | lp_print (void) |
| Create printcap control file, signal printer. | |
Variables | |
| static char | hostname [MAXHOSTNAMELEN] |
| struct sockaddr_at * | sat |
| static struct lp | lp |
Interface to lpr system.
| #define BUFSIZE 32768 |
| #define is_var | ( | a, | |
| b ) |
| #define LP_CONNECT (1<<3) |
| #define LP_INIT (1<<0) |
| #define LP_JOBPENDING (1<<5) |
| #define LP_OPEN (1<<1) |
| #define LP_PIPE (1<<2) |
| #define LP_QUEUE (1<<4) |
|
static |
| int lp_cancel | ( | void | ) |
cancel current job
| int lp_close | ( | void | ) |
close current spooling file
| int lp_conn_inet | ( | ) |
| int lp_conn_unix | ( | ) |
| int lp_disconn_inet | ( | int | ) |
| int lp_disconn_unix | ( | int | ) |
| void lp_for | ( | char * | lpfor | ) |
| void lp_host | ( | char * | host | ) |
|
static |
| void lp_job | ( | char * | job | ) |
| int lp_open | ( | struct papfile * | out, |
| struct sockaddr_at * | sat ) |
open a file for spooling
| void lp_origin | ( | int | origin | ) |
| void lp_person | ( | char * | person | ) |
| int lp_print | ( | void | ) |
Create printcap control file, signal printer.
XXX piped?
|
static |
| int lp_write | ( | struct papfile * | in, |
| char * | buf, | ||
| size_t | len ) |
open a buffer to the current open file
| int rresvport | ( | int * | alport | ) |
|
static |
|
static |
|
extern |