~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/handler/mysql_addons.cc

  • Committer: Joe Daly
  • Date: 2010-06-08 03:11:13 UTC
  • mto: This revision was merged to the branch mainline in revision 1614.
  • Revision ID: skinny.moey@gmail.com-20100608031113-wt8o9k2bbyawwazs
add missing guard in header

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
#include "mysql_addons.h"
42
42
#include "univ.i"
 
43
#include "drizzled/session.h"
 
44
 
 
45
/**
 
46
  Return the session id of a user session
 
47
  @param pointer to Session object
 
48
  @return session's id
 
49
*/
 
50
extern "C"
 
51
unsigned long session_get_thread_id(const void *ptr)
 
52
{
 
53
  const drizzled::Session *session= (const drizzled::Session *)ptr;
 
54
  return (unsigned long) session->getSessionId();
 
55
}
 
56