2
* Drizzle Client & Protocol Library
4
* Copyright (C) 2008 Eric Day (eday@oddments.org)
7
* Use and distribution licensed under the BSD license. See
8
* the COPYING file in this directory for full text.
13
* @brief State Machine Declarations
16
#ifndef __DRIZZLE_STATE_H
17
#define __DRIZZLE_STATE_H
24
* @addtogroup drizzle_state State Machine Declarations
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).
33
* Main state loop for connections.
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.
39
drizzle_return_t drizzle_state_loop(drizzle_con_st *con);
41
/* Functions in state.c */
42
drizzle_return_t drizzle_state_packet_read(drizzle_con_st *con);
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);
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);
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);
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);
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);
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);
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);
85
#endif /* __DRIZZLE_STATE_H */