~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Monty Taylor
  • Date: 2009-12-08 22:24:26 UTC
  • mto: (1241.9.9 out-of-tree)
  • mto: This revision was merged to the branch mainline in revision 1250.
  • Revision ID: mordred@inaugust.com-20091208222426-rtv7e9vrvw5g8h1s
Removed some casts- also removed a few c-interface functions and made them actual methods on session. Also made the ha_data private. (fancy that)

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
  return session->get_proc_info();
146
146
}
147
147
 
148
 
extern "C"
149
 
void **session_ha_data(const Session *session, const plugin::StorageEngine *engine)
150
 
{
151
 
  return (void **) &session->ha_data[engine->slot].ha_ptr;
 
148
void **Session::getEngineData(const plugin::StorageEngine *engine)
 
149
{
 
150
  return static_cast<void **>(&ha_data[engine->slot].ha_ptr);
 
151
}
 
152
 
 
153
Ha_trx_info *Session::getEngineInfo(const plugin::StorageEngine *engine,
 
154
                                    size_t index)
 
155
{
 
156
  return &ha_data[engine->getSlot()].ha_info[index];
152
157
}
153
158
 
154
159
extern "C"