my_user.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright (c) 2005-2007 MySQL AB
  2. Use is subject to license terms
  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. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program; if not, write to the Free Software
  12. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
  13. /*
  14. This is a header for libraries containing functions used in both server and
  15. only some of clients (but not in libmysql)...
  16. */
  17. #ifndef _my_user_h_
  18. #define _my_user_h_
  19. #include <my_global.h>
  20. C_MODE_START
  21. int parse_user(const char *user_id_str, size_t user_id_len,
  22. char *user_name_str, size_t *user_name_len,
  23. char *host_name_str, size_t *host_name_len);
  24. C_MODE_END
  25. #endif /* _my_user_h_ */