Print this page
OS-1840 fmdump shall emit JSON (rm feedback)

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libnvpair/libnvpair.h
          +++ new/usr/src/lib/libnvpair/libnvpair.h
↓ open down ↓ 39 lines elided ↑ open up ↑
  40   40   * are subject to change at any time and without notice.  The public
  41   41   * nvlist/nvpair interfaces, as documented in manpage sections 3NVPAIR,
  42   42   * are all imported from <sys/nvpair.h> included above.
  43   43   */
  44   44  
  45   45  extern int nvpair_value_match(nvpair_t *, int, char *, char **);
  46   46  extern int nvpair_value_match_regex(nvpair_t *, int, char *, regex_t *,
  47   47      char **);
  48   48  
  49   49  extern void nvlist_print(FILE *, nvlist_t *);
  50      -extern void nvlist_print_json(FILE *, nvlist_t *);
       50 +extern int nvlist_print_json(FILE *, nvlist_t *);
  51   51  extern void dump_nvlist(nvlist_t *, int);
  52   52  
  53   53  /*
  54   54   * Private nvlist printing interface that allows the caller some control
  55   55   * over output rendering (as opposed to nvlist_print and dump_nvlist).
  56   56   *
  57   57   * Obtain an opaque nvlist_prtctl_t cookie using nvlist_prtctl_alloc
  58   58   * (NULL on failure);  on return the cookie is set up for default formatting
  59   59   * and rendering.  Quote the cookie in subsequent customisation functions and
  60   60   * then pass the cookie to nvlist_prt to render the nvlist.  Finally,
↓ open down ↓ 136 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX