Skip to content

Commit

Permalink
core: typedefed struct onsend_info to onsend_info_t
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jan 8, 2018
1 parent a41db4b commit 697c19b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/core/onsend.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
Expand Down

0 comments on commit 697c19b

Please sign in to comment.