Mod test.
FossilOrigin-Name: c6655a63f94ee32c28d39e0f64f6962ad2c4f0e0941e4a2c6b7eeee17b0c8137
This commit is contained in:
		
							
								
								
									
										28
									
								
								src/ac/mod_cipwap.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								src/ac/mod_cipwap.c
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,28 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#include "module.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
static int init()
 | 
			
		||||
{
 | 
			
		||||
	return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
static struct ac_module module = {
 | 
			
		||||
	.name="Cipwap",
 | 
			
		||||
	.init= init,
 | 
			
		||||
	.detect_by_discovery = 0
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
struct ac_module * mod_cipwap()
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
	return &module;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										13
									
								
								src/ac/module.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								src/ac/module.h
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,13 @@
 | 
			
		||||
#ifndef __MODULE_H
 | 
			
		||||
#define __MODULE_H
 | 
			
		||||
 | 
			
		||||
struct ac_module
 | 
			
		||||
{
 | 
			
		||||
	const char *name;
 | 
			
		||||
	int (*init)();
 | 
			
		||||
	int (*detect_by_raw)(const char *msg, int len);
 | 
			
		||||
	int (*detect_by_discovery)(const char*);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
		Reference in New Issue
	
	Block a user