mysql_com_server.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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, version 2.0,
  4. as published by the Free Software Foundation.
  5. This program is also distributed with certain software (including
  6. but not limited to OpenSSL) that is licensed under separate terms,
  7. as designated in a particular file or component or in included license
  8. documentation. The authors of MySQL hereby grant you an additional
  9. permission to link the program and your derivative works with the
  10. separately licensed software that they have included with MySQL.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU General Public License, version 2.0, for more details.
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
  18. /*
  19. Definitions private to the server,
  20. used in the networking layer to notify specific events.
  21. */
  22. #ifndef _mysql_com_server_h
  23. #define _mysql_com_server_h
  24. struct st_net_server;
  25. typedef void (*before_header_callback_fn)
  26. (struct st_net *net, void *user_data, size_t count);
  27. typedef void (*after_header_callback_fn)
  28. (struct st_net *net, void *user_data, size_t count, my_bool rc);
  29. struct st_net_server
  30. {
  31. before_header_callback_fn m_before_header;
  32. after_header_callback_fn m_after_header;
  33. void *m_user_data;
  34. };
  35. typedef struct st_net_server NET_SERVER;
  36. #endif