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