view include/TaskManager/SymTable.h @ 350:628cb162be88 draft

add tasts.xml renderer.xml
author admin@mcbk.cr.ie.u-ryukyu.ac.jp
date Fri, 10 Jul 2009 16:41:20 +0900
parents 3e331f7576a1
children
line wrap: on
line source

#ifndef INCLUDED_SYMTABLE
#define INCLUDED_SYMTABLE

#define SYM_MAX_SIZE 64

class SymTable {
public:
    ~SymTable(void);

    typedef int (*FuncObject)(void *, void*);

    typedef struct sym_table {
	 char *sym;
	 FuncObject address;
    } SymTb, *SymTbPtr;

    SymTbPtr symtb;
    int symtb_index;

    void init(void);
    void set_symbol(const char *sym, FuncObject addr);
    void set_func(int id, FuncObject addr);
    int get_fd(const char *sym);
    FuncObject get_address(int fd);
};

#endif