* Pay attention to the specified port number. * Add support for multiple media directories, and allow content filtering on the directories.
		
			
				
	
	
		
			38 lines
		
	
	
		
			850 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			850 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* MiniUPnP project
 | |
|  * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
 | |
|  * (c) 2006-2007 Thomas Bernard
 | |
|  * This software is subject to the conditions detailed
 | |
|  * in the LICENCE file provided within the distribution */
 | |
| #ifndef __MINIUPNPDTYPES_H__
 | |
| #define __MINIUPNPDTYPES_H__
 | |
| 
 | |
| #include "config.h"
 | |
| #include <netinet/in.h>
 | |
| 
 | |
| /* structure for storing lan addresses
 | |
|  * with ascii representation and mask */
 | |
| struct lan_addr_s {
 | |
| 	char str[16];	/* example: 192.168.0.1 */
 | |
| 	struct in_addr addr, mask;	/* ip/mask */
 | |
| };
 | |
| 
 | |
| struct runtime_vars_s {
 | |
| 	int port;	/* HTTP Port */
 | |
| 	int notify_interval;	/* seconds between SSDP announces */
 | |
| };
 | |
| 
 | |
| enum media_types {
 | |
| 	ALL_MEDIA,
 | |
| 	AUDIO_ONLY,
 | |
| 	VIDEO_ONLY,
 | |
| 	IMAGES_ONLY
 | |
| };
 | |
| 
 | |
| struct media_dir_s {
 | |
| 	char * path;	/* Base path */
 | |
| 	enum media_types type;	/* type of files to scan */
 | |
| 	struct media_dir_s * next;
 | |
| };
 | |
| 
 | |
| #endif
 |