~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

Merged plugin-registration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_HANDLERTON_H
21
 
#define DRIZZLED_HANDLERTON_H
 
20
#ifndef DRIZZLED_PLUGIN_STORAGE_ENGINE_H
 
21
#define DRIZZLED_PLUGIN_STORAGE_ENGINE_H
22
22
 
23
23
 
24
24
#include <drizzled/definitions.h>
123
123
 
124
124
  StorageEngine(const std::string &name_arg,
125
125
                const std::bitset<HTON_BIT_SIZE> &flags_arg= HTON_NO_FLAGS,
126
 
                size_t savepoint_offset_arg= 0,                         
 
126
                size_t savepoint_offset_arg= 0,
127
127
                bool support_2pc= false);
128
128
 
129
129
  virtual ~StorageEngine();
152
152
  void enable() { enabled= true; }
153
153
  void disable() { enabled= false; }
154
154
 
155
 
  std::string get_name() { return name; }
 
155
  std::string get_name() const { return name; }
156
156
 
157
157
  /*
158
158
    StorageEngine methods:
238
238
handler *get_new_handler(TABLE_SHARE *share, MEM_ROOT *alloc,
239
239
                         StorageEngine *db_type);
240
240
const char *ha_resolve_storage_engine_name(const StorageEngine *db_type);
241
 
LEX_STRING *ha_storage_engine_name(const StorageEngine *engine);
242
241
 
243
 
#endif /* DRIZZLED_HANDLERTON_H */
 
242
#endif /* DRIZZLED_PLUGIN_STORAGE_ENGINE_H */