printing/load.c

ソースコードを見る。

関数

static void add_auto_printers (void)
void load_printers (void)


関数

static void add_auto_printers ( void   )  [static]

load.c27 行で定義されています。

参照先 lp_add_printer()pcap_printername_ok().

参照元 load_printers().

00028 {
00029         const char *p;
00030         int pnum = lp_servicenumber(PRINTERS_NAME);
00031         char *str;
00032 
00033         if (pnum < 0)
00034                 return;
00035 
00036         if ((str = SMB_STRDUP(lp_auto_services())) == NULL)
00037                 return;
00038 
00039         for (p = strtok(str, LIST_SEP); p; p = strtok(NULL, LIST_SEP)) {
00040                 if (lp_servicenumber(p) >= 0)
00041                         continue;
00042                 
00043                 if (pcap_printername_ok(p))
00044                         lp_add_printer(p, pnum);
00045         }
00046 
00047         SAFE_FREE(str);
00048 }

void load_printers ( void   ) 

load.c53 行で定義されています。

参照先 add_auto_printers()lp_add_one_printer()pcap_cache_loaded()pcap_cache_reload()pcap_printer_fn().

参照元 main()reload_printers()save_reload().

00054 {
00055         if (!pcap_cache_loaded())
00056                 pcap_cache_reload();
00057 
00058         add_auto_printers();
00059 
00060         /* load all printcap printers */
00061         if (lp_load_printers() && lp_servicenumber(PRINTERS_NAME) >= 0)
00062                 pcap_printer_fn(lp_add_one_printer);
00063 }


Sambaに対してSat Aug 29 21:24:02 2009に生成されました。  doxygen 1.4.7