libkysdk-system/man/hardware/libkyprinter.3

60 lines
2.3 KiB
Groff

.TH "LIBKYPRINTER" 3 "Fri Aug 25 2023" "Linux Programmer's Manual" \"
.SH NAME
kdk_printer_get_list, kdk_printer_get_available_list, kdk_printer_set_options, kdk_printer_print_download_remote_file,
kdk_printer_print_local_file, kdk_printer_cancel_all_jobs, kdk_printer_get_status, kdk_printer_get_job_status, kdk_printer_get_filename,
kdk_printer_freeall - 获取打印信息
.SH SYNOPSIS
.nf
.B #include <libkyprinter.h>
.sp
.BI "extern char** kdk_printer_get_list();"
.sp
.BI "extern char** kdk_printer_get_available_list();"
.sp
.BI "extern void kdk_printer_set_options(int "number_up ", const char *"media ", const char *"number_up_layout ", const char *"sides ");"
.sp
.BI "extern int kdk_printer_print_download_remote_file(const char *"url ", const char *"filepath ");"
.sp
.BI "extern int kdk_printer_print_local_file(const char *"printername ", const char *"filepath ");"
.sp
.BI "extern int kdk_printer_cancel_all_jobs(const char *"printername ");"
.sp
.BI "extern int kdk_printer_get_status(const char *"printername ");"
.sp
.BI "extern int kdk_printer_get_job_status(const char *"printername ", int "jobid ");"
.sp
.BI "extern char* kdk_printer_get_filename(const char *"url ");"
.sp
.BI "extern inline void kdk_printer_freeall(char **"ptr ");"
.sp
Link with \fI\-lkyprinter\fP.
.SH "Detailed Description"
This library contains print information.
.SH "RETURN VALUE"
The return value is generally specific to the individual function called.
.SH "CONFORMING TO"
These functions are as per the withdrawn POSIX.1e draft specification.
The following functions are Linux extensions:
.BR kdk_printer_get_list (),
.BR kdk_printer_get_available_list (),
.BR kdk_printer_set_options (),
.BR kdk_printer_print_download_remote_file (),
.BR kdk_printer_print_local_file (),
.BR kdk_printer_cancel_all_jobs (),
.BR kdk_printer_get_status (),
.BR kdk_printer_get_job_status (),
.BR kdk_printer_get_filename ()
and
.BR kdk_printer_freeall ().
.SH "SEE ALSO"
.BR kdk_printer_get_list (3),
.BR kdk_printer_get_available_list (3),
.BR kdk_printer_set_options (3),
.BR kdk_printer_print_download_remote_file (3),
.BR kdk_printer_print_local_file (3),
.BR kdk_printer_cancel_all_jobs (3),
.BR kdk_printer_get_status (3),
.BR kdk_printer_get_job_status (3),
.BR kdk_printer_get_filename (3)
and
.BR kdk_printer_freeall (3).