~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/my_handler.h

  • Committer: Daniel Nichter
  • Date: 2011-10-23 16:01:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2448.
  • Revision ID: daniel@percona.com-20111023160137-7ac3blgz8z4tf8za
Add Administration Getting Started and Logging.  Capitalize SQL clause keywords.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
   You should have received a copy of the GNU Library General Public
14
14
   License along with this library; if not, write to the Free
15
 
   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16
 
   MA 02111-1307, USA */
17
 
 
18
 
#ifndef _my_handler_h
19
 
#define _my_handler_h
20
 
 
21
 
#include <mystrings/m_ctype.h>
22
 
#include <storage/myisam/myisampack.h>
23
 
#ifdef  __cplusplus
24
 
extern "C" {
25
 
#endif
 
15
   Software Foundation, Inc., 51 Franklin Place - Suite 330, Boston,
 
16
   MA 02110-1301, USA */
 
17
 
 
18
#pragma once
 
19
 
 
20
#include <drizzled/charset.h>
 
21
#include <plugin/myisam/myisampack.h>
26
22
 
27
23
/*
28
24
  There is a hard limit for the maximum number of keys as there are only
48
44
 
49
45
typedef struct st_HA_KEYSEG             /* Key-portion */
50
46
{
51
 
  const CHARSET_INFO *charset;
 
47
  const drizzled::charset_info_st *charset;
52
48
  uint32_t start;                               /* Start of key in record */
53
49
  uint32_t null_pos;                    /* position to NULL indicator */
54
50
  uint16_t bit_pos;                       /* Position to bit part */
107
103
#define clr_rec_bits(bit_ptr, bit_ofs, bit_len) \
108
104
  set_rec_bits(0, bit_ptr, bit_ofs, bit_len)
109
105
 
110
 
extern int ha_compare_text(const CHARSET_INFO * const, unsigned char *, uint, unsigned char *, uint, bool, bool);
 
106
extern int ha_compare_text(const drizzled::charset_info_st * const, unsigned char *, uint, unsigned char *, uint, bool, bool);
111
107
 
112
108
extern HA_KEYSEG *ha_find_null(HA_KEYSEG *keyseg, unsigned char *a);
113
109
void my_handler_error_register(void);
114
 
void my_handler_error_unregister(void);
115
110
extern int ha_key_cmp(HA_KEYSEG *keyseg, unsigned char *a,unsigned char *b,
116
111
                      uint32_t key_length,uint32_t nextflag,uint32_t *diff_length);
117
112
 
121
116
  this amount of bytes.
122
117
*/
123
118
#define portable_sizeof_char_ptr 8
124
 
#ifdef  __cplusplus
125
 
}
126
 
#endif
127
119
 
128
 
#endif /* _my_handler_h */