Explorar o código

core: typedefed struct onsend_info to onsend_info_t

Daniel-Constantin Mierla %!s(int64=7) %!d(string=hai) anos
pai
achega
697c19b016
Modificáronse 1 ficheiros con 7 adicións e 7 borrados
  1. 7 7
      src/core/onsend.h

+ 7 - 7
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;