#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"
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) |
int | lp_rmjob (int job) |
int | lp_queue (struct papfile *out) |
Variables | |
static char | hostname [MAXHOSTNAMELEN] |
struct sockaddr_at * | sat |
static struct lp | lp |
char * | kw_rank = "Rank" |
char * | kw_active = "active" |
char * | tag_rank = "rank: " |
char * | tag_owner = "owner: " |
char * | tag_job = "job: " |
char * | tag_files = "files: " |
char * | tag_size = "size: " |
char * | tag_status = "status: " |
#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 | ) |
int lp_close | ( | void | ) |
int lp_conn_inet | ( | void | ) |
int lp_conn_unix | ( | void | ) |
int lp_disconn_inet | ( | int | fd | ) |
int lp_disconn_unix | ( | int | fd | ) |
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 ) |
void lp_origin | ( | int | origin | ) |
void lp_person | ( | char * | person | ) |
int lp_print | ( | void | ) |
int lp_queue | ( | struct papfile * | out | ) |
int lp_rmjob | ( | int | job | ) |
|
static |
int lp_write | ( | struct papfile * | in, |
char * | buf, | ||
size_t | len ) |
int rresvport | ( | int * | alport | ) |
|
static |
char* kw_active = "active" |
char* kw_rank = "Rank" |
|
static |
|
extern |
char* tag_files = "files: " |
char* tag_job = "job: " |
char* tag_owner = "owner: " |
char* tag_rank = "rank: " |
char* tag_size = "size: " |
char* tag_status = "status: " |