mirror of
				https://git.haproxy.org/git/haproxy.git/
				synced 2025-10-31 08:30:59 +01:00 
			
		
		
		
	apsession_refresh() and apsess_refressh are only used inside apsession.c and thus can be made static. The only use of apsession_refresh() is appsession_task_init(). These functions have been re-ordered to avoid the need for a forward-declaration of apsession_refresh().
		
			
				
	
	
		
			53 lines
		
	
	
		
			981 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			981 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _COMMON_APPSESS_H
 | |
| #define _COMMON_APPSESS_H
 | |
| 
 | |
| /*
 | |
|  * The time between two calls of appsession_refresh in ms.
 | |
|  */
 | |
| #define TBLCHKINT 5000
 | |
| 
 | |
| #include <sys/time.h>
 | |
| 
 | |
| #include <common/config.h>
 | |
| #include <common/memory.h>
 | |
| 
 | |
| #include <types/task.h>
 | |
| 
 | |
| typedef struct appsessions {
 | |
| 	char *sessid;
 | |
| 	char *serverid;
 | |
| 	int   expire;		/* next expiration time for this application session (in tick) */
 | |
| 	unsigned long int request_count;
 | |
| 	struct list hash_list;
 | |
| } appsess;
 | |
| 
 | |
| extern struct pool_head *pool2_appsess;
 | |
| 
 | |
| struct app_pool {
 | |
| 	struct pool_head *sessid;
 | |
| 	struct pool_head *serverid;
 | |
| };
 | |
| 
 | |
| extern struct app_pool apools;
 | |
| extern int have_appsession;
 | |
| 
 | |
| 
 | |
| /* Callback for hash_lookup */
 | |
| int match_str(const void *key1, const void *key2);
 | |
| 
 | |
| /* Callback for destroy */
 | |
| void destroy(appsess *data);
 | |
| 
 | |
| int appsession_task_init(void);
 | |
| int appsession_init(void);
 | |
| void appsession_cleanup(void);
 | |
| 
 | |
| #endif /* _COMMON_APPSESS_H */
 | |
| 
 | |
| /*
 | |
|  * Local variables:
 | |
|  *  c-indent-level: 8
 | |
|  *  c-basic-offset: 8
 | |
|  * End:
 | |
|  */
 |