Print this page
7558 libscf.h should provide constants for scf_type_to_string return values

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libscf/inc/libscf.h
          +++ new/usr/src/lib/libscf/inc/libscf.h
↓ open down ↓ 86 lines elided ↑ open up ↑
  87   87          SCF_TYPE_URI = 200,
  88   88          SCF_TYPE_FMRI,
  89   89  
  90   90          SCF_TYPE_HOST = 300,
  91   91          SCF_TYPE_HOSTNAME,
  92   92          SCF_TYPE_NET_ADDR_V4,
  93   93          SCF_TYPE_NET_ADDR_V6,
  94   94          SCF_TYPE_NET_ADDR
  95   95  } scf_type_t;
  96   96  
       97 +/*
       98 + * Values returned by scf_type_to_string
       99 + */
      100 +#define SCF_TYPE_STRING_BOOLEAN         "boolean"
      101 +#define SCF_TYPE_STRING_COUNT           "count"
      102 +#define SCF_TYPE_STRING_INTEGER         "integer"
      103 +#define SCF_TYPE_STRING_TIME            "time"
      104 +#define SCF_TYPE_STRING_ASTRING         "astring"
      105 +#define SCF_TYPE_STRING_OPAQUE          "opaque"
      106 +#define SCF_TYPE_STRING_USTRING         "ustring"
      107 +#define SCF_TYPE_STRING_URI             "uri"
      108 +#define SCF_TYPE_STRING_FMRI            "fmri"
      109 +#define SCF_TYPE_STRING_HOST            "host"
      110 +#define SCF_TYPE_STRING_HOSTNAME        "hostname"
      111 +#define SCF_TYPE_STRING_NET_ADDR        "net_address"
      112 +#define SCF_TYPE_STRING_NET_ADDR_V4     "net_address_v4"
      113 +#define SCF_TYPE_STRING_NET_ADDR_V6     "net_address_v6"
      114 +
  97  115  typedef struct scf_time {
  98  116          int64_t         t_seconds;
  99  117          int32_t         t_ns;
 100  118  } scf_time_t;
 101  119  
 102  120  /*
 103  121   * There is no explicit initializer for this structure.  Functions
 104  122   * which set or populate this structure assume that it is either
 105  123   * uninitialized or destroyed.
 106  124   */
↓ open down ↓ 754 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX