root/src/mysql/typelib.h @ 9

Revision 1, 1.3 kB (checked in by jinshiro, 17 years ago)
Line 
1/* Copyright (C) 2000 MySQL AB
2
3   This program is free software; you can redistribute it and/or modify
4   it under the terms of the GNU General Public License as published by
5   the Free Software Foundation; either version 2 of the License, or
6   (at your option) any later version.
7
8   This program is distributed in the hope that it will be useful,
9   but WITHOUT ANY WARRANTY; without even the implied warranty of
10   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11   GNU General Public License for more details.
12
13   You should have received a copy of the GNU General Public License
14   along with this program; if not, write to the Free Software
15   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
16
17
18#ifndef _typelib_h
19#define _typelib_h
20
21typedef struct st_typelib {     /* Different types saved here */
22  unsigned int count;           /* How many types */
23  const char *name;             /* Name of typelib */
24  const char **type_names;
25  unsigned int *type_lengths;
26} TYPELIB;
27
28extern int find_type(char *x,TYPELIB *typelib,unsigned int full_name);
29extern void make_type(char *to,unsigned int nr,TYPELIB *typelib);
30extern const char *get_type(TYPELIB *typelib,unsigned int nr);
31
32extern TYPELIB sql_protocol_typelib;
33
34#endif /* _typelib_h */
Note: See TracBrowser for help on using the browser.