This commit is contained in:
pavlov%pavlov.net 2006-11-28 22:08:56 +00:00
Родитель 30b75939dc
Коммит 0533e8eaef
1 изменённых файлов: 30 добавлений и 0 удалений

Просмотреть файл

@ -39,7 +39,37 @@
#include "cairo-nquartz.h"
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
#include <cups/cups.h>
#else
/* stupid apple doesn't bother to include cups.h in anything lower than
* the 10.4 SDK yet they've shipped libcups since 10.2! wtf!
* Apple is as bad as Linux! come on!
*/
extern "C" {
typedef struct
{
char *name;
char *value;
} cups_option_t;
typedef struct
{
char *name,
*instance;
int is_default;
int num_options;
cups_option_t *options;
} cups_dest_t;
extern int cupsPrintFile(const char *printer, const char *filename,
const char *title, int num_options,
cups_option_t *options);
extern void cupsFreeDests(int num_dests, cups_dest_t *dests);
extern cups_dest_t *cupsGetDest(const char *name, const char *instance,
int num_dests, cups_dest_t *dests);
extern int cupsGetDests(cups_dest_t **dests);
}
#endif
gfxQuartzPDFSurface::gfxQuartzPDFSurface(const char *filename, gfxSize aSizeInPoints)
: mFilename(strdup(filename)), mAborted(PR_FALSE)