Module: kamailio
Branch: master
Commit: 697c19b016fb1b0f7678716f31462d3f54d60719
URL:
https://github.com/kamailio/kamailio/commit/697c19b016fb1b0f7678716f31462d3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-01-08T11:35:19+01:00
core: typedefed struct onsend_info to onsend_info_t
---
Modified: src/core/onsend.h
---
Diff:
https://github.com/kamailio/kamailio/commit/697c19b016fb1b0f7678716f31462d3…
Patch:
https://github.com/kamailio/kamailio/commit/697c19b016fb1b0f7678716f31462d3…
---
diff --git a/src/core/onsend.h b/src/core/onsend.h
index 8360ff241d..a2e8f569fd 100644
--- a/src/core/onsend.h
+++ b/src/core/onsend.h
@@ -36,15 +36,15 @@
#include "sr_compat.h"
#include "kemi.h"
-struct onsend_info{
+typedef struct onsend_info{
union sockaddr_union* to; /* dest info */
struct socket_info* send_sock; /* local send socket */
char* buf; /* outgoing buffer */
int len; /* outgoing buffer len */
sip_msg_t *msg; /* original sip msg struct */
-};
+} onsend_info_t;
-extern struct onsend_info* p_onsend;
+extern onsend_info_t* p_onsend;
#define get_onsend_info() (p_onsend)
@@ -53,13 +53,13 @@ extern struct onsend_info* p_onsend;
* returns: 0 drop the message, >= ok, <0 error (but forward the message)
* it also migh change dst->send_flags!
* WARNING: buf must be 0 terminated (to allow regex matches on it) */
-static inline int run_onsend(struct sip_msg* orig_msg, struct dest_info* dst,
+static inline int run_onsend(sip_msg_t* orig_msg, dest_info_t* dst,
char* buf, int len)
{
- struct onsend_info onsnd_info = {0};
+ onsend_info_t onsnd_info = {0};
int ret;
- struct run_act_ctx ra_ctx;
- struct run_act_ctx *bctx;
+ run_act_ctx_t ra_ctx;
+ run_act_ctx_t *bctx;
int backup_route_type;
snd_flags_t fwd_snd_flags_bak;
snd_flags_t rpl_snd_flags_bak;