17 lines
619 B
Objective-C
17 lines
619 B
Objective-C
// Bridging-Header.h
|
|
// ICCery Colour Print Utility — TargetPrint
|
|
// SPEC §3: libcups via Objective-C bridging. No third-party headers.
|
|
|
|
#import <cups/cups.h>
|
|
#import <cups/ppd.h>
|
|
|
|
// The Swift CUPS overlay marks cupsGetPPD unavailable ("use cupsCopyDestInfo").
|
|
// SPEC §10 still requires the PPD file for AirPrint detection and vendor
|
|
// colour-bypass keys, so we call the C symbol through this wrapper.
|
|
static inline const char *TPCupsGetPPD(const char *name) {
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
|
return cupsGetPPD(name);
|
|
#pragma clang diagnostic pop
|
|
}
|