sip_msg_clone.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * $Id$
  3. *
  4. * Copyright (C) 2009 iptelorg GmbH
  5. *
  6. * Permission to use, copy, modify, and distribute this software for any
  7. * purpose with or without fee is hereby granted, provided that the above
  8. * copyright notice and this permission notice appear in all copies.
  9. *
  10. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  11. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  12. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  13. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  14. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  15. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  16. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. /*
  19. * /home/andrei/sr.git/sip_msg_clone.h
  20. */
  21. /*
  22. * History:
  23. * --------
  24. * 2009-07-22 initial version (andrei)
  25. */
  26. #ifndef __sip_msg_clone_h
  27. #define __sip_msg_clone_h
  28. #include "parser/msg_parser.h"
  29. struct sip_msg* sip_msg_shm_clone( struct sip_msg *org_msg,
  30. int *sip_msg_len,
  31. int clone_lumps);
  32. int msg_lump_cloner(struct sip_msg *pkg_msg,
  33. struct lump** add_rm,
  34. struct lump** body_lumps,
  35. struct lump_rpl** reply_lump);
  36. #endif /*__sip_msg_clone_h*/
  37. /* vi: set ts=4 sw=4 tw=79:ai:cindent: */