You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	cmdutils: change semantics of show_help_options() and document it.
Currently it takes a mask and value, such that options for which (flags & mask) == value. Change it to take required flags and forbidden flags instead. This is shorter and simpler to understand.
This commit is contained in:
		
							
								
								
									
										12
									
								
								cmdutils.h
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								cmdutils.h
									
									
									
									
									
								
							| @@ -153,8 +153,16 @@ typedef struct { | ||||
|     const char *argname; | ||||
| } OptionDef; | ||||
|  | ||||
| void show_help_options(const OptionDef *options, const char *msg, int mask, | ||||
|                        int value); | ||||
| /** | ||||
|  * Print help for all options matching specified flags. | ||||
|  * | ||||
|  * @param options a list of options | ||||
|  * @param msg title of this group. Only printed if at least one option matches. | ||||
|  * @param req_flags print only options which have all those flags set. | ||||
|  * @param rej_flags don't print options which have any of those flags set. | ||||
|  */ | ||||
| void show_help_options(const OptionDef *options, const char *msg, int req_flags, | ||||
|                        int rej_flags); | ||||
|  | ||||
| /** | ||||
|  * Show help for all options with given flags in class and all its | ||||
|   | ||||
		Reference in New Issue
	
	Block a user