関数 | |
int | smbc_print_file (const char *fname, const char *printq) |
Print a file given the name in fname. | |
int | smbc_open_print_job (const char *fname) |
Open a print file that can be written to by other calls. | |
int | smbc_list_print_jobs (const char *purl, smbc_list_print_job_fn fn) |
List the print jobs on a print share, for the moment, pass a callback | |
int | smbc_unlink_print_job (const char *purl, int id) |
Delete a print job |
int smbc_print_file | ( | const char * | fname, | |
const char * | printq | |||
) |
Print a file given the name in fname.
It would be a URL ...
fname | The URL of a file on a remote SMB server that the caller wants printed | |
printq | The URL of the print share to print the file to. |
libsmb_compat.c の 430 行で定義されています。
参照先 _SMBCCTX::print_file・statcont.
00431 { 00432 return (statcont->print_file)(statcont, fname, statcont, printq); 00433 }
int smbc_open_print_job | ( | const char * | fname | ) |
Open a print file that can be written to by other calls.
This simply does an smbc_open call after checking if there is a file name on the URI. If not, a temporary name is added ...
fname | The URL of the print share to print to? |
libsmb_compat.c の 435 行で定義されています。
参照先 _SMBCFILE::cli_fd・_SMBCCTX::open_print_job・statcont.
00436 { 00437 SMBCFILE * file = (statcont->open_print_job)(statcont, fname); 00438 if (!file) return -1; 00439 return file->cli_fd; 00440 }
int smbc_list_print_jobs | ( | const char * | purl, | |
smbc_list_print_job_fn | fn | |||
) |
List the print jobs on a print share, for the moment, pass a callback
purl | The url of the print share to list the jobs of | |
fn | Callback function the receives printjob info |
libsmb_compat.c の 442 行で定義されています。
参照先 _SMBCCTX::list_print_jobs・statcont.
00443 { 00444 return (statcont->list_print_jobs)(statcont, purl, fn); 00445 }
int smbc_unlink_print_job | ( | const char * | purl, | |
int | id | |||
) |
Delete a print job
purl | Url of the print share | |
id | The id of the job to delete |
libsmb_compat.c の 447 行で定義されています。
参照先 statcont・_SMBCCTX::unlink_print_job.
00448 { 00449 return (statcont->unlink_print_job)(statcont, purl, id); 00450 }