InnoDB Plugin  1.0
usr0sess.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (c) 1996, 2009, Oracle and/or its affiliates. All Rights Reserved.
4 
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free Software
7 Foundation; version 2 of the License.
8 
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12 
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.,
15 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
16 
17 *****************************************************************************/
18 
19 /**************************************************/
26 #ifndef usr0sess_h
27 #define usr0sess_h
28 
29 #include "univ.i"
30 #include "ut0byte.h"
31 #include "trx0types.h"
32 #include "srv0srv.h"
33 #include "trx0types.h"
34 #include "usr0types.h"
35 #include "que0types.h"
36 #include "data0data.h"
37 #include "rem0rec.h"
38 
39 /*********************************************************************/
42 UNIV_INTERN
43 sess_t*
44 sess_open(void);
45 /*============*/
46 /*********************************************************************/
48 UNIV_INTERN
49 void
51 /*=======*/
52  sess_t* sess); /* in, own: session object */
53 
54 /* The session handle. This data structure is only used by purge and is
55 not really necessary. We should get rid of it. */
56 struct sess_t{
57  ulint state;
63  UT_LIST_BASE_NODE_T(que_t)
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