ip_helper_winphone8.c 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. */
  18. #include <pj/config.h>
  19. #include <pj/ip_helper.h>
  20. #include <pj/assert.h>
  21. #include <pj/errno.h>
  22. #include <pj/string.h>
  23. /*
  24. * Enumerate the local IP interface currently active in the host.
  25. */
  26. PJ_DEF(pj_status_t) pj_enum_ip_interface(int af,
  27. unsigned *p_cnt,
  28. pj_sockaddr ifs[])
  29. {
  30. PJ_UNUSED_ARG(af);
  31. PJ_UNUSED_ARG(ifs);
  32. PJ_ASSERT_RETURN(p_cnt, PJ_EINVAL);
  33. *p_cnt = 0;
  34. return PJ_ENOTSUP;
  35. }
  36. /*
  37. * Enumerate the local IP interface currently active in the host.
  38. */
  39. PJ_DEF(pj_status_t) pj_enum_ip_interface2( const pj_enum_ip_option *opt,
  40. unsigned *p_cnt,
  41. pj_sockaddr ifs[])
  42. {
  43. PJ_UNUSED_ARG(opt);
  44. PJ_UNUSED_ARG(ifs);
  45. PJ_ASSERT_RETURN(p_cnt, PJ_EINVAL);
  46. *p_cnt = 0;
  47. return PJ_ENOTSUP;
  48. }
  49. /*
  50. * Enumerate the IP routing table for this host.
  51. */
  52. PJ_DEF(pj_status_t) pj_enum_ip_route(unsigned *p_cnt,
  53. pj_ip_route_entry routes[])
  54. {
  55. PJ_UNUSED_ARG(routes);
  56. PJ_ASSERT_RETURN(p_cnt, PJ_EINVAL);
  57. *p_cnt = 0;
  58. return PJ_ENOTSUP;
  59. }