1 /*****************************************************************************
2 
3 Copyright (c) 2010, 2013, Oracle and/or its affiliates. All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License, version 2.0,
7 as published by the Free Software Foundation.
8 
9 This program is also distributed with certain software (including
10 but not limited to OpenSSL) that is licensed under separate terms,
11 as designated in a particular file or component or in included license
12 documentation.  The authors of MySQL hereby grant you an additional
13 permission to link the program and your derivative works with the
14 separately licensed software that they have included with MySQL.
15 
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 GNU General Public License, version 2.0, for more details.
20 
21 You should have received a copy of the GNU General Public License along with
22 this program; if not, write to the Free Software Foundation, Inc.,
23 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
24 
25 *****************************************************************************/
26 
27 /**************************************************//**
28 @file include/dict0priv.h
29 Data dictionary private functions
30 
31 Created  Fri 2 Jul 2010 13:30:38 EST - Sunny Bains
32 *******************************************************/
33 
34 #ifndef dict0priv_h
35 #define dict0priv_h
36 
37 /**********************************************************************//**
38 Gets a table; loads it to the dictionary cache if necessary. A low-level
39 function. Note: Not to be called from outside dict0*c functions.
40 @return	table, NULL if not found */
41 UNIV_INLINE
42 dict_table_t*
43 dict_table_get_low(
44 /*===============*/
45 	const char*	table_name);		/*!< in: table name */
46 
47 /**********************************************************************//**
48 Checks if a table is in the dictionary cache.
49 @return	table, NULL if not found */
50 UNIV_INLINE
51 dict_table_t*
52 dict_table_check_if_in_cache_low(
53 /*=============================*/
54 	const char*	table_name);		/*!< in: table name */
55 
56 /**********************************************************************//**
57 Returns a table object based on table id.
58 @return	table, NULL if does not exist */
59 UNIV_INLINE
60 dict_table_t*
61 dict_table_open_on_id_low(
62 /*=====================*/
63 	table_id_t		table_id,	/*!< in: table id */
64 	dict_err_ignore_t	ignore_err);	/*!< in: errors to ignore
65 						when loading the table */
66 
67 #ifndef UNIV_NONINL
68 #include "dict0priv.ic"
69 #endif
70 
71 #endif /* dict0priv.h */
72