annotate TaskManager/kernel/ppe/SymTable.h @ 391:492e60453124 draft

fix...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 07 Aug 2009 02:24:06 +0900
parents 0251d06467de
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
41ccd4b38184 *** empty log message ***
gongo
parents:
diff changeset
1 #ifndef INCLUDED_SYMTABLE
41ccd4b38184 *** empty log message ***
gongo
parents:
diff changeset
2 #define INCLUDED_SYMTABLE
41ccd4b38184 *** empty log message ***
gongo
parents:
diff changeset
3
41ccd4b38184 *** empty log message ***
gongo
parents:
diff changeset
4 #define SYM_MAX_SIZE 64
41ccd4b38184 *** empty log message ***
gongo
parents:
diff changeset
5
41ccd4b38184 *** empty log message ***
gongo
parents:
diff changeset
6 class SymTable {
41ccd4b38184 *** empty log message ***
gongo
parents:
diff changeset
7 public:
20
31a7ff27ee20 *** empty log message ***
gongo
parents: 14
diff changeset
8 ~SymTable(void);
31a7ff27ee20 *** empty log message ***
gongo
parents: 14
diff changeset
9
105
3e331f7576a1 *** empty log message ***
gongo
parents: 20
diff changeset
10 typedef int (*FuncObject)(void *, void*);
3e331f7576a1 *** empty log message ***
gongo
parents: 20
diff changeset
11
3e331f7576a1 *** empty log message ***
gongo
parents: 20
diff changeset
12 typedef struct sym_table {
3e331f7576a1 *** empty log message ***
gongo
parents: 20
diff changeset
13 char *sym;
3e331f7576a1 *** empty log message ***
gongo
parents: 20
diff changeset
14 FuncObject address;
3e331f7576a1 *** empty log message ***
gongo
parents: 20
diff changeset
15 } SymTb, *SymTbPtr;
3e331f7576a1 *** empty log message ***
gongo
parents: 20
diff changeset
16
14
41ccd4b38184 *** empty log message ***
gongo
parents:
diff changeset
17 SymTbPtr symtb;
41ccd4b38184 *** empty log message ***
gongo
parents:
diff changeset
18 int symtb_index;
41ccd4b38184 *** empty log message ***
gongo
parents:
diff changeset
19
41ccd4b38184 *** empty log message ***
gongo
parents:
diff changeset
20 void init(void);
105
3e331f7576a1 *** empty log message ***
gongo
parents: 20
diff changeset
21 void set_symbol(const char *sym, FuncObject addr);
3e331f7576a1 *** empty log message ***
gongo
parents: 20
diff changeset
22 void set_func(int id, FuncObject addr);
14
41ccd4b38184 *** empty log message ***
gongo
parents:
diff changeset
23 int get_fd(const char *sym);
105
3e331f7576a1 *** empty log message ***
gongo
parents: 20
diff changeset
24 FuncObject get_address(int fd);
14
41ccd4b38184 *** empty log message ***
gongo
parents:
diff changeset
25 };
41ccd4b38184 *** empty log message ***
gongo
parents:
diff changeset
26
41ccd4b38184 *** empty log message ***
gongo
parents:
diff changeset
27 #endif