static int amp_parse_config(int argc, char **argv, void **config)
{
struct amp_filter_args_info *conf = para_calloc(sizeof(*conf));
- int ret = -E_AMP_SYNTAX;
+ int ret;
amp_filter_cmdline_parser(argc, argv, conf);
ret = -ERRNO_TO_PARA_ERROR(EINVAL);
#define PREBUFFER_FILTER_ERRORS \
- PARA_ERROR(PREBUFFER_SYNTAX, "syntax error in prebuffer filter config"), \
PARA_ERROR(PREBUFFER_SUCCESS, "prebuffering complete"), \
#define AMP_FILTER_ERRORS \
- PARA_ERROR(AMP_SYNTAX, "syntax error in amp filter config"), \
PARA_ERROR(AMP_ZERO_AMP, "no amplification necessary"), \
PARA_ERROR(AMP_EOF, "amp: end of file"), \
#define BLOB_ERRORS \
PARA_ERROR(BLOB_SYNTAX, "blob syntax error"), \
- PARA_ERROR(INPUT_TOO_LARGE, "input too large for stdin command"), \
#define PLAYLIST_ERRORS \
PARA_ERROR(CLIENT_SYNTAX, "syntax error"), \
PARA_ERROR(NO_CONFIG, "config file not found"), \
PARA_ERROR(BAD_CONFIG, "syntax error in config file"), \
- PARA_ERROR(CLIENT_AUTH, "authentication failed"), \
PARA_ERROR(SERVER_EOF, "connection closed by para_server"), \
PARA_ERROR(SERVER_CMD_SUCCESS, "command terminated successfully"), \
PARA_ERROR(SERVER_CMD_FAILURE, "command failed"), \
static int prebuffer_parse_config(int argc, char **argv, void **config)
{
struct prebuffer_filter_args_info *conf = para_calloc(sizeof(*conf));
- int ret = -E_PREBUFFER_SYNTAX;
+ int ret;
prebuffer_filter_cmdline_parser(argc, argv, conf);
ret = -ERRNO_TO_PARA_ERROR(EINVAL);