2010-05-14 00:24:35 +04:00
/*
Unix SMB / CIFS implementation .
printcap headers
2011-06-10 17:07:03 +04:00
Copyright ( C ) Karl Auer 1993 - 1998
Re - working by Martin Kiff , 1994
Re - written again by Andrew Tridgell
Modified for SVID support by Norm Jacobs , 1997
Modified for CUPS support by Michael Sweet , 1999
2010-05-14 00:24:35 +04:00
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 3 of the License , or
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
along with this program . If not , see < http : //www.gnu.org/licenses/>.
*/
2011-06-10 17:07:03 +04:00
# ifndef _PRINTING_PCAP_H_
# define _PRINTING_PCAP_H_
2010-05-14 00:24:35 +04:00
struct pcap_cache ;
/* The following definitions come from printing/pcap.c */
2011-05-13 12:02:42 +04:00
bool pcap_cache_add_specific ( struct pcap_cache * * ppcache , const char * name , const char * comment , const char * location ) ;
2010-05-14 00:24:35 +04:00
void pcap_cache_destroy_specific ( struct pcap_cache * * ppcache ) ;
2014-07-23 14:12:34 +04:00
bool pcap_cache_loaded ( time_t * _last_change ) ;
2010-12-28 16:55:01 +03:00
bool pcap_cache_replace ( const struct pcap_cache * cache ) ;
2011-05-13 12:02:42 +04:00
void pcap_printer_fn_specific ( const struct pcap_cache * , void ( * fn ) ( const char * , const char * , const char * , void * ) , void * ) ;
2014-07-10 02:18:10 +04:00
void pcap_printer_read_fn ( void ( * fn ) ( const char * , const char * , const char * , void * ) , void * ) ;
2010-05-14 00:24:35 +04:00
2011-02-21 16:37:21 +03:00
void pcap_cache_reload ( struct tevent_context * ev ,
struct messaging_context * msg_ctx ,
void ( * post_cache_fill_fn ) ( struct tevent_context * ,
struct messaging_context * ) ) ;
bool pcap_printername_ok ( const char * printername ) ;
2010-05-14 00:24:35 +04:00
/* The following definitions come from printing/print_aix.c */
2014-07-22 22:17:38 +04:00
bool aix_cache_reload ( struct pcap_cache * * _pcache ) ;
2010-05-14 00:24:35 +04:00
/* The following definitions come from printing/print_cups.c */
2010-08-09 00:50:28 +04:00
bool cups_cache_reload ( struct tevent_context * ev ,
2010-12-19 21:52:08 +03:00
struct messaging_context * msg_ctx ,
void ( * post_cache_fill_fn ) ( struct tevent_context * ,
struct messaging_context * ) ) ;
2010-05-14 00:24:35 +04:00
/* The following definitions come from printing/print_iprint.c */
2014-07-22 22:17:38 +04:00
bool iprint_cache_reload ( struct pcap_cache * * _pcache ) ;
2010-05-14 00:24:35 +04:00
/* The following definitions come from printing/print_svid.c */
2014-07-22 22:17:38 +04:00
bool sysv_cache_reload ( struct pcap_cache * * _pcache ) ;
2010-05-14 00:24:35 +04:00
/* The following definitions come from printing/print_standard.c */
2014-07-22 22:17:38 +04:00
bool std_pcap_cache_reload ( const char * pcap_name , struct pcap_cache * * _pcache ) ;
2011-06-10 17:07:03 +04:00
# endif /* _PRINTING_PCAP_H_ */