-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync with latest Apple backends #2086
Comments
CUPS.org User: mike Looks good; I removed the extra cups/http.h include in pap.c, since cups/cups.h includes it already... |
"backend-sync.patch": Index: backend/usb-darwin.c--- backend/usb-darwin.c (revision 6073)
setup_cfLanguage(); printer_data.uri = uri;
fputs("STATE: +connecting-to-device\n", stderr); @@ -281,7 +284,9 @@
-static kern_return_t load_printerdriver(printer_data_t _printer)
-static kern_return_t registry_open(printer_data_t *printer)
+/*
#pragma mark -
/*
+#include <config.h> +#include <cups/cups.h> #include <libkern/OSByteOrder.h> define ZIP_DEF_INTERFACE NULL-enum { RUNNING, NOTLOADED, LOADED, OTHERERROR }; /_ Appletalk Stack status Function. */ extern int atp_abort(int fd, at_inet_t *dest, u_short tid);
@@ -116,7 +128,7 @@ /* Defines / -#define PAPPacketStr(x) \
- ""#ifndef true /* Globals / /* Local functions /
@@ -199,10 +204,13 @@ if (argc == 1 || (argc == 2 && strcmp(argv[1], "-discover") == 0))
@@ -239,9 +247,9 @@ /* Extract the device name and options from the URI... */
if (fp != stdin)
at_nvestr_t at_zone;
/* Look up all the printers in our zone /
if (addPercentEscapes(name, encodedName, sizeof(encodedName)) == 0)
char fileBuffer[4096]; /* File buffer */
#if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET)
retry.interval = 1;
/* Loop forever trying to get an open session with the printer. /
if (connect_timeout == -1)
/*
- */
- fcntl(fdout, F_SETFL, val | O_NONBLOCK);fileBufferNbytes = 0;
return err;
fprintf(stderr, "INFO: Opening connection\n");
- result = 0;
tm = time(NULL); @@ -901,64 +905,67 @@
for (;;)
- status = atp_sendreq(*fd, &tuple->enu_addr, data, 4, userdata, 1, 0, 0, &resp, &retry, 0);
- }
- *flowQuantum = rdata[1];-Exit:
return result;
puserdata[0] = gConnID;
@@ -1076,26 +1080,26 @@
if (data)
/*
puserdata[0] = connID;
/*!
+/*!
_exit(1); |
Version: 1.2-current
CUPS.org User: jlovell
Sync with latest Apple backends.
usb-darwin.c:
-When a class driver can't be loaded set the "apple-missing-usbclassdriver-error"
printer-state-reason and log a fatal error.
pap.c:
Comments?
Thanks!
The text was updated successfully, but these errors were encountered: