Drizzled Public API Documentation

usr0sess.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (C) 1996, 2009, Innobase Oy. 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., 51 Franklin
15 St, Fifth Floor, Boston, MA 02110-1301 USA
16 
17 *****************************************************************************/
18 
19 /**************************************************/
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 /*********************************************************************/
43 UNIV_INTERN
44 sess_t*
45 sess_open(void);
46 /*============*/
47 /*********************************************************************/
49 UNIV_INTERN
50 void
52 /*=======*/
53  sess_t* sess); /* in, own: session object */
54 
55 /* The session handle. All fields are protected by the kernel mutex */
56 struct sess_struct{
57  ulint state;
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
UNIV_INTERN void sess_close(sess_t *sess)
Definition: usr0sess.cc:61
typedef UT_LIST_BASE_NODE_T(mutex_t) ut_list_base_node_t
trx_t * trx
Definition: usr0sess.h:58
UNIV_INTERN sess_t * sess_open(void)
Definition: usr0sess.cc:39