| 1 | /* | 
|---|
| 2 | Unix SMB/CIFS implementation. | 
|---|
| 3 | printcap headers | 
|---|
| 4 |  | 
|---|
| 5 | Copyright (C) Karl Auer 1993-1998 | 
|---|
| 6 |  | 
|---|
| 7 | Re-working by Martin Kiff, 1994 | 
|---|
| 8 |  | 
|---|
| 9 | Re-written again by Andrew Tridgell | 
|---|
| 10 |  | 
|---|
| 11 | Modified for SVID support by Norm Jacobs, 1997 | 
|---|
| 12 |  | 
|---|
| 13 | Modified for CUPS support by Michael Sweet, 1999 | 
|---|
| 14 |  | 
|---|
| 15 | This program is free software; you can redistribute it and/or modify | 
|---|
| 16 | it under the terms of the GNU General Public License as published by | 
|---|
| 17 | the Free Software Foundation; either version 3 of the License, or | 
|---|
| 18 | (at your option) any later version. | 
|---|
| 19 |  | 
|---|
| 20 | This program is distributed in the hope that it will be useful, | 
|---|
| 21 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 22 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 23 | GNU General Public License for more details. | 
|---|
| 24 |  | 
|---|
| 25 | You should have received a copy of the GNU General Public License | 
|---|
| 26 | along with this program.  If not, see <http://www.gnu.org/licenses/>. | 
|---|
| 27 | */ | 
|---|
| 28 |  | 
|---|
| 29 | #ifndef _PRINTING_PCAP_H_ | 
|---|
| 30 | #define _PRINTING_PCAP_H_ | 
|---|
| 31 |  | 
|---|
| 32 | struct pcap_cache; | 
|---|
| 33 |  | 
|---|
| 34 | /* The following definitions come from printing/pcap.c  */ | 
|---|
| 35 |  | 
|---|
| 36 | bool pcap_cache_add_specific(struct pcap_cache **ppcache, const char *name, const char *comment, const char *location); | 
|---|
| 37 | void pcap_cache_destroy_specific(struct pcap_cache **ppcache); | 
|---|
| 38 | bool pcap_cache_add(const char *name, const char *comment, const char *location); | 
|---|
| 39 | bool pcap_cache_loaded(void); | 
|---|
| 40 | bool pcap_cache_replace(const struct pcap_cache *cache); | 
|---|
| 41 | void pcap_printer_fn_specific(const struct pcap_cache *, void (*fn)(const char *, const char *, const char *, void *), void *); | 
|---|
| 42 | void pcap_printer_fn(void (*fn)(const char *, const char *, const char *, void *), void *); | 
|---|
| 43 |  | 
|---|
| 44 | void pcap_cache_reload(struct tevent_context *ev, | 
|---|
| 45 | struct messaging_context *msg_ctx, | 
|---|
| 46 | void (*post_cache_fill_fn)(struct tevent_context *, | 
|---|
| 47 | struct messaging_context *)); | 
|---|
| 48 | bool pcap_printername_ok(const char *printername); | 
|---|
| 49 |  | 
|---|
| 50 | /* The following definitions come from printing/print_aix.c  */ | 
|---|
| 51 |  | 
|---|
| 52 | bool aix_cache_reload(void); | 
|---|
| 53 |  | 
|---|
| 54 | /* The following definitions come from printing/print_cups.c  */ | 
|---|
| 55 |  | 
|---|
| 56 | bool cups_cache_reload(struct tevent_context *ev, | 
|---|
| 57 | struct messaging_context *msg_ctx, | 
|---|
| 58 | void (*post_cache_fill_fn)(struct tevent_context *, | 
|---|
| 59 | struct messaging_context *)); | 
|---|
| 60 |  | 
|---|
| 61 | /* The following definitions come from printing/print_iprint.c  */ | 
|---|
| 62 |  | 
|---|
| 63 | bool iprint_cache_reload(void); | 
|---|
| 64 |  | 
|---|
| 65 | /* The following definitions come from printing/print_svid.c  */ | 
|---|
| 66 |  | 
|---|
| 67 | bool sysv_cache_reload(void); | 
|---|
| 68 |  | 
|---|
| 69 | /* The following definitions come from printing/print_standard.c  */ | 
|---|
| 70 | bool std_pcap_cache_reload(const char *pcap_name); | 
|---|
| 71 |  | 
|---|
| 72 | #endif /* _PRINTING_PCAP_H_ */ | 
|---|