From ffbf1e61ffbb56b95018ef4301e4ddb230b88468 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 22 Jan 2019 12:38:24 -0500 Subject: Fix some build issues with the "core" component selection (rdar://47394086) - Availability macros were incorrect. - Some driver headers/definitions were installed even when the core library does not contain them. - Fix up the macOS/iOS detection of keychain/API availability - just need to use the TARGET_OS_xxx macros instead. - When installing private headers, install config.h so that the private headers actually work. --- cups/sidechannel.h | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'cups/sidechannel.h') diff --git a/cups/sidechannel.h b/cups/sidechannel.h index 229acdc87..538b8b236 100644 --- a/cups/sidechannel.h +++ b/cups/sidechannel.h @@ -1,8 +1,8 @@ /* * Side-channel API definitions for CUPS. * - * Copyright 2007-2012 by Apple Inc. - * Copyright 2006 by Easy Software Products. + * Copyright © 2007-2019 by Apple Inc. + * Copyright © 2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. */ @@ -15,6 +15,13 @@ */ # include "versioning.h" +# include +# if defined(_WIN32) && !defined(__CUPS_SSIZE_T_DEFINED) +# define __CUPS_SSIZE_T_DEFINED +# include +/* Windows does not support the ssize_t type, so map it to long... */ +typedef long ssize_t; /* @private@ */ +# endif /* _WIN32 && !__CUPS_SSIZE_T_DEFINED */ /* @@ -107,6 +114,13 @@ typedef void (*cups_sc_walk_func_t)(const char *oid, const char *data, * Prototypes... */ +/**** New in CUPS 1.2/macOS 10.5 ****/ +extern ssize_t cupsBackChannelRead(char *buffer, size_t bytes, + double timeout) _CUPS_API_1_2; +extern ssize_t cupsBackChannelWrite(const char *buffer, size_t bytes, + double timeout) _CUPS_API_1_2; + +/**** New in CUPS 1.3/macOS 10.5 ****/ extern cups_sc_status_t cupsSideChannelDoRequest(cups_sc_command_t command, char *data, int *datalen, double timeout) _CUPS_API_1_3; @@ -119,7 +133,7 @@ extern int cupsSideChannelWrite(cups_sc_command_t command, const char *data, int datalen, double timeout) _CUPS_API_1_3; -/**** New in CUPS 1.4 ****/ +/**** New in CUPS 1.4/macOS 10.6 ****/ extern cups_sc_status_t cupsSideChannelSNMPGet(const char *oid, char *data, int *datalen, double timeout) _CUPS_API_1_4; -- cgit v1.2.1