dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / fm / modules / common / sw-diag-response / software-response / swrp_main.c
blob83a1d461e1355d53a46cbdfe411cc7b0d347eaa2
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
26 #include "../common/sw_impl.h"
28 static const fmd_prop_t swrp_props[] = {
29 { "enable", FMD_TYPE_BOOL, "true" },
30 { NULL, 0, NULL }
33 static const fmd_hdl_ops_t swrp_ops = {
34 sw_recv, /* fmdo_recv - provided by common code */
35 sw_timeout, /* fmdo_timeout */
36 NULL, /* fmdo_close */
37 NULL, /* fmdo_stats */
38 NULL, /* fmdo_gc */
39 NULL, /* fmdo_send */
40 NULL /* fmdo_topo */
43 const fmd_hdl_info_t swrp_info = {
44 "Software Response Agent", "0.1", &swrp_ops, swrp_props
48 * Subsidiary response "modules" that we host.
50 static const struct sw_subinfo *subrp[SW_SUB_MAX] = {
51 &smf_response_info,
54 void
55 _fmd_init(fmd_hdl_t *hdl)
57 (void) sw_fmd_init(hdl, &swrp_info, &subrp);
60 void
61 _fmd_fini(fmd_hdl_t *hdl)
63 sw_fmd_fini(hdl);