vfs: fix lock logging in vfs_full_audit
[Samba/id10ts.git] / source3 / printing / notify.h
blobf3b9fe4b33f66c3b3d8f0981e6abe595d421ff26
1 #ifndef _PRINTING_NOTIFY_H_
2 #define _PRINTING_NOTIFY_H_
4 /*
5 Unix SMB/Netbios implementation.
6 Version 3.0
7 printing backend routines
8 Copyright (C) Tim Potter, 2002
9 Copyright (C) Gerald Carter, 2002
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 3 of the License, or
14 (at your option) any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>.
25 /* The following definitions come from printing/notify.c */
27 int print_queue_snum(const char *qname);
28 void print_notify_send_messages(struct messaging_context *msg_ctx,
29 unsigned int timeout);
30 void notify_printer_status_byname(struct tevent_context *ev,
31 struct messaging_context *msg_ctx,
32 const char *sharename, uint32 status);
33 void notify_printer_status(struct tevent_context *ev,
34 struct messaging_context *msg_ctx,
35 int snum, uint32 status);
36 void notify_job_status_byname(struct tevent_context *ev,
37 struct messaging_context *msg_ctx,
38 const char *sharename, uint32 jobid,
39 uint32 status,
40 uint32 flags);
41 void notify_job_status(struct tevent_context *ev,
42 struct messaging_context *msg_ctx,
43 const char *sharename, uint32 jobid, uint32 status);
44 void notify_job_total_bytes(struct tevent_context *ev,
45 struct messaging_context *msg_ctx,
46 const char *sharename, uint32 jobid,
47 uint32 size);
48 void notify_job_total_pages(struct tevent_context *ev,
49 struct messaging_context *msg_ctx,
50 const char *sharename, uint32 jobid,
51 uint32 pages);
52 void notify_job_username(struct tevent_context *ev,
53 struct messaging_context *msg_ctx,
54 const char *sharename, uint32 jobid, char *name);
55 void notify_job_name(struct tevent_context *ev,
56 struct messaging_context *msg_ctx,
57 const char *sharename, uint32 jobid, char *name);
58 void notify_job_submitted(struct tevent_context *ev,
59 struct messaging_context *msg_ctx,
60 const char *sharename, uint32 jobid,
61 time_t submitted);
62 void notify_printer_driver(struct tevent_context *ev,
63 struct messaging_context *msg_ctx,
64 int snum, const char *driver_name);
65 void notify_printer_comment(struct tevent_context *ev,
66 struct messaging_context *msg_ctx,
67 int snum, const char *comment);
68 void notify_printer_sharename(struct tevent_context *ev,
69 struct messaging_context *msg_ctx,
70 int snum, const char *share_name);
71 void notify_printer_printername(struct tevent_context *ev,
72 struct messaging_context *msg_ctx,
73 int snum, const char *printername);
74 void notify_printer_port(struct tevent_context *ev,
75 struct messaging_context *msg_ctx,
76 int snum, const char *port_name);
77 void notify_printer_location(struct tevent_context *ev,
78 struct messaging_context *msg_ctx,
79 int snum, const char *location);
80 void notify_printer_byname(struct tevent_context *ev,
81 struct messaging_context *msg_ctx,
82 const char *printername, uint32 change,
83 const char *value);
84 void notify_printer_sepfile(struct tevent_context *ev,
85 struct messaging_context *msg_ctx,
86 int snum, const char *sepfile);
87 #endif