diff options
author | Jeremy Allison <jra@samba.org> | 2003-04-02 02:31:51 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-04-02 02:31:51 +0000 |
commit | a9b39993fa366a6f0ab26deafac61947a9e8e1cc (patch) | |
tree | 11b52a88fe6ee9c727c70e8386dec85abc8badd0 /source3/printing/notify.c | |
parent | 9ad1ddc793ff383c2cc05cf3b15a9eb95e7a251d (diff) | |
download | samba-a9b39993fa366a6f0ab26deafac61947a9e8e1cc.tar.gz samba-a9b39993fa366a6f0ab26deafac61947a9e8e1cc.tar.xz samba-a9b39993fa366a6f0ab26deafac61947a9e8e1cc.zip |
Subtle changes to message handling after ENUMJOBS.
Jeremy.
(This used to be commit e5e83544dc0acf812bfa5ea17960b5a6be954ca1)
Diffstat (limited to 'source3/printing/notify.c')
-rw-r--r-- | source3/printing/notify.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c index 50c5ce39f64..641f951bdd7 100644 --- a/source3/printing/notify.c +++ b/source3/printing/notify.c @@ -27,6 +27,7 @@ static TALLOC_CTX *send_ctx; static struct notify_queue { struct notify_queue *next, *prev; struct spoolss_notify_msg *msg; + struct timeval tv; char *buf; size_t buflen; } *notify_queue_head = NULL; @@ -81,7 +82,8 @@ again: len += tdb_pack(buf + len, buflen - len, "f", msg->printer); - len += tdb_pack(buf + len, buflen - len, "ddddd", + len += tdb_pack(buf + len, buflen - len, "ddddddd", + (uint32)q->tv.tv_sec, (uint32)q->tv.tv_usec, msg->type, msg->field, msg->id, msg->len, msg->flags); /* Pack data */ @@ -259,6 +261,7 @@ in notify_queue\n", msg->type, msg->field, msg->printer)); return; } copy_notify2_msg(pnqueue->msg, msg); + gettimeofday(&pnqueue->tv, NULL); pnqueue->buf = NULL; pnqueue->buflen = 0; |