فهرست منبع

core: faked message api moved to core

Daniel-Constantin Mierla 10 سال پیش
والد
کامیت
0ef0791e5e
3فایلهای تغییر یافته به همراه36 افزوده شده و 9 حذف شده
  1. 4 4
      fmsg.c
  2. 31 0
      fmsg.h
  3. 1 5
      lib/kcore/faked_msg.h

+ 4 - 4
lib/kcore/faked_msg.c → fmsg.c

@@ -24,11 +24,11 @@
 * Module: \ref libkcore
 * 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:[email protected] SIP/2.0\r\nVia: SIP/2.0/UDP 127.0.0.1\r\nFrom: <[email protected]>;tag=123\r\nTo: <[email protected]>\r\nCall-ID: 123\r\nCSeq: 1 OPTIONS\r\nContent-Length: 0\r\n\r\n"
 #define FAKED_SIP_MSG "OPTIONS sip:[email protected] SIP/2.0\r\nVia: SIP/2.0/UDP 127.0.0.1\r\nFrom: <[email protected]>;tag=123\r\nTo: <[email protected]>\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)
 #define FAKED_SIP_MSG_LEN (sizeof(FAKED_SIP_MSG)-1)

+ 31 - 0
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

+ 1 - 5
lib/kcore/faked_msg.h

@@ -22,10 +22,6 @@
 #ifndef _FAKED_SIP_MSG_H_
 #ifndef _FAKED_SIP_MSG_H_
 #define _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
 #endif