Print this page
Bump Apache dependency to Apache 2

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 ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
       23 + * Copyright 2012 Nexenta Systems, Inc.  All rights reserved.
  23   24   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   25   * Use is subject to license terms.
  25   26   *
  26   27   */
  27   28  
  28   29  #ifndef _PAPI_H
  29   30  #define _PAPI_H
  30   31  
  31   32  /* $Id: papi.h 161 2006-05-03 04:32:59Z njacobs $ */
  32   33  
  33      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  34      -
  35   34  #include <sys/types.h>
  36   35  #include <time.h>
  37   36  #include <stdio.h>
  38   37  
  39   38  #ifdef __cplusplus
  40   39  extern "C" {
  41   40  #endif
  42   41  
  43   42  /*
  44   43   * Types
↓ open down ↓ 204 lines elided ↑ open up ↑
 249  248  extern char *papiServiceGetServiceName(papi_service_t handle);
 250  249  extern char *papiServiceGetUserName(papi_service_t handle);
 251  250  extern char *papiServiceGetPassword(papi_service_t handle);
 252  251  extern papi_encryption_t papiServiceGetEncryption(papi_service_t handle);
 253  252  extern void *papiServiceGetAppData(papi_service_t handle);
 254  253  extern papi_attribute_t **papiServiceGetAttributeList(papi_service_t handle);
 255  254  extern char *papiServiceGetStatusMessage(papi_service_t handle);
 256  255  
 257  256  /*      Attribute related        */
 258  257  extern papi_status_t papiAttributeListAddValue(papi_attribute_t ***attrs,
 259      -                                        int flags, char *name,
      258 +                                        int flags, const char *name,
 260  259                                          papi_attribute_value_type_t type,
 261  260                                          papi_attribute_value_t *value);
 262  261  extern papi_status_t papiAttributeListAddString(papi_attribute_t ***attrs,
 263  262                                          int flags, char *name, char *string);
 264  263  extern papi_status_t papiAttributeListAddInteger(papi_attribute_t ***attrs,
 265  264                                          int flags, char *name, int integer);
 266  265  extern papi_status_t papiAttributeListAddBoolean(papi_attribute_t ***attrs,
 267      -                                        int flags, char *name, char boolean);
      266 +                                        int flags, const char *name, char boolean);
 268  267  extern papi_status_t papiAttributeListAddRange(papi_attribute_t ***attrs,
 269  268                                          int flags, char *name,
 270  269                                          int lower, int upper);
 271  270  extern papi_status_t papiAttributeListAddResolution(papi_attribute_t ***attrs,
 272  271                                          int flags, char *name,
 273  272                                          int xres, int yres,
 274  273                                          papi_resolution_unit_t units);
 275  274  extern papi_status_t papiAttributeListAddDatetime(papi_attribute_t ***attrs,
 276  275                                          int flags, char *name, time_t datetime);
 277  276  extern papi_status_t papiAttributeListAddCollection(papi_attribute_t ***attrs,
↓ open down ↓ 26 lines elided ↑ open up ↑
 304  303  extern papi_status_t papiAttributeListGetDatetime(papi_attribute_t **list,
 305  304                                          void **iterator, char *name,
 306  305                                          time_t *dt);
 307  306  extern papi_status_t papiAttributeListGetCollection(papi_attribute_t **list,
 308  307                                          void **iterator, char *name,
 309  308                                          papi_attribute_t ***collection);
 310  309  extern papi_status_t papiAttributeListGetMetadata(papi_attribute_t **list,
 311  310                                          void **iterator, char *name,
 312  311                                          papi_metadata_t *vptr);
 313  312  extern papi_attribute_t *papiAttributeListFind(papi_attribute_t **list,
 314      -                                        char *name);
      313 +                                        const char *name);
 315  314  extern papi_attribute_t *papiAttributeListGetNext(papi_attribute_t **list,
 316  315                                          void **iterator);
 317  316  extern void papiAttributeListFree(papi_attribute_t **attributes);
 318  317  
 319  318  extern papi_status_t papiAttributeListFromString(papi_attribute_t ***attrs,
 320  319                                          int flags, char *string);
 321  320  extern papi_status_t papiAttributeListToString(papi_attribute_t **attrs,
 322  321                                          char *delim,
 323  322                                          char *buffer, size_t buflen);
 324  323  extern void papiAttributeListPrint(FILE *fp, papi_attribute_t **list,
↓ open down ↓ 128 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX