summaryrefslogtreecommitdiff
path: root/usr/src/lib/fm/libfmd_snmp/common/problem.h
diff options
context:
space:
mode:
authorwesolows <none@none>2006-01-20 16:06:55 -0800
committerwesolows <none@none>2006-01-20 16:06:55 -0800
commit749f21d359d8fbd020c974a1a5227316221bfc9c (patch)
tree41bfaf56a9f0c31430c9dd2e35fedffd5d69b220 /usr/src/lib/fm/libfmd_snmp/common/problem.h
parent1f017db093f7568e41a3d8c6429e13daf5424ff8 (diff)
downloadillumos-gate-749f21d359d8fbd020c974a1a5227316221bfc9c.tar.gz
PSARC 2005/754 FMA SNMP Agent
6365742 fault management data needs an SNMP interface 6365743 need 64-bit fmd scheme plugins
Diffstat (limited to 'usr/src/lib/fm/libfmd_snmp/common/problem.h')
-rw-r--r--usr/src/lib/fm/libfmd_snmp/common/problem.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/usr/src/lib/fm/libfmd_snmp/common/problem.h b/usr/src/lib/fm/libfmd_snmp/common/problem.h
new file mode 100644
index 0000000000..fb935e9ed5
--- /dev/null
+++ b/usr/src/lib/fm/libfmd_snmp/common/problem.h
@@ -0,0 +1,70 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets "[]" replaced with your own identifying
+ * information: Portions Copyright [yyyy] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+
+/*
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
+#ifndef _PROBLEM_H
+#define _PROBLEM_H
+
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <sys/types.h>
+#include <libuutil.h>
+#include <libnvpair.h>
+
+typedef struct sunFmProblem_data {
+ int d_valid;
+ uu_avl_node_t d_uuid_avl;
+ const char *d_aci_uuid;
+ const char *d_aci_code;
+ const char *d_aci_url;
+ const char *d_diag_engine;
+ struct timeval d_diag_time;
+ ulong_t d_nsuspects;
+ nvlist_t **d_suspects;
+ nvlist_t *d_aci_event;
+} sunFmProblem_data_t;
+
+typedef struct sunFmProblem_update_ctx {
+ const char *uc_host;
+ uint32_t uc_prog;
+ int uc_version;
+ const char *uc_index;
+ uint32_t uc_type;
+} sunFmProblem_update_ctx_t;
+
+typedef nvlist_t sunFmFaultEvent_data_t;
+
+int sunFmProblemTable_init(void);
+int sunFmFaultEventTable_init(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _PROBLEM_H */