s3-spoolssd: Register spoolssd endpoints.
[Samba.git] / source3 / printing / pcap.h
blobe24142e8b2abd8543f775348961c12e8d622f2b2
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 bool 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 void pcap_cache_reload(struct tevent_context *ev,
32 struct messaging_context *msg_ctx,
33 void (*post_cache_fill_fn)(struct tevent_context *,
34 struct messaging_context *));
35 bool pcap_printername_ok(const char *printername);
37 /* The following definitions come from printing/print_aix.c */
39 bool aix_cache_reload(void);
41 /* The following definitions come from printing/print_cups.c */
43 bool cups_cache_reload(struct tevent_context *ev,
44 struct messaging_context *msg_ctx,
45 void (*post_cache_fill_fn)(struct tevent_context *,
46 struct messaging_context *));
47 bool cups_pull_comment_location(TALLOC_CTX *mem_ctx,
48 const char *printername,
49 char **comment,
50 char **location);
52 /* The following definitions come from printing/print_iprint.c */
54 bool iprint_cache_reload(void);
56 /* The following definitions come from printing/print_svid.c */
58 bool sysv_cache_reload(void);
60 /* The following definitions come from printing/print_standard.c */
61 bool std_pcap_cache_reload(const char *pcap_name);