Drizzled Public API Documentation

state.h
Go to the documentation of this file.
00001 /*
00002  * Drizzle Client & Protocol Library
00003  *
00004  * Copyright (C) 2008 Eric Day (eday@oddments.org)
00005  * All rights reserved.
00006  *
00007  * Redistribution and use in source and binary forms, with or without
00008  * modification, are permitted provided that the following conditions are
00009  * met:
00010  *
00011  *     * Redistributions of source code must retain the above copyright
00012  * notice, this list of conditions and the following disclaimer.
00013  *
00014  *     * Redistributions in binary form must reproduce the above
00015  * copyright notice, this list of conditions and the following disclaimer
00016  * in the documentation and/or other materials provided with the
00017  * distribution.
00018  *
00019  *     * The names of its contributors may not be used to endorse or
00020  * promote products derived from this software without specific prior
00021  * written permission.
00022  *
00023  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00024  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00025  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00026  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00027  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00028  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00029  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00030  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00031  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00032  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00033  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00034  *
00035  */
00036 
00042 #ifndef __DRIZZLE_STATE_H
00043 #define __DRIZZLE_STATE_H
00044 
00045 #ifdef __cplusplus
00046 extern "C" {
00047 #endif
00048 
00065 drizzle_return_t drizzle_state_loop(drizzle_con_st *con);
00066 
00067 /* Functions in state.c */
00068 drizzle_return_t drizzle_state_packet_read(drizzle_con_st *con);
00069 
00070 /* Functions in conn.c */
00071 drizzle_return_t drizzle_state_addrinfo(drizzle_con_st *con);
00072 drizzle_return_t drizzle_state_connect(drizzle_con_st *con);
00073 drizzle_return_t drizzle_state_connecting(drizzle_con_st *con);
00074 drizzle_return_t drizzle_state_read(drizzle_con_st *con);
00075 drizzle_return_t drizzle_state_write(drizzle_con_st *con);
00076 drizzle_return_t drizzle_state_listen(drizzle_con_st *con);
00077 
00078 /* Functions in handshake.c */
00079 drizzle_return_t drizzle_state_handshake_server_read(drizzle_con_st *con);
00080 drizzle_return_t drizzle_state_handshake_server_write(drizzle_con_st *con);
00081 drizzle_return_t drizzle_state_handshake_client_read(drizzle_con_st *con);
00082 drizzle_return_t drizzle_state_handshake_client_write(drizzle_con_st *con);
00083 drizzle_return_t drizzle_state_handshake_result_read(drizzle_con_st *con);
00084 
00085 /* Functions in command.c */
00086 drizzle_return_t drizzle_state_command_read(drizzle_con_st *con);
00087 drizzle_return_t drizzle_state_command_write(drizzle_con_st *con);
00088 
00089 /* Functions in result.c */
00090 drizzle_return_t drizzle_state_result_read(drizzle_con_st *con);
00091 drizzle_return_t drizzle_state_result_write(drizzle_con_st *con);
00092 
00093 /* Functions in column.c */
00094 drizzle_return_t drizzle_state_column_read(drizzle_con_st *con);
00095 drizzle_return_t drizzle_state_column_write(drizzle_con_st *con);
00096 
00097 /* Functions in row.c */
00098 drizzle_return_t drizzle_state_row_read(drizzle_con_st *con);
00099 drizzle_return_t drizzle_state_row_write(drizzle_con_st *con);
00100 
00101 /* Functions in field.c */
00102 drizzle_return_t drizzle_state_field_read(drizzle_con_st *con);
00103 drizzle_return_t drizzle_state_field_write(drizzle_con_st *con);
00104 
00107 #ifdef __cplusplus
00108 }
00109 #endif
00110 
00111 #endif /* __DRIZZLE_STATE_H */