pv_time.h

00001 /*
00002  * $Id: pv_shv.h 5291 2008-12-03 16:47:50Z miconda $
00003  *
00004  * Copyright (C) 2007 Elena-Ramona Modroiu
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  */
00023 
00024 #ifndef _PV_TIME_H_
00025 #define _PV_TIME_H_
00026 
00027 #include "../../pvar.h"
00028 
00029 int pv_parse_time_name(pv_spec_p sp, str *in);
00030 int pv_get_time(struct sip_msg *msg, pv_param_t *param,
00031                 pv_value_t *res);
00032 int pv_parse_strftime_name(pv_spec_p sp, str *in);
00033 int pv_get_strftime(struct sip_msg *msg, pv_param_t *param,
00034                 pv_value_t *res);
00035 int pv_get_timenows(struct sip_msg *msg, pv_param_t *param,
00036                 pv_value_t *res);
00037 int pv_get_timenowf(struct sip_msg *msg, pv_param_t *param,
00038                 pv_value_t *res);
00039 int pv_get_times(struct sip_msg *msg, pv_param_t *param,
00040                 pv_value_t *res);
00041 int pv_get_timef(struct sip_msg *msg, pv_param_t *param,
00042                 pv_value_t *res);
00043 int pv_get_timeb(struct sip_msg *msg, pv_param_t *param,
00044                 pv_value_t *res);
00045 
00046 int pv_parse_timeval_name(pv_spec_p sp, str *in);
00047 int pv_get_timeval(struct sip_msg *msg, pv_param_t *param,
00048         pv_value_t *res);
00049 #endif
00050