浏览代码

stun: updates for core events API changes

Daniel-Constantin Mierla 8 年之前
父节点
当前提交
3cea0ddb40
共有 1 个文件被更改,包括 6 次插入7 次删除
  1. 6 7
      src/modules/stun/stun_mod.c

+ 6 - 7
src/modules/stun/stun_mod.c

@@ -13,8 +13,8 @@
  * 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 
+ * 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
  *
  */
@@ -34,10 +34,9 @@
 MODULE_VERSION
 
 static int mod_init(void);
-static int stun_msg_receive(void *data);
+static int stun_msg_receive(sr_event_param_t *evp);
 
-struct module_exports exports= 
-{
+struct module_exports exports = {
 	"stun",
 	DEFAULT_DLFLAGS,	/* dlopen flags */
 	0,			/* Exported functions */
@@ -70,8 +69,8 @@ static int mod_init(void)
 	return 0;
 }
 
-int stun_msg_receive(void *data)
+int stun_msg_receive(sr_event_param_t *evp)
 {
-	stun_event_info_t *sev = (stun_event_info_t *) data;
+	stun_event_info_t *sev = (stun_event_info_t *)evp->data;
 	return process_stun_msg(sev->buf, sev->len, sev->rcv);
 }