From 0ef0791e5e5ff01622ce8e9575ecc8f40fa4d726 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Wed, 7 Oct 2015 06:28:00 +0200 Subject: [PATCH] core: faked message api moved to core --- lib/kcore/faked_msg.c => fmsg.c | 8 ++++---- fmsg.h | 31 +++++++++++++++++++++++++++++++ lib/kcore/faked_msg.h | 6 +----- 3 files changed, 36 insertions(+), 9 deletions(-) rename lib/kcore/faked_msg.c => fmsg.c (96%) create mode 100644 fmsg.h diff --git a/lib/kcore/faked_msg.c b/fmsg.c similarity index 96% rename from lib/kcore/faked_msg.c rename to fmsg.c index ae010e95fcc..ee0f531616d 100644 --- a/lib/kcore/faked_msg.c +++ b/fmsg.c @@ -24,11 +24,11 @@ * Module: \ref libkcore */ -#include "../../dprint.h" -#include "../../globals.h" -#include "../../dset.h" +#include "dprint.h" +#include "globals.h" +#include "dset.h" -#include "faked_msg.h" +#include "fmsg.h" #define FAKED_SIP_MSG "OPTIONS sip:you@kamailio.org SIP/2.0\r\nVia: SIP/2.0/UDP 127.0.0.1\r\nFrom: ;tag=123\r\nTo: \r\nCall-ID: 123\r\nCSeq: 1 OPTIONS\r\nContent-Length: 0\r\n\r\n" #define FAKED_SIP_MSG_LEN (sizeof(FAKED_SIP_MSG)-1) diff --git a/fmsg.h b/fmsg.h new file mode 100644 index 00000000000..d442168a7d8 --- /dev/null +++ b/fmsg.h @@ -0,0 +1,31 @@ +/** + * + * Copyright (C) 2009 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of kamailio, a free SIP server. + * + * kamailio is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * kamailio is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef _FMSG_H_ +#define _FMSG_H_ + +#include "parser/msg_parser.h" + +int faked_msg_init(void); +sip_msg_t* faked_msg_next(void); +sip_msg_t* faked_msg_get_next(void); + +#endif diff --git a/lib/kcore/faked_msg.h b/lib/kcore/faked_msg.h index fe704ca9119..65ecb3f0da5 100644 --- a/lib/kcore/faked_msg.h +++ b/lib/kcore/faked_msg.h @@ -22,10 +22,6 @@ #ifndef _FAKED_SIP_MSG_H_ #define _FAKED_SIP_MSG_H_ -#include "../../parser/msg_parser.h" - -int faked_msg_init(void); -sip_msg_t* faked_msg_next(void); -sip_msg_t* faked_msg_get_next(void); +#include "../../fmsg.h" #endif