options.h
来自「miniupnpd可以在嵌入式linux中实现upnp功能」· C头文件 代码 · 共 70 行
H
70 行
/* $Id: options.h,v 1.13 2008/04/10 22:44:20 nanard Exp $ *//* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * author: Ryan Wagoner * (c) 2006 Thomas Bernard * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */#ifndef __OPTIONS_H__#define __OPTIONS_H__#include "config.h"/* enum of option available in the miniupnpd.conf */enum upnpconfigoptions { UPNP_INVALID = 0, UPNPEXT_IFNAME = 1, /* ext_ifname */ UPNPEXT_IP, /* ext_ip */ UPNPLISTENING_IP, /* listening_ip */ UPNPPORT, /* "port" */ UPNPBITRATE_UP, /* "bitrate_up" */ UPNPBITRATE_DOWN, /* "bitrate_down" */ UPNPPRESENTATIONURL, /* presentation_url */ UPNPNOTIFY_INTERVAL, /* notify_interval */ UPNPSYSTEM_UPTIME, /* "system_uptime" */ UPNPPACKET_LOG, /* "packet_log" */ UPNPUUID, /* uuid */ UPNPSERIAL, /* serial */ UPNPMODEL_NUMBER, /* model_number */ UPNPCLEANTHRESHOLD, /* clean_ruleset_threshold */ UPNPCLEANINTERVAL, /* clean_ruleset_interval */ UPNPENABLENATPMP, /* enable_natpmp */#ifdef USE_PF UPNPQUEUE, /* queue */ UPNPTAG, /* tag */#endif#ifdef PF_ENABLE_FILTER_RULES UPNPQUICKRULES, /* quickrules */#endif UPNPSECUREMODE, /* secure_mode */#ifdef ENABLE_LEASEFILE UPNPLEASEFILE, /* lease_file */#endif UPNPENABLE /* enable_upnp */};/* readoptionsfile() * parse and store the option file values * returns: 0 success, -1 failure */intreadoptionsfile(const char * fname);/* freeoptions() * frees memory allocated to option values */voidfreeoptions(void);#define MAX_OPTION_VALUE_LEN (80)struct option{ enum upnpconfigoptions id; char value[MAX_OPTION_VALUE_LEN];};extern struct option * ary_options;extern int num_options;#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?