fftools/cmdutils: rename HAS_ARG to OPT_FUNC_ARG

For consistent namespacing with other option flags. Also, document and
enforce that it can only be set for func-type options.
This commit is contained in:
Anton Khirnov
2023-12-17 10:45:45 +01:00
parent d2e479a429
commit 5b1b132072
6 changed files with 80 additions and 70 deletions

View File

@@ -118,7 +118,13 @@ typedef struct OptionDef {
const char *name;
enum OptionType type;
int flags;
#define HAS_ARG (1 << 0)
/* The OPT_TYPE_FUNC option takes an argument.
* Must not be used with other option types, as for those it holds:
* - OPT_TYPE_BOOL do not take an argument
* - all other types do
*/
#define OPT_FUNC_ARG (1 << 0)
#define OPT_EXPERT (1 << 2)
#define OPT_VIDEO (1 << 4)
#define OPT_AUDIO (1 << 5)