| 1 | /* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| 2 | |
| 3 | This program is free software; you can redistribute it and/or modify |
| 4 | it under the terms of the GNU General Public License as published by |
| 5 | the Free Software Foundation; version 2 of the License. |
| 6 | |
| 7 | This program is distributed in the hope that it will be useful, |
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | GNU General Public License for more details. |
| 11 | |
| 12 | You should have received a copy of the GNU General Public License |
| 13 | along with this program; if not, write to the Free Software |
| 14 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
| 15 | |
| 16 | /* |
| 17 | Definitions private to the server, |
| 18 | used in the networking layer to notify specific events. |
| 19 | */ |
| 20 | |
| 21 | #ifndef _mysql_com_server_h |
| 22 | #define _mysql_com_server_h |
| 23 | |
| 24 | struct st_net_server; |
| 25 | |
| 26 | typedef void (*) |
| 27 | (struct st_net *net, void *user_data, size_t count); |
| 28 | |
| 29 | typedef void (*) |
| 30 | (struct st_net *net, void *user_data, size_t count, my_bool rc); |
| 31 | |
| 32 | struct st_net_server |
| 33 | { |
| 34 | before_header_callback_fn ; |
| 35 | after_header_callback_fn ; |
| 36 | void *m_user_data; |
| 37 | }; |
| 38 | |
| 39 | typedef struct st_net_server NET_SERVER; |
| 40 | |
| 41 | #endif |
| 42 | |