sdp_cloner.h

00001 /*
00002  * $Id: sdp_cloner.h 4518 2008-07-28 15:39:28Z henningw $
00003  *
00004  * SDP parser interface
00005  *
00006  * Copyright (C) 2008-2009 SOMA Networks, INC.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted provided that the following conditions are met:
00010  * 
00011  *  1. Redistributions of source code must retain the above copyright notice,
00012  *  this list of conditions and the following disclaimer.
00013  *  2. Redistributions in binary form must reproduce the above copyright
00014  *  notice, this list of conditions and the following disclaimer in the
00015  *  documentation and/or other materials provided with the distribution.
00016  * 
00017  * THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY EXPRESS OR
00018  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00019  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
00020  * EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
00021  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00022  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00023  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
00024  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00025  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
00026  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00027  *
00028  */
00029 
00030 
00031 #ifndef SDP_CLONER_H
00032 #define SDP_CLONER_H
00033 
00034 #include "sdp.h"
00035 
00036 
00040 sdp_session_cell_t * clone_sdp_session_cell(sdp_session_cell_t *session);
00046 void free_cloned_sdp_session(sdp_session_cell_t *_session);
00047 
00053 sdp_info_t* clone_sdp_info(struct sip_msg* _m);
00059 void free_cloned_sdp(sdp_info_t* sdp);
00060 
00061 #endif /* SDP_H */