1*355b4669Sjacobs# 2*355b4669Sjacobs# CDDL HEADER START 3*355b4669Sjacobs# 4*355b4669Sjacobs# The contents of this file are subject to the terms of the 5*355b4669Sjacobs# Common Development and Distribution License (the "License"). 6*355b4669Sjacobs# You may not use this file except in compliance with the License. 7*355b4669Sjacobs# 8*355b4669Sjacobs# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*355b4669Sjacobs# or http://www.opensolaris.org/os/licensing. 10*355b4669Sjacobs# See the License for the specific language governing permissions 11*355b4669Sjacobs# and limitations under the License. 12*355b4669Sjacobs# 13*355b4669Sjacobs# When distributing Covered Code, include this CDDL HEADER in each 14*355b4669Sjacobs# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*355b4669Sjacobs# If applicable, add the following below this CDDL HEADER, with the 16*355b4669Sjacobs# fields enclosed by brackets "[]" replaced with your own identifying 17*355b4669Sjacobs# information: Portions Copyright [yyyy] [name of copyright owner] 18*355b4669Sjacobs# 19*355b4669Sjacobs# CDDL HEADER END 20*355b4669Sjacobs# 21*355b4669Sjacobs# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 22*355b4669Sjacobs# Use is subject to license terms. 23*355b4669Sjacobs# 24*355b4669Sjacobs# ident "%Z%%M% %I% %E% SMI" 25*355b4669Sjacobs# 26*355b4669Sjacobs# Generic interface definition for usr/src/cmd/lp/lib/papi 27*355b4669Sjacobs# 28*355b4669Sjacobs# For information regarding the establishment of versioned definitions see: 29*355b4669Sjacobs# The Linker and Libraries Manual (version 2.5 or greater) 30*355b4669Sjacobs# This is part of the Developers Guide in the Answerbook. Specifically refer 31*355b4669Sjacobs# to Chapter 2 under section "Defining Additional Symbols" through section 32*355b4669Sjacobs# "Reducing Symbol Scope", and Chapter 5 "Versioning". 33*355b4669Sjacobs# 34*355b4669Sjacobs# For specific OSNET rules for the modification (evolution) of these version 35*355b4669Sjacobs# definitions see: 36*355b4669Sjacobs# Policy for Shared Library Version Names and Interface Definitions 37*355b4669Sjacobs 38*355b4669SjacobsSUNW_1.0 { 39*355b4669Sjacobs global: 40*355b4669Sjacobs # PAPI Attribute Calls 41*355b4669Sjacobs papiAttributeListAdd; 42*355b4669Sjacobs papiAttributeListAddValue = FUNCTION FILTER libpapi-common.so ; 43*355b4669Sjacobs papiAttributeListAddBoolean = FUNCTION FILTER libpapi-common.so ; 44*355b4669Sjacobs papiAttributeListAddCollection = FUNCTION FILTER libpapi-common.so ; 45*355b4669Sjacobs papiAttributeListAddDatetime = FUNCTION FILTER libpapi-common.so ; 46*355b4669Sjacobs papiAttributeListAddInteger = FUNCTION FILTER libpapi-common.so ; 47*355b4669Sjacobs papiAttributeListAddMetadata = FUNCTION FILTER libpapi-common.so ; 48*355b4669Sjacobs papiAttributeListAddRange = FUNCTION FILTER libpapi-common.so ; 49*355b4669Sjacobs papiAttributeListAddResolution = FUNCTION FILTER libpapi-common.so ; 50*355b4669Sjacobs papiAttributeListAddString = FUNCTION FILTER libpapi-common.so ; 51*355b4669Sjacobs papiAttributeListDelete = FUNCTION FILTER libpapi-common.so ; 52*355b4669Sjacobs papiAttributeListGetValue = FUNCTION FILTER libpapi-common.so ; 53*355b4669Sjacobs papiAttributeListGetNext = FUNCTION FILTER libpapi-common.so ; 54*355b4669Sjacobs papiAttributeListFind = FUNCTION FILTER libpapi-common.so ; 55*355b4669Sjacobs papiAttributeListGetBoolean = FUNCTION FILTER libpapi-common.so ; 56*355b4669Sjacobs papiAttributeListGetCollection = FUNCTION FILTER libpapi-common.so ; 57*355b4669Sjacobs papiAttributeListGetDatetime = FUNCTION FILTER libpapi-common.so ; 58*355b4669Sjacobs papiAttributeListGetInteger = FUNCTION FILTER libpapi-common.so ; 59*355b4669Sjacobs papiAttributeListGetMetadata = FUNCTION FILTER libpapi-common.so ; 60*355b4669Sjacobs papiAttributeListGetRange = FUNCTION FILTER libpapi-common.so ; 61*355b4669Sjacobs papiAttributeListGetResolution = FUNCTION FILTER libpapi-common.so ; 62*355b4669Sjacobs papiAttributeListGetString = FUNCTION FILTER libpapi-common.so ; 63*355b4669Sjacobs papiAttributeListFromString = FUNCTION FILTER libpapi-common.so ; 64*355b4669Sjacobs papiAttributeListToString = FUNCTION FILTER libpapi-common.so ; 65*355b4669Sjacobs papiAttributeListFree = FUNCTION FILTER libpapi-common.so ; 66*355b4669Sjacobs 67*355b4669Sjacobs # PAPI Service Calls 68*355b4669Sjacobs papiServiceCreate; 69*355b4669Sjacobs papiServiceDestroy; 70*355b4669Sjacobs papiServiceSetUserName; 71*355b4669Sjacobs papiServiceSetPassword; 72*355b4669Sjacobs papiServiceSetEncryption; 73*355b4669Sjacobs papiServiceSetAuthCB; 74*355b4669Sjacobs papiServiceSetAppData; 75*355b4669Sjacobs papiServiceGetUserName; 76*355b4669Sjacobs papiServiceGetPassword; 77*355b4669Sjacobs papiServiceGetEncryption; 78*355b4669Sjacobs papiServiceGetAppData; 79*355b4669Sjacobs papiServiceGetServiceName; 80*355b4669Sjacobs papiServiceGetAttributeList; 81*355b4669Sjacobs papiServiceGetStatusMessage; 82*355b4669Sjacobs 83*355b4669Sjacobs # PAPI Printer Calls 84*355b4669Sjacobs papiPrintersList; 85*355b4669Sjacobs papiPrinterQuery; 86*355b4669Sjacobs papiPrinterAdd; 87*355b4669Sjacobs papiPrinterModify; 88*355b4669Sjacobs papiPrinterRemove; 89*355b4669Sjacobs papiPrinterDisable; 90*355b4669Sjacobs papiPrinterEnable; 91*355b4669Sjacobs papiPrinterPause; 92*355b4669Sjacobs papiPrinterResume; 93*355b4669Sjacobs papiPrinterPurgeJobs; 94*355b4669Sjacobs papiPrinterListJobs; 95*355b4669Sjacobs papiPrinterGetAttributeList; 96*355b4669Sjacobs papiPrinterFree; 97*355b4669Sjacobs papiPrinterListFree; 98*355b4669Sjacobs 99*355b4669Sjacobs # PAPI Job Calls 100*355b4669Sjacobs papiJobSubmit; 101*355b4669Sjacobs papiJobSubmitByReference; 102*355b4669Sjacobs papiJobValidate; 103*355b4669Sjacobs papiJobStreamOpen; 104*355b4669Sjacobs papiJobStreamWrite; 105*355b4669Sjacobs papiJobStreamClose; 106*355b4669Sjacobs papiJobQuery; 107*355b4669Sjacobs papiJobModify; 108*355b4669Sjacobs papiJobMove; 109*355b4669Sjacobs papiJobCancel; 110*355b4669Sjacobs papiJobHold; 111*355b4669Sjacobs papiJobRelease; 112*355b4669Sjacobs papiJobRestart = FUNCTION FILTER libpapi-common.so ; 113*355b4669Sjacobs papiJobPromote; 114*355b4669Sjacobs papiJobGetAttributeList; 115*355b4669Sjacobs papiJobGetPrinterName; 116*355b4669Sjacobs papiJobGetId; 117*355b4669Sjacobs papiJobGetJobTicket = FUNCTION FILTER libpapi-common.so ; 118*355b4669Sjacobs papiJobFree; 119*355b4669Sjacobs papiJobListFree; 120*355b4669Sjacobs 121*355b4669Sjacobs # Misc. PAPI Calls 122*355b4669Sjacobs papiStatusString = FUNCTION FILTER libpapi-common.so ; 123*355b4669Sjacobs papiLibrarySupportedCall; 124*355b4669Sjacobs papiLibrarySupportedCalls; 125*355b4669Sjacobs}; 126*355b4669Sjacobs 127*355b4669SjacobsSUNWprivate_1.0 { 128*355b4669Sjacobs global: 129*355b4669Sjacobs papiServiceSetPeer; # used by to pass peer connection 130*355b4669Sjacobs papiJobCreate; 131*355b4669Sjacobs papiJobStreamAdd; 132*355b4669Sjacobs papiJobCommit; 133*355b4669Sjacobs 134*355b4669Sjacobs # Misc. supporting calls 135*355b4669Sjacobs # URI 136*355b4669Sjacobs uri_from_string = FUNCTION FILTER libpapi-common.so ; 137*355b4669Sjacobs uri_to_string = FUNCTION FILTER libpapi-common.so ; 138*355b4669Sjacobs uri_free = FUNCTION FILTER libpapi-common.so ; 139*355b4669Sjacobs # list 140*355b4669Sjacobs list_remove = FUNCTION FILTER libpapi-common.so ; 141*355b4669Sjacobs list_append = FUNCTION FILTER libpapi-common.so ; 142*355b4669Sjacobs list_concatenate = FUNCTION FILTER libpapi-common.so ; 143*355b4669Sjacobs 144*355b4669Sjacobs # extra Attribute Calls 145*355b4669Sjacobs copy_attributes = FUNCTION FILTER libpapi-common.so ; 146*355b4669Sjacobs split_and_copy_attributes = FUNCTION FILTER libpapi-common.so ; 147*355b4669Sjacobs papiAttributeListPrint = FUNCTION FILTER libpapi-common.so ; 148*355b4669Sjacobs 149*355b4669Sjacobs local: 150*355b4669Sjacobs *; 151*355b4669Sjacobs}; 152