s3: Remove the smbd_messaging_context from cups_cache_reload
[abartlet/samba.git/.git] / source3 / printing / pcap.h
1 /*
2    Unix SMB/CIFS implementation.
3    printcap headers
4
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 3 of the License, or
8    (at your option) any later version.
9
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 struct pcap_cache;
20
21 /* The following definitions come from printing/pcap.c  */
22
23 bool pcap_cache_add_specific(struct pcap_cache **ppcache, const char *name, const char *comment);
24 void pcap_cache_destroy_specific(struct pcap_cache **ppcache);
25 bool pcap_cache_add(const char *name, const char *comment);
26 bool pcap_cache_loaded(void);
27 void pcap_cache_replace(const struct pcap_cache *cache);
28 void pcap_printer_fn_specific(const struct pcap_cache *, void (*fn)(const char *, const char *, void *), void *);
29 void pcap_printer_fn(void (*fn)(const char *, const char *, void *), void *);
30
31 /* The following definitions come from printing/print_aix.c  */
32
33 bool aix_cache_reload(void);
34
35 /* The following definitions come from printing/print_cups.c  */
36
37 bool cups_cache_reload(struct tevent_context *ev,
38                        struct messaging_context *msg_ctx);
39 bool cups_pull_comment_location(TALLOC_CTX *mem_ctx,
40                                 const char *printername,
41                                 char **comment,
42                                 char **location);
43
44 /* The following definitions come from printing/print_iprint.c  */
45
46 bool iprint_cache_reload(void);
47
48 /* The following definitions come from printing/print_svid.c  */
49
50 bool sysv_cache_reload(void);
51
52 /* The following definitions come from printing/print_standard.c  */
53 bool std_pcap_cache_reload(const char *pcap_name);