~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2010-10-29 01:13:40 UTC
  • mto: (1890.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1891.
  • Revision ID: brian@tangent.org-20101029011340-y9ixm180v9daypqr
Remove warnings for c++

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
12
 
13
13
You should have received a copy of the GNU General Public License along with
14
 
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15
 
Place, Suite 330, Boston, MA 02111-1307 USA
 
14
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
 
15
St, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
*****************************************************************************/
18
18
 
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