domain_api.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Domain module internal API
  3. *
  4. * Copyright (C) 2002-2003 Juha Heinanen
  5. *
  6. * This file is part of sip-router, a free SIP server.
  7. *
  8. * sip-router is free software; you can redistribute it and/or modify it under
  9. * the terms of the GNU General Public License as published by the Free
  10. * Software Foundation; either version 2 of the License, or (at your option)
  11. * any later version
  12. *
  13. * sip-router is distributed in the hope that it will be useful, but WITHOUT
  14. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  15. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  16. * more details.
  17. *
  18. * You should have received a copy of the GNU General Public License along
  19. * with this program; if not, write to the Free Software Foundation, Inc.,
  20. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. */
  22. #include "domain_api.h"
  23. #include "../../dprint.h"
  24. #include "domain.h"
  25. int bind_domain(domain_api_t* api)
  26. {
  27. if (api == NULL) {
  28. ERR("Invalid parameter value\n");
  29. return -1;
  30. }
  31. api->is_domain_local = is_domain_local;
  32. return 0;
  33. }