diff options
Diffstat (limited to 'usr/src/man/man3papi/papiPrintersList.3papi')
| -rw-r--r-- | usr/src/man/man3papi/papiPrintersList.3papi | 48 |
1 files changed, 10 insertions, 38 deletions
diff --git a/usr/src/man/man3papi/papiPrintersList.3papi b/usr/src/man/man3papi/papiPrintersList.3papi index cc0e2c1741..b63302e558 100644 --- a/usr/src/man/man3papi/papiPrintersList.3papi +++ b/usr/src/man/man3papi/papiPrintersList.3papi @@ -3,7 +3,7 @@ .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH papiPrintersList 3PAPI "17 Jan 2007" "SunOS 5.11" "PAPI Library Functions" +.TH PAPIPRINTERSLIST 3PAPI "Jan 17, 2007" .SH NAME papiPrintersList, papiPrinterQuery, papiPrinterAdd, papiPrinterModify, papiPrinterRemove, papiPrinterDisable, papiPrinterEnable, papiPrinterPause, @@ -13,7 +13,7 @@ object manipulation .SH SYNOPSIS .LP .nf -cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lpapi\fR [ \fIlibrary\fR\&.\|.\|. ] +cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lpapi\fR [ \fIlibrary\fR\&.\|.\|. ] #include <papi.h> \fBpapi_status_t\fR \fBpapiPrintersList\fR(\fBpapi_service_t\fR \fIhandle\fR, @@ -98,126 +98,104 @@ cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lpapi\fR [ \fIlibrary\fR\&.\| .SH PARAMETERS .sp .ne 2 -.mk .na \fB\fIattributes\fR\fR .ad .RS 19n -.rt a set of attributes to be applied to a printer object .RE .sp .ne 2 -.mk .na \fB\fIfilter\fR\fR .ad .RS 19n -.rt a filter to be applied during printer enumeration .RE .sp .ne 2 -.mk .na \fB\fIhandle\fR\fR .ad .RS 19n -.rt a pointer to a handle to be used for all PAPI operations, created by calling \fBpapiServiceCreate()\fR .RE .sp .ne 2 -.mk .na \fB\fIjob_attributes\fR\fR .ad .RS 19n -.rt unused .RE .sp .ne 2 -.mk .na \fB\fIjobs\fR\fR .ad .RS 19n -.rt a pointer to a list to return job objects (initialized to \fINULL\fR) enumerated by \fBpapiPrinterGetJobs()\fR .RE .sp .ne 2 -.mk .na \fB\fImax_num_jobs\fR\fR .ad .RS 19n -.rt the maximum number of jobs to return from a \fBpapiPrinterGetJobs()\fR request .RE .sp .ne 2 -.mk .na \fB\fImessage\fR\fR .ad .RS 19n -.rt a message to be associated with a printer while disabled or paused .RE .sp .ne 2 -.mk .na \fB\fIname\fR\fR .ad .RS 19n -.rt the name of the printer object being operated on .RE .sp .ne 2 -.mk .na \fB\fIprinter\fR\fR .ad .RS 19n -.rt a pointer to a printer object (initialized to \fINULL\fR) to be filled in by \fBpapiPrinterQuery()\fR, \fBpapiPrinterAdd()\fR, and \fBpapiPrinterModify()\fR .RE .sp .ne 2 -.mk .na \fB\fIprinters\fR\fR .ad .RS 19n -.rt a pointer to a list to return printer objects (initialized to \fINULL\fR) enumerated by \fBpapiPrintersList()\fR .RE .sp .ne 2 -.mk .na \fB\fIrequested_attrs\fR\fR .ad .RS 19n -.rt a null-terminated array of pointers to attribute names requested during printer enumeration (\fBpapiPrintersList()\fR), printer query (\fBpapiPrinterQuery()\fR), or job enumeration (\fBpapiPrinterListJobs()\fR) @@ -225,18 +203,15 @@ enumeration (\fBpapiPrintersList()\fR), printer query .sp .ne 2 -.mk .na \fB\fItype_mask\fR\fR .ad .RS 19n -.rt a bit field indicating which type of jobs to return \fBPAPI_LIST_JOBS_OTHERS\fR include jobs submitted by others. The default is to report only on your own jobs .sp .ne 2 -.mk .na \fB\fBPAPI_LIST_JOBS_COMPLETED\fR\fR .ad @@ -247,7 +222,6 @@ include completed jobs .sp .ne 2 -.mk .na \fB\fBPAPI_LIST_JOBS_NOT_COMPLETED\fR\fR .ad @@ -258,7 +232,6 @@ include jobs not complete .sp .ne 2 -.mk .na \fB\fBPAPI_LIST_JOBS_ALL\fR\fR .ad @@ -419,7 +392,7 @@ main(int ac, char *av[]) int i; for (i = 0; printers[i] != NULL; i++) { - papi_attribute_t **list = + papi_attribute_t **list = papiPrinterGetAttributeList(printers[i]); if (list != NULL) { @@ -516,7 +489,7 @@ main(int ac, char *av[]) PAPI_ENCRYPT_NEVER, NULL); if (status != PAPI_OK) { - printf("papiServiceCreate(%s): %s\en", svc_name ? svc_name : + printf("papiServiceCreate(%s): %s\en", svc_name ? svc_name : "NULL", papiStatusString(status)); papiServiceDestroy(svc); exit(1); @@ -553,15 +526,14 @@ See \fBattributes\fR(5) for descriptions of the following attributes: .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -Interface StabilityVolatile +Interface Stability Volatile _ -MT-LevelSafe +MT-Level Safe .TE .SH SEE ALSO |
