/*
- * "$Id: globals.h 6712 2007-07-24 00:13:05Z mike $"
+ * "$Id: globals.h 7910 2008-09-06 00:25:17Z mike $"
*
* Global variable definitions for the Common UNIX Printing System (CUPS).
*
- * Copyright 2007-2008 by Apple Inc.
+ * Copyright 2007-2009 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products, all rights reserved.
*
* These coded instructions, statements, and computer programs are the
# include "http-private.h"
# include "cups.h"
# include "i18n.h"
+# include "pwg-private.h"
# ifdef HAVE_PTHREAD_H
# include <pthread.h>
char resolved_uri[1024];
/* Buffer for cupsBackendDeviceURI */
-#ifdef DEBUG
- /* debug.c */
- int debug_init, /* Did we initialize debugging? */
- debug_fd; /* Debug log file descriptor */
-#endif /* DEBUG */
-
/* file.c */
cups_file_t *stdio_files[3];/* stdin, stdout, stderr */
# ifdef HAVE_GETADDRINFO
char hostname[1024]; /* Hostname */
# endif /* HAVE_GETADDRINFO */
+ int need_res_init; /* Need to reinitialize resolver? */
/* ipp.c */
ipp_uchar_t ipp_date[11]; /* RFC-1903 date/time data */
+ _ipp_buffer_t *ipp_buffers; /* Buffer list */
/* ipp-support.c */
int ipp_port; /* IPP port number */
int ppd_line; /* Current line number */
ppd_conform_t ppd_conform; /* Level of conformance required */
+ /* pwg-media.c */
+ cups_array_t *leg_size_lut, /* Lookup table for legacy names */
+ *ppd_size_lut, /* Lookup table for PPD names */
+ *pwg_size_lut; /* Lookup table for PWG names */
+ _pwg_media_t pwg_media; /* PWG media data for custom size */
+ char pwg_name[65]; /* PWG media name for custom size */
+
/* snmp.c */
char snmp_community[255];
/* Default SNMP community name */
char user[65], /* User name */
server[256], /* Server address */
servername[256];/* Server hostname */
- cups_password_cb_t password_cb; /* Password callback */
+ cups_password_cb2_t password_cb; /* Password callback */
+ void *password_data; /* Password user data */
/* util.c */
http_t *http; /* Current server connection */
*/
extern http_t *_cupsConnect(void);
+extern int _cupsGet1284Values(const char *device_id,
+ cups_option_t **values);
extern const char *_cupsGetPassword(const char *prompt);
extern _cups_globals_t *_cupsGlobals(void);
-extern void _cupsSetError(ipp_status_t status, const char *message);
+extern void _cupsSetDefaults(void);
+extern void _cupsSetError(ipp_status_t status, const char *message,
+ int localize);
extern void _cupsSetHTTPError(http_status_t status);
+extern char *_cupsUserDefault(char *name, size_t namesize);
/*
#endif /* !_CUPS_GLOBALS_H_ */
/*
- * End of "$Id: globals.h 6712 2007-07-24 00:13:05Z mike $".
+ * End of "$Id: globals.h 7910 2008-09-06 00:25:17Z mike $".
*/