Print this page
OS-1840 fmdump shall emit JSON
Reviewed by: Robert Mustacchi <rm@joyent.com>

@@ -18,10 +18,11 @@
  *
  * CDDL HEADER END
  */
 /*
  * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, Joyent, Inc. All rights reserved.
  */
 
 #ifndef _FMDUMP_H
 #define _FMDUMP_H
 

@@ -51,10 +52,11 @@
         FMDUMP_SHORT,
         FMDUMP_VERB1,
         FMDUMP_VERB2,
         FMDUMP_PRETTY,
         FMDUMP_MSG,
+        FMDUMP_JSON,
         FMDUMP_NFMTS
 };
 
 typedef struct fmdump_ops {
         const char *do_label;

@@ -99,10 +101,12 @@
 extern char *fmdump_nvl2str(nvlist_t *nvl);
 
 extern int fmdump_render_nvlist(nvlist_prtctl_t, void *, nvlist_t *,
     const char *, nvlist_t *);
 
+extern int fmdump_print_json(fmd_log_t *, const fmd_log_record_t *, FILE *);
+
 #ifdef  __cplusplus
 }
 #endif
 
 #endif  /* _FMDUMP_H */