00001 /* 00002 * $Id: parse_privacy.h 4720 2008-08-23 10:56:15Z henningw $ 00003 * 00004 * Copyright (c) 2006 Juha Heinanen 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 00029 #ifndef PARSE_PRIVACY_H 00030 #define PARSE_PRIVACY_H 00031 00032 #include "../../mem/mem.h" 00033 #include "../../parser/msg_parser.h" 00034 00035 00039 enum privacy_value { 00040 PRIVACY_USER=1, 00041 PRIVACY_HEADER=2, 00042 PRIVACY_SESSION=4, 00043 PRIVACY_NONE=8, 00044 PRIVACY_CRITICAL=16, 00045 PRIVACY_ID=32, 00046 PRIVACY_HISTORY=64 00047 }; 00048 00049 00053 #define get_privacy_values(p_msg) \ 00054 ((unsigned int)(long)((p_msg)->privacy->parsed)) 00055 00056 00063 int parse_privacy(struct sip_msg *msg); 00064 00065 00070 unsigned int parse_priv_value(char* start, unsigned int max_len, 00071 unsigned int* value); 00072 00073 00074 #endif /* PARSE_PRIVACY_H */
1.7.1