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

No event generated when printer-state-message is changed #2047

Closed
michaelrsweet opened this Issue Oct 21, 2006 · 2 comments

Comments

Projects
None yet
1 participant
@michaelrsweet
Collaborator

michaelrsweet commented Oct 21, 2006

Version: 1.2-current
CUPS.org User: jlovell

No event is generated when printer-state-message is changed, therefore clients don't notice these new messages.

Attached one-line patch fixes it by generating a CUPSD_EVENT_PRINTER_STATE_CHANGED -- this seems to be the closest event type...

Comments?

Thanks!

@michaelrsweet

This comment has been minimized.

Collaborator

michaelrsweet commented Oct 23, 2006

CUPS.org User: mike

Fixed in Subversion repository.

@michaelrsweet

This comment has been minimized.

Collaborator

michaelrsweet commented Oct 23, 2006

"printer-state-message.patch":

Index: scheduler/job.c

--- scheduler/job.c (revision 6044)
+++ scheduler/job.c (working copy)
@@ -1764,6 +1764,7 @@
strlcpy(job->printer->state_message, message,
sizeof(job->printer->state_message));
cupsdAddPrinterHistory(job->printer);

  •  event |= CUPSD_EVENT_PRINTER_STATE_CHANGED;
    

    }

    if (!strchr(job->status_buffer->buffer, '\n'))

@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment