2023-03-07 14:56:13 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "util/FFstrbuf.h"
|
|
|
|
|
|
|
|
|
|
typedef struct FFModuleArgs
|
|
|
|
|
{
|
|
|
|
|
FFstrbuf key;
|
|
|
|
|
FFstrbuf outputFormat;
|
|
|
|
|
FFstrbuf errorFormat;
|
|
|
|
|
} FFModuleArgs;
|
|
|
|
|
|
|
|
|
|
const char* ffOptionTestPrefix(const char* argumentKey, const char* moduleName);
|
|
|
|
|
bool ffOptionParseModuleArgs(const char* argumentKey, const char* pkey, const char* value, FFModuleArgs* result);
|
|
|
|
|
void ffOptionParseString(const char* argumentKey, const char* value, FFstrbuf* buffer);
|
|
|
|
|
uint32_t ffOptionParseUInt32(const char* argumentKey, const char* value);
|
|
|
|
|
void ffOptionParseEnum(const char* argumentKey, const char* requestedKey, void* result, ...);
|
2023-03-07 16:13:53 +08:00
|
|
|
bool ffOptionParseBoolean(const char* str);
|
2023-03-07 14:56:13 +08:00
|
|
|
void ffOptionInitModuleArg(FFModuleArgs* args);
|
|
|
|
|
void ffOptionDestroyModuleArg(FFModuleArgs* args);
|