summaryrefslogtreecommitdiff
path: root/cups/sidechannel.h
diff options
context:
space:
mode:
authorMichael R Sweet <michaelrsweet@gmail.com>2019-01-22 12:38:24 -0500
committerMichael R Sweet <michaelrsweet@gmail.com>2019-01-23 12:15:38 -0500
commitffbf1e61ffbb56b95018ef4301e4ddb230b88468 (patch)
tree137cb9e8717bca0e3502f0c55ee2bca922228921 /cups/sidechannel.h
parente13e173f26a8fdfeaa2e326cbb678e1f3c316332 (diff)
downloadcups-ffbf1e61ffbb56b95018ef4301e4ddb230b88468.tar.gz
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.
Diffstat (limited to 'cups/sidechannel.h')
-rw-r--r--cups/sidechannel.h20
1 files changed, 17 insertions, 3 deletions
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 <sys/types.h>
+# if defined(_WIN32) && !defined(__CUPS_SSIZE_T_DEFINED)
+# define __CUPS_SSIZE_T_DEFINED
+# include <stddef.h>
+/* 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;