Eneboo - Documentación para desarrolladores
|
00001 /* Copyright (C) 2000 MySQL AB 00002 00003 This program is free software; you can redistribute it and/or modify 00004 it under the terms of the GNU General Public License as published by 00005 the Free Software Foundation; either version 2 of the License, or 00006 (at your option) any later version. 00007 00008 This program is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 GNU General Public License for more details. 00012 00013 You should have received a copy of the GNU General Public License 00014 along with this program; if not, write to the Free Software 00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ 00016 00017 00018 #ifndef _typelib_h 00019 #define _typelib_h 00020 00021 typedef struct st_typelib { /* Different types saved here */ 00022 unsigned int count; /* How many types */ 00023 const char *name; /* Name of typelib */ 00024 const char **type_names; 00025 unsigned int *type_lengths; 00026 } TYPELIB; 00027 00028 extern int find_type(char *x,TYPELIB *typelib,unsigned int full_name); 00029 extern void make_type(char *to,unsigned int nr,TYPELIB *typelib); 00030 extern const char *get_type(TYPELIB *typelib,unsigned int nr); 00031 00032 extern TYPELIB sql_protocol_typelib; 00033 00034 #endif /* _typelib_h */