You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.2 KiB

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