소스 검색

async: updates to prameter types

- use typedefs - straigforwards ctags jumping
Daniel-Constantin Mierla 14 년 전
부모
커밋
d7c0926a7f
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 3
      modules/async/async_sleep.c
  2. 2 2
      modules/async/async_sleep.h

+ 3 - 3
modules/async/async_sleep.c

@@ -42,7 +42,7 @@ typedef struct async_item {
 	unsigned int tindex;
 	unsigned int tlabel;
 	unsigned int ticks;
-	struct action *act;
+	cfg_action_t *act;
 	struct async_item *next;
 } async_item_t;
 
@@ -105,12 +105,12 @@ int async_destroy_timer_list(void)
 	return 0;
 }
 
-int async_sleep(struct sip_msg* msg, int seconds, struct action *act)
+int async_sleep(struct sip_msg* msg, int seconds, cfg_action_t *act)
 {
 	int slot;
 	unsigned int ticks;
 	async_item_t *ai;
-	struct cell *t = 0;
+	tm_cell_t *t = 0;
 
 	if(seconds<=0) {
 		LM_ERR("negative or zero sleep time (%d)\n", seconds);

+ 2 - 2
modules/async/async_sleep.h

@@ -33,7 +33,7 @@ typedef struct async_param {
 	int type;
 	gparam_t *pinterval;
 	union {
-		struct action *paction;
+		cfg_action_t *paction;
 		gparam_t *proute;
 	} u;
 } async_param_t;
@@ -42,7 +42,7 @@ int async_init_timer_list(void);
 
 int async_destroy_timer_list(void);
 
-int async_sleep(struct sip_msg* msg, int seconds, struct action *act);
+int async_sleep(struct sip_msg* msg, int seconds, cfg_action_t *act);
 
 void async_timer_exec(unsigned int ticks, void *param);