usr/src/lib/fm/topo/libtopo/common/libtopo.h
changeset 3681 d93cfde2f771
parent 3670 6338278a5e69
child 4087 b986877655d2
--- a/usr/src/lib/fm/topo/libtopo/common/libtopo.h	Mon Feb 19 05:28:47 2007 -0800
+++ b/usr/src/lib/fm/topo/libtopo/common/libtopo.h	Mon Feb 19 20:47:33 2007 -0800
@@ -20,7 +20,7 @@
  */
 
 /*
- * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -122,6 +122,7 @@
  */
 extern int topo_fmri_present(topo_hdl_t *, nvlist_t *, int *);
 extern int topo_fmri_contains(topo_hdl_t *, nvlist_t *, nvlist_t *, int *);
+extern int topo_fmri_expand(topo_hdl_t *, nvlist_t *, int *);
 extern int topo_fmri_unusable(topo_hdl_t *, nvlist_t *, int *);
 extern int topo_fmri_nvl2str(topo_hdl_t *, nvlist_t *, char **, int *);
 extern int topo_fmri_str2nvl(topo_hdl_t *, const char *, nvlist_t **, int *);
@@ -250,6 +251,18 @@
     ETOPO_PROP_END	/* end of prop errno list (to ease auto-merge) */
 } topo_prop_errno_t;
 
+/*
+ * Similar to the above, this enum defines a set of errors associated with node
+ * methods.
+ */
+typedef enum topo_method_errno {
+    ETOPO_METHOD_UNKNOWN = 4000, /* unknown topo method error */
+    ETOPO_METHOD_INVAL, /* invalid method registration */
+    ETOPO_METHOD_NOTSUP, /* method not supported */
+    ETOPO_METHOD_FAIL  /* method failed */
+} topo_method_errno_t;
+
+
 extern const char *topo_strerror(int);
 extern void topo_debug_set(topo_hdl_t *, const char *, const char *);
 extern void *topo_hdl_alloc(topo_hdl_t *, size_t);