#include <ctype.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <sys/types.h>#include <sys/param.h>#include <errno.h>#include <cups/ipp.h>#include <cups/cups.h>#include <cups/language.h>#include <atalk/unicode.h>#include <atalk/logger.h>#include <atalk/atp.h>#include <atalk/pap.h>#include <atalk/util.h>#include "printer.h"#include "print_cups.h"Macros | |
| #define | MAXCHOOSERLEN 31 |
Functions | |
| static int | convert_to_mac_name (const char *encoding, char *inptr, char *outptr, size_t outlen) |
| Convert to Mac printer name. | |
| static size_t | to_ascii (char *inbuf, char **outbuf) |
| static int | cups_mangle_printer_name (struct printer *pr, struct printer *printers) |
| Mangles the printer name if two CUPS printer provide the same Chooser Name. | |
| static void | cups_free_printer (struct printer *pr) |
| const char * | cups_get_language (void) |
| static const char * | cups_passwd_cb (const char *prompt, http_t *http, const char *method, const char *resource, void *user_data) |
| The CUPS password callback... | |
| int | cups_printername_ok (char *name) |
| Verify supplied printer name is a valid cups printer. | |
| const char * | cups_get_printer_ppd (char *name) |
| int | cups_get_printer_status (struct printer *pr) |
| int | cups_print_job (char *name, const char *filename, char *job, char *username, char *cupsoptions) |
| struct printer * | cups_autoadd_printers (struct printer *defprinter, struct printer *printers) |
| int | cups_check_printer (struct printer *pr, struct printer *printers, int replace) |
| check if a printer with this name already exists. | |
Variables | |
| static const char * | cups_status_msg [] |
| #define MAXCHOOSERLEN 31 |
|
static |
Convert to Mac printer name.
check if a printer with this name already exists.
|
static |
| const char * cups_get_language | ( | void | ) |
| const char * cups_get_printer_ppd | ( | char * | name | ) |
| int cups_get_printer_status | ( | struct printer * | pr | ) |
Mangles the printer name if two CUPS printer provide the same Chooser Name.
|
static |
The CUPS password callback...
| int cups_print_job | ( | char * | name, |
| const char * | filename, | ||
| char * | job, | ||
| char * | username, | ||
| char * | cupsoptions ) |
pass the job to cups
| int cups_printername_ok | ( | char * | name | ) |
Verify supplied printer name is a valid cups printer.
|
static |
fallback ASCII conversion
|
static |