http.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * $Id$
  3. *
  4. * Copyright (C) 2005 iptelorg GmbH
  5. * Written by Jan Janak <[email protected]>
  6. *
  7. * This file is part of SER, a free SIP server.
  8. *
  9. * SER is free software; you can redistribute it and/or modify it under the
  10. * terms of the GNU General Public License as published by the Free Software
  11. * Foundation; either version 2 of the License, or (at your option) any later
  12. * version
  13. *
  14. * For a license to use the SER software under conditions other than those
  15. * described here, or to purchase support for this software, please contact
  16. * iptel.org by e-mail at the following addresses: [email protected]
  17. *
  18. * SER is distributed in the hope that it will be useful, but WITHOUT ANY
  19. * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  20. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  21. * details.
  22. *
  23. * You should have received a copy of the GNU General Public License along
  24. * with this program; if not, write to the Free Software Foundation, Inc., 59
  25. * Temple Place, Suite 330, Boston, MA 02111-1307 USA
  26. */
  27. #ifndef _XMLRPC_HTTP_H_
  28. #define _XMLRPC_HTTP_H_
  29. #include "../../parser/msg_parser.h"
  30. #ifdef XMLRPC_SYSTEM_MALLOC
  31. #include <stdlib.h>
  32. #define mxr_malloc malloc
  33. #define mxr_realloc realloc
  34. #define mxr_free free
  35. #else
  36. #include "../../mem/mem.h"
  37. #define mxr_malloc pkg_malloc
  38. #define mxr_realloc pkg_realloc
  39. #define mxr_free pkg_free
  40. #endif
  41. /*
  42. * Create a faked Via header field in HTTP requests
  43. */
  44. int create_via(sip_msg_t* msg, char* s1, char* s2);
  45. #endif