1 #ifndef UNIREG_INCLUDED
2 #define UNIREG_INCLUDED
3 
4 /* Copyright (c) 2000, 2021, Oracle and/or its affiliates.
5 
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License, version 2.0,
8    as published by the Free Software Foundation.
9 
10    This program is also distributed with certain software (including
11    but not limited to OpenSSL) that is licensed under separate terms,
12    as designated in a particular file or component or in included license
13    documentation.  The authors of MySQL hereby grant you an additional
14    permission to link the program and your derivative works with the
15    separately licensed software that they have included with MySQL.
16 
17    This program is distributed in the hope that it will be useful,
18    but WITHOUT ANY WARRANTY; without even the implied warranty of
19    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20    GNU General Public License, version 2.0, for more details.
21 
22    You should have received a copy of the GNU General Public License
23    along with this program; if not, write to the Free Software Foundation,
24    51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
25 
26 
27 #include "my_global.h"                          /* ulonglong */
28 
29 /*  Extra functions used by unireg library */
30 
31 typedef struct st_ha_create_information HA_CREATE_INFO;
32 typedef struct st_key KEY;
33 class THD;
34 class Create_field;
35 class handler;
36 template <class T> class List;
37 
38 /* Include prototypes for unireg */
39 
40 bool mysql_create_frm(THD *thd, const char *file_name,
41                       const char *db, const char *table,
42 		      HA_CREATE_INFO *create_info,
43 		      List<Create_field> &create_field,
44 		      uint key_count,KEY *key_info,handler *db_type);
45 int rea_create_table(THD *thd, const char *path,
46                      const char *db, const char *table_name,
47                      HA_CREATE_INFO *create_info,
48   		     List<Create_field> &create_field,
49                      uint key_count,KEY *key_info,
50                      handler *file,
51                      bool no_ha_table);
52 #endif
53