yumapro  20.10-14
YumaPro SDK
yang_hash.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 2021, YumaWorks, Inc., All Rights Reserved.
3  *
4  * Unless required by applicable law or agreed to in writing,
5  * software distributed under the License is distributed on an
6  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
7  * KIND, either express or implied. See the License for the
8  * specific language governing permissions and limitations
9  * under the License.
10  */
11 #ifndef _H_yang_hash
12 #define _H_yang_hash
13 
14 #ifdef WITH_YANG_HASH
15 
16 /* FILE: yang_hash.h
17 *********************************************************************
18 * *
19 * P U R P O S E *
20 * *
21 *********************************************************************/
22 
29 /*********************************************************************
30 * *
31 * C H A N G E H I S T O R Y *
32 * *
33 *********************************************************************
34 
35 date init comment
36 ----------------------------------------------------------------------
37 27-sep-15 abb Begun; start from ydump.c
38 
39 */
40 
41 #include <xmlstring.h>
42 
43 /*** assumes procdefs.h has been included ***/
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
49 /********************************************************************
50 * *
51 * T Y P E S *
52 * *
53 *********************************************************************/
54 
55 
56 /********************************************************************
57 * *
58 * F U N C T I O N S *
59 * *
60 *********************************************************************/
61 
62 /* Group definied in yang.h */
63 
64 
84 extern uint32
85  yang_hash (const xmlChar *key, uint32 len);
86 
87 
91 #endif // WITH_YANG_HASH
92 
93 #ifdef __cplusplus
94 } /* end extern 'C' */
95 #endif
96 
97 #endif /* _H_yang_hash */
uint32 yang_hash(const xmlChar *key, uint32 len)
Generate a yang-hash for the specified key.
Definition: yang_hash.c:75