Eneboo - Documentación para desarrolladores
src/libmysql_std/include/typelib.h
Ir a la documentación de este archivo.
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; version 2 of the License.
00006 
00007    This program is distributed in the hope that it will be useful,
00008    but WITHOUT ANY WARRANTY; without even the implied warranty of
00009    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010    GNU General Public License for more details.
00011 
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software
00014    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
00015 
00016 
00017 #ifndef _typelib_h
00018 #define _typelib_h
00019 
00020 #include "my_alloc.h"
00021 
00022 typedef struct st_typelib {     /* Different types saved here */
00023   unsigned int count;           /* How many types */
00024   const char *name;             /* Name of typelib */
00025   const char **type_names;
00026   unsigned int *type_lengths;
00027 } TYPELIB;
00028 
00029 extern int find_type(char *x,TYPELIB *typelib,unsigned int full_name);
00030 extern void make_type(char *to,unsigned int nr,TYPELIB *typelib);
00031 extern const char *get_type(TYPELIB *typelib,unsigned int nr);
00032 extern TYPELIB *copy_typelib(MEM_ROOT *root, TYPELIB *from);
00033 
00034 extern TYPELIB sql_protocol_typelib;
00035 
00036 #endif /* _typelib_h */
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'