MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MysqlUtilsWrapper.hpp
1 /*
2  Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; version 2 of the License.
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 /*
18  * MysqlUtilsWrapper.hpp
19  */
20 
21 #ifndef MysqlUtilsWrapper_hpp
22 #define MysqlUtilsWrapper_hpp
23 
24 // API to wrap
25 #include "CharsetMap.hpp"
26 #include "decimal_utils.hpp"
27 
29 
30 // ---------------------------------------------------------------------------
31 
32 // mapped by "com_mysql_ndbjtie_mysql_CharsetMap.h"
33 
34  static const char *
35  CharsetMap__getName
36  ( const CharsetMap & obj, int p0 )
37  {
38  return obj.getName(p0);
39  }
40 
41  static const char *
42  CharsetMap__getMysqlName
43  ( const CharsetMap & obj, int p0 )
44  {
45  return obj.getMysqlName(p0);
46  }
47 
48  static int
49  CharsetMap__getCharsetNumber
50  ( const CharsetMap & obj, const char * p0 )
51  {
52  return obj.getCharsetNumber(p0);
53  }
54 
55  static int
56  CharsetMap__getUTF8CharsetNumber
57  ( const CharsetMap & obj )
58  {
59  return obj.getUTF8CharsetNumber();
60  }
61 
62  static int
63  CharsetMap__getUTF16CharsetNumber
64  ( const CharsetMap & obj )
65  {
66  return obj.getUTF16CharsetNumber();
67  }
68 
69  static const bool *
70  CharsetMap__isMultibyte
71  ( const CharsetMap & obj, int p0 )
72  {
73  return obj.isMultibyte(p0);
74  }
75 
77  CharsetMap__recode
78  ( const CharsetMap & obj, int32_t * p0, int p1, int p2, const void * p3, void * p4 )
79  {
80  return obj.recode(p0, p1, p2, p3, p4);
81  }
82 
83 // ---------------------------------------------------------------------------
84 
85 // mapped by "com_mysql_ndbjtie_mysql_Utils.h"
86 
87  static int
88  decimal_str2bin
89  ( const char * p0, int p1, int p2, int p3, void * p4, int p5 )
90  {
91  return ::decimal_str2bin(p0, p1, p2, p3, p4, p5);
92  }
93 
94  static int
95  decimal_bin2str
96  ( const void * p0, int p1, int p2, int p3, char * p4, int p5 )
97  {
98  return ::decimal_bin2str(p0, p1, p2, p3, p4, p5);
99  }
100 
101 // ---------------------------------------------------------------------------
102 
103 };
104 
105 #endif // MysqlUtilsWrapper_hpp