~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/state.h

  • Committer: Monty Taylor
  • Date: 2010-08-12 20:27:32 UTC
  • mto: (1720.1.5 build)
  • mto: This revision was merged to the branch mainline in revision 1722.
  • Revision ID: mordred@inaugust.com-20100812202732-9kzchbkvkyki4n3u
Merged libdrizzle directly into tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Drizzle Client & Protocol Library
 
3
 *
 
4
 * Copyright (C) 2008 Eric Day (eday@oddments.org)
 
5
 * All rights reserved.
 
6
 *
 
7
 * Use and distribution licensed under the BSD license.  See
 
8
 * the COPYING file in this directory for full text.
 
9
 */
 
10
 
 
11
/**
 
12
 * @file
 
13
 * @brief State Machine Declarations
 
14
 */
 
15
 
 
16
#ifndef __DRIZZLE_STATE_H
 
17
#define __DRIZZLE_STATE_H
 
18
 
 
19
#ifdef __cplusplus
 
20
extern "C" {
 
21
#endif
 
22
 
 
23
/**
 
24
 * @addtogroup drizzle_state State Machine Declarations
 
25
 *
 
26
 * These functions are used in the protocol parsing state machine. Not all
 
27
 * functions are defined in state.c, they are in the most appropriate source
 
28
 * file (for example, handshake.c for drizzle_state_handshake_server_read).
 
29
 * @{
 
30
 */
 
31
 
 
32
/**
 
33
 * Main state loop for connections.
 
34
 *
 
35
 * @param[in] con Connection structure previously initialized with
 
36
 *  drizzle_con_create(), drizzle_con_clone(), or related functions.
 
37
 * @return Standard drizzle return value.
 
38
 */
 
39
drizzle_return_t drizzle_state_loop(drizzle_con_st *con);
 
40
 
 
41
/* Functions in state.c */
 
42
drizzle_return_t drizzle_state_packet_read(drizzle_con_st *con);
 
43
 
 
44
/* Functions in conn.c */
 
45
drizzle_return_t drizzle_state_addrinfo(drizzle_con_st *con);
 
46
drizzle_return_t drizzle_state_connect(drizzle_con_st *con);
 
47
drizzle_return_t drizzle_state_connecting(drizzle_con_st *con);
 
48
drizzle_return_t drizzle_state_read(drizzle_con_st *con);
 
49
drizzle_return_t drizzle_state_write(drizzle_con_st *con);
 
50
drizzle_return_t drizzle_state_listen(drizzle_con_st *con);
 
51
 
 
52
/* Functions in handshake.c */
 
53
drizzle_return_t drizzle_state_handshake_server_read(drizzle_con_st *con);
 
54
drizzle_return_t drizzle_state_handshake_server_write(drizzle_con_st *con);
 
55
drizzle_return_t drizzle_state_handshake_client_read(drizzle_con_st *con);
 
56
drizzle_return_t drizzle_state_handshake_client_write(drizzle_con_st *con);
 
57
drizzle_return_t drizzle_state_handshake_result_read(drizzle_con_st *con);
 
58
 
 
59
/* Functions in command.c */
 
60
drizzle_return_t drizzle_state_command_read(drizzle_con_st *con);
 
61
drizzle_return_t drizzle_state_command_write(drizzle_con_st *con);
 
62
 
 
63
/* Functions in result.c */
 
64
drizzle_return_t drizzle_state_result_read(drizzle_con_st *con);
 
65
drizzle_return_t drizzle_state_result_write(drizzle_con_st *con);
 
66
 
 
67
/* Functions in column.c */
 
68
drizzle_return_t drizzle_state_column_read(drizzle_con_st *con);
 
69
drizzle_return_t drizzle_state_column_write(drizzle_con_st *con);
 
70
 
 
71
/* Functions in row.c */
 
72
drizzle_return_t drizzle_state_row_read(drizzle_con_st *con);
 
73
drizzle_return_t drizzle_state_row_write(drizzle_con_st *con);
 
74
 
 
75
/* Functions in field.c */
 
76
drizzle_return_t drizzle_state_field_read(drizzle_con_st *con);
 
77
drizzle_return_t drizzle_state_field_write(drizzle_con_st *con);
 
78
 
 
79
/** @} */
 
80
 
 
81
#ifdef __cplusplus
 
82
}
 
83
#endif
 
84
 
 
85
#endif /* __DRIZZLE_STATE_H */