Browse code

core: srapi - cseq update field update to be a function

(cherry picked from commit 2880cd627802920b20514a62fc90ff450a5c6b30)

Daniel-Constantin Mierla authored on 13/07/2016 08:16:23
Showing 1 changed files
... ...
@@ -20,6 +20,7 @@
20 20
 #define __SRAPI_H__
21 21
 
22 22
 #include "str.h"
23
+#include "parser/msg_parser.h"
23 24
 
24 25
 typedef void (*sr_generate_callid_f)(str*);
25 26
 
... ...
@@ -27,8 +28,9 @@ int sr_register_callid_func(sr_generate_callid_f f);
27 27
 
28 28
 sr_generate_callid_f sr_get_callid_func(void);
29 29
 
30
+typedef int (*sr_cseq_update_f)(sip_msg_t*);
30 31
 typedef struct sr_cfgenv {
31
-	int cseq_update;
32
+	sr_cseq_update_f cb_cseq_update;
32 33
 } sr_cfgenv_t;
33 34
 
34 35
 void sr_cfgenv_init(void);