~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

  • Committer: Monty Taylor
  • Date: 2009-04-07 18:28:34 UTC
  • mto: (992.1.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 978.
  • Revision ID: mordred@inaugust.com-20090407182834-jkbtk43t4xv909v5
Slurp around strings rather than char* for storage engine name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
126
                size_t savepoint_offset_arg= 0,
127
127
                bool support_2pc= false);
152
152
  void enable() { enabled= true; }
153
153
  void disable() { enabled= false; }
154
154
 
155
 
  std::string get_name() const { 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);
 
240
const std::string ha_resolve_storage_engine_name(const StorageEngine *db_type);
241
241
 
242
242
#endif /* DRIZZLED_PLUGIN_STORAGE_ENGINE_H */