mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 23:34:34 +01:00
67da87d82e
into ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-5.1-marvel mysql-test/t/sp.test: Auto merged mysys/typelib.c: Auto merged sql/event_data_objects.cc: Auto merged sql/event_db_repository.cc: Auto merged sql/event_queue.cc: Auto merged sql/ha_ndbcluster.cc: Auto merged sql/item_func.h: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/set_var.cc: Auto merged sql/sp.cc: Auto merged sql/sp_head.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_prepare.cc: Auto merged sql/sql_select.cc: Auto merged sql/sql_view.cc: Auto merged sql/strfunc.cc: Auto merged sql/table.cc: Auto merged include/typelib.h: Merged from 5.1 main tree. mysql-test/r/sp.result: Merged from 5.1 main tree.
38 lines
1.4 KiB
C
38 lines
1.4 KiB
C
/* Copyright (C) 2000 MySQL AB
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; version 2 of the License.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
|
|
|
|
#ifndef _typelib_h
|
|
#define _typelib_h
|
|
|
|
#include "my_alloc.h"
|
|
|
|
typedef struct st_typelib { /* Different types saved here */
|
|
unsigned int count; /* How many types */
|
|
const char *name; /* Name of typelib */
|
|
const char **type_names;
|
|
unsigned int *type_lengths;
|
|
} TYPELIB;
|
|
|
|
extern int find_type_or_exit(const char *x, TYPELIB *typelib,
|
|
const char *option);
|
|
extern int find_type(char *x, const TYPELIB *typelib, unsigned int full_name);
|
|
extern void make_type(char *to,unsigned int nr,TYPELIB *typelib);
|
|
extern const char *get_type(TYPELIB *typelib,unsigned int nr);
|
|
extern TYPELIB *copy_typelib(MEM_ROOT *root, TYPELIB *from);
|
|
|
|
extern TYPELIB sql_protocol_typelib;
|
|
|
|
#endif /* _typelib_h */
|