git:master:e3589c88: gzcompress: updates for core events API changes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

git:master:e3589c88: gzcompress: updates for core events API changes

Daniel-Constantin Mierla-6
Module: kamailio
Branch: master
Commit: e3589c884a5975ba739124b5b19642ccf739a097
URL: https://github.com/kamailio/kamailio/commit/e3589c884a5975ba739124b5b19642ccf739a097

Author: Daniel-Constantin Mierla <[hidden email]>
Committer: Daniel-Constantin Mierla <[hidden email]>
Date: 2017-06-14T17:41:53+02:00

gzcompress: updates for core events API changes

---

Modified: src/modules/gzcompress/gzcompress_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/e3589c884a5975ba739124b5b19642ccf739a097.diff
Patch: https://github.com/kamailio/kamailio/commit/e3589c884a5975ba739124b5b19642ccf739a097.patch

---

diff --git a/src/modules/gzcompress/gzcompress_mod.c b/src/modules/gzcompress/gzcompress_mod.c
index 7d6bae79e1..12319f2ca2 100644
--- a/src/modules/gzcompress/gzcompress_mod.c
+++ b/src/modules/gzcompress/gzcompress_mod.c
@@ -58,8 +58,8 @@
 MODULE_VERSION
 
 /** local functions */
-int gzc_msg_received(void *data);
-int gzc_msg_sent(void *data);
+int gzc_msg_received(sr_event_param_t *evp);
+int gzc_msg_sent(sr_event_param_t *evp);
 
 /** module parameters */
 static str _gzc_hdr_name = str_init("Content-Encoding");
@@ -108,7 +108,7 @@ static int mod_init(void)
  goto error;
  }
  }
-
+
  sr_event_register_cb(SREV_NET_DATA_IN, gzc_msg_received);
  sr_event_register_cb(SREV_NET_DATA_OUT, gzc_msg_sent);
 #ifdef USE_TCP
@@ -245,7 +245,7 @@ static char _gzc_local_buffer[BUF_SIZE];
 /**
  *
  */
-int gzc_msg_received(void *data)
+int gzc_msg_received(sr_event_param_t *evp)
 {
  sip_msg_t msg;
  str *obuf;
@@ -256,7 +256,7 @@ int gzc_msg_received(void *data)
  unsigned long nlen;
  int ret;
 
- obuf = (str*)data;
+ obuf = (str*)evp->data;
  memset(&msg, 0, sizeof(sip_msg_t));
  msg.buf = obuf->s;
  msg.len = obuf->len;
@@ -333,7 +333,7 @@ int gzc_msg_received(void *data)
 /**
  *
  */
-int gzc_msg_sent(void *data)
+int gzc_msg_sent(sr_event_param_t *evp)
 {
  sip_msg_t msg;
  str *obuf;
@@ -343,7 +343,7 @@ int gzc_msg_sent(void *data)
  unsigned long nlen;
  int ret;
 
- obuf = (str*)data;
+ obuf = (str*)evp->data;
  memset(&msg, 0, sizeof(sip_msg_t));
  msg.buf = obuf->s;
  msg.len = obuf->len;


_______________________________________________
Kamailio (SER) - Development Mailing List
[hidden email]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Loading...