1*f6e214c7SGavin Maltby /*
2*f6e214c7SGavin Maltby  * CDDL HEADER START
3*f6e214c7SGavin Maltby  *
4*f6e214c7SGavin Maltby  * The contents of this file are subject to the terms of the
5*f6e214c7SGavin Maltby  * Common Development and Distribution License (the "License").
6*f6e214c7SGavin Maltby  * You may not use this file except in compliance with the License.
7*f6e214c7SGavin Maltby  *
8*f6e214c7SGavin Maltby  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*f6e214c7SGavin Maltby  * or http://www.opensolaris.org/os/licensing.
10*f6e214c7SGavin Maltby  * See the License for the specific language governing permissions
11*f6e214c7SGavin Maltby  * and limitations under the License.
12*f6e214c7SGavin Maltby  *
13*f6e214c7SGavin Maltby  * When distributing Covered Code, include this CDDL HEADER in each
14*f6e214c7SGavin Maltby  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*f6e214c7SGavin Maltby  * If applicable, add the following below this CDDL HEADER, with the
16*f6e214c7SGavin Maltby  * fields enclosed by brackets "[]" replaced with your own identifying
17*f6e214c7SGavin Maltby  * information: Portions Copyright [yyyy] [name of copyright owner]
18*f6e214c7SGavin Maltby  *
19*f6e214c7SGavin Maltby  * CDDL HEADER END
20*f6e214c7SGavin Maltby  */
21*f6e214c7SGavin Maltby 
22*f6e214c7SGavin Maltby /*
23*f6e214c7SGavin Maltby  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24*f6e214c7SGavin Maltby  */
25*f6e214c7SGavin Maltby 
26*f6e214c7SGavin Maltby #ifndef	_CMD_COMMON_NOTIFY_PARAMS_H
27*f6e214c7SGavin Maltby #define	_CMD_COMMON_NOTIFY_PARAMS_H
28*f6e214c7SGavin Maltby 
29*f6e214c7SGavin Maltby #include <libnvpair.h>
30*f6e214c7SGavin Maltby 
31*f6e214c7SGavin Maltby #ifdef	__cplusplus
32*f6e214c7SGavin Maltby extern "C" {
33*f6e214c7SGavin Maltby #endif
34*f6e214c7SGavin Maltby 
35*f6e214c7SGavin Maltby #define	PARAM_ACTIVE	((const char *) "active")
36*f6e214c7SGavin Maltby #define	PARAM_INACTIVE	((const char *) "inactive")
37*f6e214c7SGavin Maltby #define	PARAM_SMTP_TO	((const char *) "to")
38*f6e214c7SGavin Maltby 
39*f6e214c7SGavin Maltby const char *get_fma_tag(uint32_t);
40*f6e214c7SGavin Maltby const char *get_fma_class(uint32_t);
41*f6e214c7SGavin Maltby int is_fma_token(const char *);
42*f6e214c7SGavin Maltby int has_fma_tag(const char *);
43*f6e214c7SGavin Maltby const char *de_tag(const char *);
44*f6e214c7SGavin Maltby const char *re_tag(const char *);
45*f6e214c7SGavin Maltby int32_t string_to_tset(const char *);
46*f6e214c7SGavin Maltby const char *tset_to_string(int32_t);
47*f6e214c7SGavin Maltby void listnotify_print(nvlist_t *, const char *);
48*f6e214c7SGavin Maltby void safe_printf(const char *, ...);
49*f6e214c7SGavin Maltby 
50*f6e214c7SGavin Maltby #ifdef	__cplusplus
51*f6e214c7SGavin Maltby }
52*f6e214c7SGavin Maltby #endif
53*f6e214c7SGavin Maltby 
54*f6e214c7SGavin Maltby #endif	/* _CMD_COMMON_NOTIFY_PARAMS_H */
55