1 // : vi ts=4 sw=4 noet :
3 ==================================================================================
4 Copyright (c) 2019 Nokia
5 Copyright (c) 2018-2019 AT&T Intellectual Property.
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
11 http://www.apache.org/licenses/LICENSE-2.0
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 ==================================================================================
22 Mnemonic: rmr_symtab.h
23 Abstract: Header file for the symbol table.
25 Author: E. Scott Daniels
31 /* --------- symtab ---------------- */
32 #define UT_FL_NOCOPY 0x00 /* use user pointer */
33 #define UT_FL_COPY 0x01 /* make a copy of the string data */
34 #define UT_FL_FREE 0x02 /* free val when deleting */
37 /* ------------ symtab ----------------------------- */
38 extern void rmr_sym_clear( void *s );
39 extern void rmr_sym_dump( void *s );
40 extern void *rmr_sym_alloc( int size );
41 extern void rmr_sym_del( void *s, const char *name, unsigned int class );
42 extern void *rmr_sym_ndel( void *vtable, int key );
43 extern void rmr_sym_free( void *vtable );
44 extern void *rmr_sym_get( void *s, const char *name, unsigned int class );
45 extern int rmr_sym_put( void *s, const char *name, unsigned int class, void *val );
46 extern int rmr_sym_map( void *s, unsigned int key, void *val );
47 extern void *rmr_sym_pull( void *vtable, int key );
48 extern void rmr_sym_stats( void *s, int level );
49 extern void rmr_sym_foreach_class( void *vst, unsigned int class, void (* user_fun)( void*, void*, const char*, void*, void* ), void *user_data );