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]
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
25 * literals.h -- public definitions for literals in string table
27 * all strings in this program are kept in the string table provided
28 * by the routines in stable.c. this allows us to see if two strings
29 * are equal by checking their pointers rather than calling strcmp().
30 * when we want to check for a specific string we can either do this:
31 * if (s == stable("word"))
32 * or define the literal here in this file and then do this:
35 * the macro L_DECL() below expands to an extern const char * declaration
36 * for files that include it. the exception is some cpp statements done by
37 * literals.c which change L_DECL() to initialize the string by calling
41 #ifndef _ESC_COMMON_LITERALS_H
42 #define _ESC_COMMON_LITERALS_H
49 #define L_DECL(s) extern const char *L_##s
74 /* timeval suffixes */
135 L_DECL(discard_if_config_unknown
);
137 /* property values */
142 /* event bubble types */
148 * internal function names. note that "fru" and "asru" are also function
156 L_DECL(confprop_defined
);
159 L_DECL(payloadprop_contains
);
160 L_DECL(payloadprop_defined
);
161 L_DECL(setpayloadprop
);
162 L_DECL(setserdsuffix
);
163 L_DECL(setserdincrement
);
167 L_DECL(is_connected
);
175 /* our enumerated types (used for debugging) */
232 L_DECL(IT_HORIZONTAL
);
242 #endif /* _ESC_COMMON_LITERALS_H */