#include <sys/types.h>
#include <sys/time.h>
#include <sys/uio.h>
#include <sys/file.h>
#include <netatalk/at.h>
#include <errno.h>
#include <atalk/atp.h>
#include <atalk/pap.h>
#include <atalk/nbp.h>
#include <atalk/util.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Macros | |
#define | _PATH_PAPRC ".paprc" |
#define | IMAGEWRITER "ImageWriter" |
#define | IMAGEWRITER_LQ "LQ" |
#define | COLOR_RIBBON_INSTALLED 0b10000000 |
#define | SHEET_FEEDER_INSTALLED 0b01000000 |
#define | PAPER_OUT_ERROR 0b00100000 |
#define | COVER_OPEN_ERROR 0b00010000 |
#define | PRINTER_OFF_LINE 0b00001000 |
#define | PAPER_JAM_ERROR 0b00000100 |
#define | PRINTER_FAULT 0b00000010 |
#define | PRINTER_ACTIVE 0b00000001 |
Functions | |
static void | getstatus (ATP atp, struct sockaddr_at *sat, int is_imagewriter) |
static void | usage (char *path) |
static char * | paprc (void) |
static void | print_status (char status, char mask, char *message) |
int | main (int ac, char **av) |
Variables | |
static char * | printer = NULL |
static char | cbuf [8] |
static struct nbpnve | nn |
#define _PATH_PAPRC ".paprc" |
#define COLOR_RIBBON_INSTALLED 0b10000000 |
#define COVER_OPEN_ERROR 0b00010000 |
#define IMAGEWRITER "ImageWriter" |
#define IMAGEWRITER_LQ "LQ" |
#define PAPER_JAM_ERROR 0b00000100 |
#define PAPER_OUT_ERROR 0b00100000 |
#define PRINTER_ACTIVE 0b00000001 |
#define PRINTER_FAULT 0b00000010 |
#define PRINTER_OFF_LINE 0b00001000 |
#define SHEET_FEEDER_INSTALLED 0b01000000 |
|
static |
int main | ( | int | ac, |
char ** | av ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |