00001 /* 00002 * HT Editor 00003 * vxd.h 00004 * 00005 * Copyright (C) 1999-2002 Stefan Weyergraf (stefan@weyergraf.de) 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License version 2 as 00009 * published by the Free Software Foundation. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 */ 00020 00021 #ifndef __VXD_H_ 00022 #define __VXD_H_ 00023 00024 struct vxd_service_desc { 00025 int key; 00026 char *name; 00027 }; 00028 00029 struct vxd_t { 00030 char *name; 00031 vxd_service_desc *services; 00032 }; 00033 00034 struct vxd_desc { 00035 int key; 00036 vxd_t vxd; 00037 }; 00038 00039 extern vxd_desc vxds[]; 00040 00041 vxd_t *find_vxd(vxd_desc *table, int key); 00042 char *find_vxd_service(vxd_service_desc *table, int key); 00043 00044 #endif /* __VXD_H_ */ 00045