Print Functions
[Libsmbclient]

Functions used to access printing functionality [詳細]

関数

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

説明

Functions used to access printing functionality


関数

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.
戻り値:
0 on success, < 0 on error with errno set:

libsmb_compat.c430 行で定義されています。

参照先 _SMBCCTX::print_filestatcont.

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?
戻り値:
A file handle for the print file if successful. Returns -1 if an error ocurred and errno has the values
  • EINVAL fname was NULL or smbc_init not called.
  • all errors returned by smbc_open

libsmb_compat.c435 行で定義されています。

参照先 _SMBCFILE::cli_fd_SMBCCTX::open_print_jobstatcont.

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
戻り値:
0 on success, < 0 on error with errno set:
  • EINVAL fname was NULL or smbc_init not called
  • EACCES ???

libsmb_compat.c442 行で定義されています。

参照先 _SMBCCTX::list_print_jobsstatcont.

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
戻り値:
0 on success, < 0 on error with errno set:
  • EINVAL fname was NULL or smbc_init not called
TODO:
what errno values are possible here?

libsmb_compat.c447 行で定義されています。

参照先 statcont_SMBCCTX::unlink_print_job.

00448 {
00449         return (statcont->unlink_print_job)(statcont, purl, id);
00450 }


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