summaryrefslogtreecommitdiff
path: root/backend/backend-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'backend/backend-private.h')
-rw-r--r--backend/backend-private.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/backend/backend-private.h b/backend/backend-private.h
index 85fb8aef8..d19b06b82 100644
--- a/backend/backend-private.h
+++ b/backend/backend-private.h
@@ -1,7 +1,8 @@
/*
* Backend support definitions for CUPS.
*
- * Copyright © 2007-2014 by Apple Inc.
+ * Copyright © 2021 by OpenPrinting
+ * Copyright © 2007-2021 by Apple Inc.
* Copyright © 1997-2007 by Easy Software Products, all rights reserved.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more
@@ -53,6 +54,14 @@ extern "C" {
/*
+ * Log messages in backend signal handlers or other places where stdio cannot
+ * be used...
+ */
+
+# define backendMessage(msg) {const char *s = msg; write(2, s, strlen(s));}
+
+
+/*
* OID constants...
*/
@@ -320,7 +329,6 @@ extern int backendSNMPSupplies(int snmp_fd, http_addr_t *addr,
extern int backendWaitLoop(int snmp_fd, http_addr_t *addr,
int use_bc, _cups_sccb_t side_cb);
-
# ifdef __cplusplus
}
# endif /* __cplusplus */