drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
usr0sess.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (C) 1996, 2009, Innobase Oy. All Rights Reserved.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free Software
7Foundation; version 2 of the License.
8
9This program is distributed in the hope that it will be useful, but WITHOUT
10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License along with
14this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15St, Fifth Floor, Boston, MA 02110-1301 USA
16
17*****************************************************************************/
18
19/**************************************************/
25
26#pragma once
27#ifndef usr0sess_h
28#define usr0sess_h
29
30#include "univ.i"
31#include "ut0byte.h"
32#include "trx0types.h"
33#include "srv0srv.h"
34#include "trx0types.h"
35#include "usr0types.h"
36#include "que0types.h"
37#include "data0data.h"
38#include "rem0rec.h"
39
40/*********************************************************************/
43UNIV_INTERN
44sess_t*
45sess_open(void);
46/*============*/
47/*********************************************************************/
49UNIV_INTERN
50void
52/*=======*/
53 sess_t* sess); /* in, own: session object */
54
55/* The session handle. All fields are protected by the kernel mutex */
57 ulint state;
58 trx_t* trx;
66};
67
68/* Session states */
69#define SESS_ACTIVE 1
70#define SESS_ERROR 2 /* session contains an error message
71 which has not yet been communicated
72 to the client */
73#ifndef UNIV_NONINL
74#include "usr0sess.ic"
75#endif
76
77#endif
ulint state
Definition usr0sess.h:57
trx_t * trx
Definition usr0sess.h:58
UNIV_INTERN sess_t * sess_open(void)
Definition usr0sess.cc:39
UNIV_INTERN void sess_close(sess_t *sess)
Definition usr0sess.cc:61
#define UT_LIST_BASE_NODE_T(TYPE)
Definition ut0lst.h:54