~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

  • Committer: Brian Aker
  • Date: 2009-04-07 20:09:30 UTC
  • mfrom: (971.1.17 mordred)
  • Revision ID: brian@gaz-20090407200930-27jkul7lkwkjs2to
Merge from Monty

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>
121
121
  */
122
122
  uint32_t slot;
123
123
 
124
 
  StorageEngine(const std::string &name_arg,
 
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 getName() const { return name; }
156
156
 
157
157
  /*
158
158
    StorageEngine methods:
237
237
plugin_ref ha_lock_engine(Session *session, StorageEngine *engine);
238
238
handler *get_new_handler(TABLE_SHARE *share, MEM_ROOT *alloc,
239
239
                         StorageEngine *db_type);
240
 
const char *ha_resolve_storage_engine_name(const StorageEngine *db_type);
241
 
LEX_STRING *ha_storage_engine_name(const StorageEngine *engine);
 
240
const std::string ha_resolve_storage_engine_name(const StorageEngine *db_type);
242
241
 
243
 
#endif /* DRIZZLED_HANDLERTON_H */
 
242
#endif /* DRIZZLED_PLUGIN_STORAGE_ENGINE_H */