~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/my_handler.h

  • Committer: Brian Aker
  • Date: 2010-12-08 22:35:56 UTC
  • mfrom: (1819.9.158 update-innobase)
  • Revision ID: brian@tangent.org-20101208223556-37mi4omqg7lkjzf3
Merge in Stewart's changes, 1.3 changes.

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
#ifndef PLUGIN_MYISAM_MY_HANDLER_H
 
19
#define PLUGIN_MYISAM_MY_HANDLER_H
 
20
 
 
21
#include "drizzled/charset_info.h"
 
22
#include <plugin/myisam/myisampack.h>
26
23
 
27
24
/*
28
25
  There is a hard limit for the maximum number of keys as there are only
48
45
 
49
46
typedef struct st_HA_KEYSEG             /* Key-portion */
50
47
{
51
 
  const CHARSET_INFO *charset;
 
48
  const drizzled::CHARSET_INFO *charset;
52
49
  uint32_t start;                               /* Start of key in record */
53
50
  uint32_t null_pos;                    /* position to NULL indicator */
54
51
  uint16_t bit_pos;                       /* Position to bit part */
107
104
#define clr_rec_bits(bit_ptr, bit_ofs, bit_len) \
108
105
  set_rec_bits(0, bit_ptr, bit_ofs, bit_len)
109
106
 
110
 
extern int ha_compare_text(const CHARSET_INFO * const, unsigned char *, uint, unsigned char *, uint, bool, bool);
 
107
extern int ha_compare_text(const drizzled::CHARSET_INFO * const, unsigned char *, uint, unsigned char *, uint, bool, bool);
111
108
 
112
109
extern HA_KEYSEG *ha_find_null(HA_KEYSEG *keyseg, unsigned char *a);
113
110
void my_handler_error_register(void);
114
 
void my_handler_error_unregister(void);
115
111
extern int ha_key_cmp(HA_KEYSEG *keyseg, unsigned char *a,unsigned char *b,
116
112
                      uint32_t key_length,uint32_t nextflag,uint32_t *diff_length);
117
113
 
121
117
  this amount of bytes.
122
118
*/
123
119
#define portable_sizeof_char_ptr 8
124
 
#ifdef  __cplusplus
125
 
}
126
 
#endif
127
120
 
128
 
#endif /* _my_handler_h */
 
121
#endif /* PLUGIN_MYISAM_MY_HANDLER_H */