~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler_structs.h

  • Committer: Mark Atwood
  • Date: 2010-06-24 03:15:21 UTC
  • mto: (1637.2.4 build)
  • mto: This revision was merged to the branch mainline in revision 1639.
  • Revision ID: me@mark.atwood.name-20100624031521-gafmppfbf5afm68w
new syslog module, with plugins for query log, error message, and SYSLOG() function

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
32
32
#endif
33
33
 
34
34
#include <drizzled/base.h>
 
35
#include <drizzled/structs.h>
35
36
#include <drizzled/definitions.h>
36
37
#include <drizzled/lex_string.h>
37
 
#include <drizzled/structs.h>
 
38
#include "drizzled/global_charset_info.h"
38
39
 
39
40
namespace drizzled
40
41
{
41
42
 
42
 
struct charset_info_st;
 
43
typedef struct st_key_cache KEY_CACHE;
 
44
 
43
45
 
44
46
namespace plugin
45
47
{
48
50
 
49
51
typedef struct st_ha_create_information
50
52
{
51
 
  const charset_info_st *table_charset, *default_table_charset;
 
53
  const CHARSET_INFO *table_charset, *default_table_charset;
52
54
  const char *alias;
53
55
  uint64_t auto_increment_value;
54
56
  uint32_t table_options;
55
57
  uint32_t used_fields;
 
58
  enum row_type row_type;
56
59
  plugin::StorageEngine *db_type;
57
60
  bool table_existed;                   /* 1 in create if table existed */
58
 
 
59
 
  st_ha_create_information() :
60
 
    table_charset(0),
61
 
    default_table_charset(0),
62
 
    alias(0),
63
 
    auto_increment_value(0),
64
 
    table_options(0),
65
 
    used_fields(0),
66
 
    db_type(0),
67
 
    table_existed(0)
68
 
  { }
69
61
} HA_CREATE_INFO;
70
62
 
71
63
typedef struct st_ha_alter_information
77
69
  uint32_t index_add_count;
78
70
  uint32_t *index_add_buffer;
79
71
  void *data;
80
 
 
81
 
  st_ha_alter_information() :
82
 
    key_info_buffer(0),
83
 
    key_count(0),
84
 
    index_drop_count(0),
85
 
    index_drop_buffer(0),
86
 
    index_add_count(0),
87
 
    index_add_buffer(0),
88
 
    data(0)
89
 
  { }
90
 
 
91
72
} HA_ALTER_INFO;
92
73
 
93
74
 
94
 
typedef struct key_create_information_st
 
75
typedef struct st_key_create_information
95
76
{
96
77
  enum ha_key_alg algorithm;
97
78
  uint32_t block_size;
137
118
  uint32_t (*next) (range_seq_t seq, KEY_MULTI_RANGE *range);
138
119
} RANGE_SEQ_IF;
139
120
 
 
121
/*
 
122
  This is a buffer area that the handler can use to store rows.
 
123
  'end_of_used_area' should be kept updated after calls to
 
124
  read-functions so that other parts of the code can use the
 
125
  remaining area (until next read calls is issued).
 
126
*/
 
127
 
 
128
typedef struct st_handler_buffer
 
129
{
 
130
  unsigned char *buffer;         /* Buffer one can start using */
 
131
  unsigned char *buffer_end;     /* End of buffer */
 
132
  unsigned char *end_of_used_area;     /* End of area that was used by handler */
 
133
} HANDLER_BUFFER;
 
134
 
140
135
} /* namespace drizzled */
141
136
 
142
137
#endif /* DRIZZLED_HANDLER_STRUCTS_H */