00001 /* 00002 * $Id: data_lump_rpl.h 4518 2008-07-28 15:39:28Z henningw $ 00003 * 00004 * Copyright (C) 2001-2003 FhG Fokus 00005 * 00006 * This file is part of Kamailio, a free SIP server. 00007 * 00008 * Kamailio is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version 00012 * 00013 * Kamailio is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 * 00022 * History: 00023 * -------- 00024 * 2002-02-14 : created by bogdan 00025 * 2003-09-11 : lump_rpl type added - LUMP_RPL_BODY & LUMP_RPL_HDR (bogdan) 00026 * 2003-11-11 : build_lump_rpl merged into add_lump_rpl; type removed; 00027 * flags LUMP_RPL_BODY, LUMP_RPL_NODUP and LUMP_RPL_NOFREE 00028 * added (bogdan) 00029 */ 00030 00031 /*! 00032 * \file 00033 * \brief Data lump reply handling 00034 */ 00035 00036 #ifndef data_lump_rpl_h 00037 #define data_lump_rpl_h 00038 00039 #include "parser/msg_parser.h" 00040 00041 00042 #define LUMP_RPL_HDR (1<<1) 00043 #define LUMP_RPL_BODY (1<<2) 00044 #define LUMP_RPL_NODUP (1<<3) 00045 #define LUMP_RPL_NOFREE (1<<4) 00046 #define LUMP_RPL_SHMEM (1<<5) 00047 00048 struct lump_rpl 00049 { 00050 str text; 00051 int flags; 00052 struct lump_rpl* next; 00053 }; 00054 00055 struct lump_rpl* add_lump_rpl(struct sip_msg *, char *, int , int ); 00056 00057 void free_lump_rpl(struct lump_rpl* ); 00058 00059 void unlink_lump_rpl(struct sip_msg *, struct lump_rpl* ); 00060 00061 void del_nonshm_lump_rpl( struct lump_rpl ** ); 00062 00063 #endif
1.5.6