yumapro  20.10-12
YumaPro SDK
yin.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3  * Copyright (c) 2012, YumaWorks, Inc., All Rights Reserved.
4  *
5  * Unless required by applicable law or agreed to in writing,
6  * software distributed under the License is distributed on an
7  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8  * KIND, either express or implied. See the License for the
9  * specific language governing permissions and limitations
10  * under the License.
11  */
12 #ifndef _H_yin
13 #define _H_yin
14 
15 /* FILE: yin.h
16 *********************************************************************
17 * *
18 * P U R P O S E *
19 * *
20 *********************************************************************/
21 
27 /*********************************************************************
28 * *
29 * C H A N G E H I S T O R Y *
30 * *
31 *********************************************************************
32 
33 date init comment
34 ----------------------------------------------------------------------
35 06-dec-09 abb Begun; split out from yangdump dir
36 
37 */
38 
39 #include <xmlstring.h>
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 
46 
56 /********************************************************************
57 * *
58 * C O N S T A N T S *
59 * *
60 *********************************************************************/
61 
62 
63 /********************************************************************
64 * *
65 * T Y P E S *
66 * *
67 *********************************************************************/
68 
72 typedef struct yin_mapping_t_ {
74  const xmlChar *keyword;
75 
77  const xmlChar *argname;
78 
80  boolean elem;
81 } yin_mapping_t;
82 
83 
84 /********************************************************************
85 * *
86 * F U N C T I O N S *
87 * *
88 *********************************************************************/
89 
90 
97 extern const yin_mapping_t *
98  yin_find_mapping (const xmlChar *name);
99 
100 
104 #ifdef __cplusplus
105 } /* end extern 'C' */
106 #endif
107 
108 #endif /* _H_yin */
xml_util.h
XML Utilities.
yin_mapping_t_
YANG to YIN mapping The argument and element vs.
Definition: yin.h:72
yangconst.h
Contains YANG constants separated to prevent H file include loops.
yin.h
YIN Language Format.
yin_mapping_t_::argname
const xmlChar * argname
argument name, may be NULL
Definition: yin.h:85
xml_strcmp
int xml_strcmp(const xmlChar *s1, const xmlChar *s2)
String compare for xmlChar.
Definition: xml_util.c:1746
yin_find_mapping
const yin_mapping_t * yin_find_mapping(const xmlChar *name)
Find a static yin mapping entry.
Definition: yin.c:141
yin_mapping_t_::elem
boolean elem
TRUE if element argument, FALSE for attribute argument.
Definition: yin.h:88
yin_mapping_t_::keyword
const xmlChar * keyword
YANG keyword.
Definition: yin.h:82