Prechádzať zdrojové kódy

sl(s): move typedef of sl_send_reply_f in sl.h

- modules_s/sl/sl.h is included by modules_k/sl/sl.h to export ser-like
  SL API in kamailio sl module
- allow using ser modules dependent of sl with k-sl module
Daniel-Constantin Mierla 16 rokov pred
rodič
commit
974722abe9
2 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  1. 3 1
      modules_s/sl/sl.h
  2. 0 1
      modules_s/sl/sl_funcs.h

+ 3 - 1
modules_s/sl/sl.h

@@ -27,7 +27,9 @@
 #ifndef _SL_H
 #ifndef _SL_H
 #define _SL_H
 #define _SL_H
 
 
-#include "sl_funcs.h"
+#include "../../parser/msg_parser.h"
+
+typedef int (*sl_send_reply_f)(struct sip_msg* msg, int code, char* reason);
 
 
 typedef struct sl_api {
 typedef struct sl_api {
 	sl_send_reply_f reply;  /* Send stateless reply */
 	sl_send_reply_f reply;  /* Send stateless reply */

+ 0 - 1
modules_s/sl/sl_funcs.h

@@ -39,7 +39,6 @@
 int sl_startup();
 int sl_startup();
 int sl_shutdown();
 int sl_shutdown();
 
 
-typedef int (*sl_send_reply_f)(struct sip_msg* msg, int code, char* reason);
 int sl_send_reply(struct sip_msg* msg, int code, char* reason);
 int sl_send_reply(struct sip_msg* msg, int code, char* reason);
 
 
 int sl_filter_ACK(struct sip_msg*, unsigned int flags, void *bar );
 int sl_filter_ACK(struct sip_msg*, unsigned int flags, void *bar );