Fix session discconnect bug in interface to SI95
[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 #include <netdb.h>
32
33 /* --------- symtab ---------------- */
34 #define UT_FL_NOCOPY 0x00          /* use user pointer */
35 #define UT_FL_COPY 0x01            /* make a copy of the string data */
36 #define UT_FL_FREE 0x02            /* free val when deleting */
37
38
39 /* ------------ symtab ----------------------------- */
40 extern void rmr_sym_clear( void *s );
41 extern void rmr_sym_dump( void *s );
42 extern void *rmr_sym_alloc( int size );
43 extern void rmr_sym_del( void *s, const char *name, unsigned int class );
44 extern void rmr_sym_ndel( void *vtable, uint64_t key );
45 extern void rmr_sym_free( void *vtable );
46 extern void *rmr_sym_get( void *s,  const char *name, unsigned int class );
47 extern int rmr_sym_put( void *s,  const char *name, unsigned int class, void *val );
48 extern int rmr_sym_map( void *s,  uint64_t key, void *val );
49 extern void *rmr_sym_pull(  void *vtable, uint64_t key );
50 extern void rmr_sym_stats( void *s, int level );
51 extern void rmr_sym_foreach_class( void *vst, unsigned int class, void (* user_fun)( void*, void*, const char*, void*, void* ), void *user_data );
52
53
54 #endif