textops.h

00001 /* Copyright (C) 2008 Telecats BV
00002  *
00003  * This file is part of openser, a free SIP server.
00004  *
00005  * openser is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * openser is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018  *
00019  *
00020  * History:
00021  * ---------
00022  *  2008-07-14 first version, function definitions copied from textops.c (Ardjan Zwartjes)
00023  */
00024 
00025 #ifndef TEXTOPS_H_
00026 #define TEXTOPS_H_
00027 #include "../../mod_fix.h"
00028 
00029 int search_f(struct sip_msg*, char*, char*);
00030 int search_append_f(struct sip_msg*, char*, char*);
00031 int remove_hf_f(struct sip_msg* msg, char* str_hf, char* foo);
00032 int add_hf_helper(struct sip_msg* msg, str *str1, str *str2, gparam_p hfval, int mode, gparam_p hfanc);
00033 int is_privacy_f(struct sip_msg *msg, char *privacy, char *str2 );
00034 
00035 int fixup_regexp_none(void** param, int param_no);
00036 int fixup_free_regexp_none(void** param, int param_no);
00037 int fixup_privacy(void** param, int param_no);
00038 #endif /*TEXTOPS_H_*/