async_sleep.h

00001 
00025 #ifndef _ASYNC_SLEEP_H_
00026 #define _ASYNC_SLEEP_H_
00027 
00028 #include "../../parser/msg_parser.h"
00029 #include "../../route_struct.h"
00030 #include "../../mod_fix.h"
00031 
00032 typedef struct async_param {
00033         int type;
00034         gparam_t *pinterval;
00035         union {
00036                 cfg_action_t *paction;
00037                 gparam_t *proute;
00038         } u;
00039 } async_param_t;
00040 
00041 int async_init_timer_list(void);
00042 
00043 int async_destroy_timer_list(void);
00044 
00045 int async_sleep(struct sip_msg* msg, int seconds, cfg_action_t *act);
00046 
00047 void async_timer_exec(unsigned int ticks, void *param);
00048 
00049 #endif