14
|
1 #ifndef INCLUDED_SYMTABLE
|
|
2 #define INCLUDED_SYMTABLE
|
|
3
|
|
4 #define SYM_MAX_SIZE 64
|
|
5
|
|
6 class SymTable {
|
|
7 public:
|
20
|
8 ~SymTable(void);
|
|
9
|
105
|
10 typedef int (*FuncObject)(void *, void*);
|
|
11
|
|
12 typedef struct sym_table {
|
|
13 char *sym;
|
|
14 FuncObject address;
|
|
15 } SymTb, *SymTbPtr;
|
|
16
|
14
|
17 SymTbPtr symtb;
|
|
18 int symtb_index;
|
|
19
|
|
20 void init(void);
|
105
|
21 void set_symbol(const char *sym, FuncObject addr);
|
|
22 void set_func(int id, FuncObject addr);
|
14
|
23 int get_fd(const char *sym);
|
105
|
24 FuncObject get_address(int fd);
|
14
|
25 };
|
|
26
|
|
27 #endif
|