~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to innobase/include/usr0sess.ic

  • Committer: monty at mysql
  • Date: 2001-02-17 12:19:19 UTC
  • mto: (554.1.1)
  • mto: This revision was merged to the branch mainline in revision 556.
  • Revision ID: sp1r-monty@donna.mysql.com-20010217121919-07904
Added Innobase to source distribution

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************
 
2
Sessions
 
3
 
 
4
(c) 1996 Innobase Oy
 
5
 
 
6
Created 6/25/1996 Heikki Tuuri
 
7
*******************************************************/
 
8
 
 
9
/***************************************************************************
 
10
Sets the message type of a message from the client. */
 
11
UNIV_INLINE
 
12
void
 
13
sess_cli_msg_set_type(
 
14
/*==================*/
 
15
        byte*   str,    /* in: message string */
 
16
        ulint   type)   /* in: message type */
 
17
{
 
18
        mach_write_to_4(str + SESS_CLI_MSG_TYPE, type);
 
19
}
 
20
 
 
21
/***************************************************************************
 
22
Gets the message type of a message from the server. */
 
23
UNIV_INLINE
 
24
ulint
 
25
sess_srv_msg_get_type(
 
26
/*==================*/
 
27
                        /* out: message type */
 
28
        byte*   str)    /* in: message string */
 
29
{
 
30
        return(mach_read_from_4(str + SESS_SRV_MSG_TYPE));
 
31
}