Print this page
2837 - remove print/lp* from gate and use CUPS from userland

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/print/libpapi-common/common/papi.h
          +++ new/usr/src/lib/print/libpapi-common/common/papi.h
↓ open down ↓ 22 lines elided ↑ open up ↑
  23   23   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   *
  26   26   */
  27   27  
  28   28  #ifndef _PAPI_H
  29   29  #define _PAPI_H
  30   30  
  31   31  /* $Id: papi.h 161 2006-05-03 04:32:59Z njacobs $ */
  32   32  
  33      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  34      -
  35   33  #include <sys/types.h>
  36   34  #include <time.h>
  37   35  #include <stdio.h>
  38   36  
  39   37  #ifdef __cplusplus
  40   38  extern "C" {
  41   39  #endif
  42   40  
  43   41  /*
  44   42   * Types
↓ open down ↓ 204 lines elided ↑ open up ↑
 249  247  extern char *papiServiceGetServiceName(papi_service_t handle);
 250  248  extern char *papiServiceGetUserName(papi_service_t handle);
 251  249  extern char *papiServiceGetPassword(papi_service_t handle);
 252  250  extern papi_encryption_t papiServiceGetEncryption(papi_service_t handle);
 253  251  extern void *papiServiceGetAppData(papi_service_t handle);
 254  252  extern papi_attribute_t **papiServiceGetAttributeList(papi_service_t handle);
 255  253  extern char *papiServiceGetStatusMessage(papi_service_t handle);
 256  254  
 257  255  /*      Attribute related        */
 258  256  extern papi_status_t papiAttributeListAddValue(papi_attribute_t ***attrs,
 259      -                                        int flags, char *name,
      257 +                                        int flags, const char *name,
 260  258                                          papi_attribute_value_type_t type,
 261  259                                          papi_attribute_value_t *value);
 262  260  extern papi_status_t papiAttributeListAddString(papi_attribute_t ***attrs,
 263  261                                          int flags, char *name, char *string);
 264  262  extern papi_status_t papiAttributeListAddInteger(papi_attribute_t ***attrs,
 265  263                                          int flags, char *name, int integer);
 266  264  extern papi_status_t papiAttributeListAddBoolean(papi_attribute_t ***attrs,
 267      -                                        int flags, char *name, char boolean);
      265 +                                        int flags, const char *name, char boolean);
 268  266  extern papi_status_t papiAttributeListAddRange(papi_attribute_t ***attrs,
 269  267                                          int flags, char *name,
 270  268                                          int lower, int upper);
 271  269  extern papi_status_t papiAttributeListAddResolution(papi_attribute_t ***attrs,
 272  270                                          int flags, char *name,
 273  271                                          int xres, int yres,
 274  272                                          papi_resolution_unit_t units);
 275  273  extern papi_status_t papiAttributeListAddDatetime(papi_attribute_t ***attrs,
 276  274                                          int flags, char *name, time_t datetime);
 277  275  extern papi_status_t papiAttributeListAddCollection(papi_attribute_t ***attrs,
↓ open down ↓ 26 lines elided ↑ open up ↑
 304  302  extern papi_status_t papiAttributeListGetDatetime(papi_attribute_t **list,
 305  303                                          void **iterator, char *name,
 306  304                                          time_t *dt);
 307  305  extern papi_status_t papiAttributeListGetCollection(papi_attribute_t **list,
 308  306                                          void **iterator, char *name,
 309  307                                          papi_attribute_t ***collection);
 310  308  extern papi_status_t papiAttributeListGetMetadata(papi_attribute_t **list,
 311  309                                          void **iterator, char *name,
 312  310                                          papi_metadata_t *vptr);
 313  311  extern papi_attribute_t *papiAttributeListFind(papi_attribute_t **list,
 314      -                                        char *name);
      312 +                                        const char *name);
 315  313  extern papi_attribute_t *papiAttributeListGetNext(papi_attribute_t **list,
 316  314                                          void **iterator);
 317  315  extern void papiAttributeListFree(papi_attribute_t **attributes);
 318  316  
 319  317  extern papi_status_t papiAttributeListFromString(papi_attribute_t ***attrs,
 320  318                                          int flags, char *string);
 321  319  extern papi_status_t papiAttributeListToString(papi_attribute_t **attrs,
 322  320                                          char *delim,
 323  321                                          char *buffer, size_t buflen);
 324  322  extern void papiAttributeListPrint(FILE *fp, papi_attribute_t **list,
↓ open down ↓ 128 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX