~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Brian Aker
  • Date: 2010-04-19 21:42:39 UTC
  • Revision ID: brian@gaz-20100419214239-p8zbi35l1cfpotvy
Updates to remove a fe bits of dead code around C support for plugins
written only in C.

Show diffs side-by-side

added added

removed removed

Lines of Context:
315
315
  m_internal_handler= NULL;
316
316
}
317
317
 
318
 
#if defined(__cplusplus)
319
 
extern "C" {
320
 
#endif
321
 
 
322
 
void *session_alloc(Session *session, unsigned int size)
323
 
{
324
 
  return session->alloc(size);
325
 
}
326
 
 
327
 
void *session_calloc(Session *session, unsigned int size)
328
 
{
329
 
  return session->calloc(size);
330
 
}
331
 
 
332
 
char *session_strdup(Session *session, const char *str)
333
 
{
334
 
  return session->strdup(str);
335
 
}
336
 
 
337
 
char *session_strmake(Session *session, const char *str, unsigned int size)
338
 
{
339
 
  return session->strmake(str, size);
340
 
}
341
 
 
342
 
void *session_memdup(Session *session, const void* str, unsigned int size)
343
 
{
344
 
  return session->memdup(str, size);
345
 
}
346
 
 
347
 
void session_get_xid(const Session *session, DRIZZLE_XID *xid)
348
 
{
349
 
  *xid = *(DRIZZLE_XID *) &session->transaction.xid_state.xid;
350
 
}
351
 
 
352
 
#if defined(__cplusplus)
353
 
}
354
 
#endif
 
318
void Session::get_xid(DRIZZLE_XID *xid)
 
319
{
 
320
  *xid = *(DRIZZLE_XID *) &transaction.xid_state.xid;
 
321
}
 
322
 
355
323
 
356
324
/* Do operations that may take a long time */
357
325