Allow C++ applications to include symtab header
[ric-plt/lib/rmr.git] / src / rmr / common / include / rmr_symtab.h
1 // : vi ts=4 sw=4 noet :
2 /*
3 ==================================================================================
4         Copyright (c) 2019 Nokia
5         Copyright (c) 2018-2019 AT&T Intellectual Property.
6
7    Licensed under the Apache License, Version 2.0 (the "License");
8    you may not use this file except in compliance with the License.
9    You may obtain a copy of the License at
10
11            http://www.apache.org/licenses/LICENSE-2.0
12
13    Unless required by applicable law or agreed to in writing, software
14    distributed under the License is distributed on an "AS IS" BASIS,
15    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16    See the License for the specific language governing permissions and
17    limitations under the License.
18 ==================================================================================
19 */
20
21 /*
22         Mnemonic:       rmr_symtab.h
23         Abstract:       Header file for the symbol table.
24         Date:           4 February 2019
25         Author:         E. Scott Daniels
26 */
27
28 #ifndef _rmr_symtab_h
29 #define _rmr_symtab_h
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35
36 // ------------ prototypes  -----------------------------
37 extern void rmr_sym_clear( void *s );
38 extern void rmr_sym_dump( void *s );
39 extern void *rmr_sym_alloc( int size );
40 extern void rmr_sym_del( void *s, const char *name, unsigned int st_class );
41 extern void rmr_sym_ndel( void *vtable, uint64_t key );
42 extern void rmr_sym_free( void *vtable );
43 extern void *rmr_sym_get( void *s,  const char *name, unsigned int st_class );
44 extern int rmr_sym_put( void *s,  const char *name, unsigned int st_class, void *val );
45 extern int rmr_sym_map( void *s,  uint64_t key, void *val );
46 extern void *rmr_sym_pull(  void *vtable, uint64_t key );
47 extern void rmr_sym_stats( void *s, int level );
48 extern void rmr_sym_foreach_class( void *vst, unsigned int st_class, void (* user_fun)( void*, void*, const char*, void*, void* ), void *user_data );
49
50
51 #ifdef __cplusplus
52 }
53 #endif
54
55
56 #endif