/* $Id: mod_tbl.h,v 1.3 2004/03/21 10:13:11 jmuelmen Exp $ */ /* The module table maps module serial numbers onto board/channel no. * This file contains all the declarations you need to manipulate the * table. */ #ifndef __mod_tbl_inc #define __mod_tbl_inc #define MOD_NAME_LEN 64 #define BOARD_NAME_LEN 16 extern char board_name[BOARD_NAME_LEN]; struct mod_tbl_ent { char mod_name[MOD_NAME_LEN]; char board_name[BOARD_NAME_LEN]; int chan; }; struct mod_tbl_ent *mod_tbl_add (const char *name); struct mod_tbl_ent *mod_tbl_find (const char *name); void mod_tbl_set_board (struct mod_tbl_ent*, const char *); void mod_tbl_set_chan (struct mod_tbl_ent*, int); void mod_tbl_set_name (struct mod_tbl_ent*, const char *); const char *mod_tbl_get_name (const struct mod_tbl_ent *); const char *mod_tbl_get_board (const struct mod_tbl_ent *); int mod_tbl_get_chan (const struct mod_tbl_ent *); #endif /* __mod_tbl_inc */