s3: Lift the smbd_messaging_context from check_published_printers
[Samba/gbeck.git] / source3 / printing / pcap.h
blob47abc0fe6effbcae8573a81efe6c8f3a45e0ebb9
1 /*
2 Unix SMB/CIFS implementation.
3 printcap headers
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.
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.
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/>.
19 struct pcap_cache;
21 /* The following definitions come from printing/pcap.c */
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 *);
31 /* The following definitions come from printing/print_aix.c */
33 bool aix_cache_reload(void);
35 /* The following definitions come from printing/print_cups.c */
37 bool cups_cache_reload(void);
38 bool cups_pull_comment_location(TALLOC_CTX *mem_ctx,
39 const char *printername,
40 char **comment,
41 char **location);
43 /* The following definitions come from printing/print_iprint.c */
45 bool iprint_cache_reload(void);
47 /* The following definitions come from printing/print_svid.c */
49 bool sysv_cache_reload(void);
51 /* The following definitions come from printing/print_standard.c */
52 bool std_pcap_cache_reload(const char *pcap_name);