check_nss.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* Test verification functions for NSS- and DNS-related data.
  2. Copyright (C) 2016-2019 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; if not, see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef SUPPORT_CHECK_NSS_H
  16. #define SUPPORT_CHECK_NSS_H
  17. #include <netdb.h>
  18. #include <sys/cdefs.h>
  19. __BEGIN_DECLS
  20. /* Compare the data structures against the expected values (which have
  21. to be formatted according to the support_format_* functions in
  22. <support/format_nss.h>). If there is a difference, a delayed test
  23. failure is recorded, and a diff is written to standard output. */
  24. void check_addrinfo (const char *query_description,
  25. struct addrinfo *, int ret, const char *expected);
  26. void check_dns_packet (const char *query_description,
  27. const unsigned char *, size_t, const char *expected);
  28. void check_hostent (const char *query_description,
  29. struct hostent *, const char *expected);
  30. void check_netent (const char *query_description,
  31. struct netent *, const char *expected);
  32. __END_DECLS
  33. #endif /* SUPPORT_CHECK_NSS_H */