mysql_com_server.h 1.3 KB

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