From e44c01563f03bf5cd0b6e59fd32f145db3861b33 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 24 Sep 2010 00:51:40 +0000 Subject: Deprecate av_opt_show() in favor of a new function av_opt_show2(), which allows to specify only a subset of all the options to show. Originally committed as revision 25166 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/opt.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'libavcodec/opt.h') diff --git a/libavcodec/opt.h b/libavcodec/opt.h index 9f0da7296f..ca56141c5e 100644 --- a/libavcodec/opt.h +++ b/libavcodec/opt.h @@ -204,7 +204,25 @@ AVRational av_get_q(void *obj, const char *name, const AVOption **o_out); int64_t av_get_int(void *obj, const char *name, const AVOption **o_out); const char *av_get_string(void *obj, const char *name, const AVOption **o_out, char *buf, int buf_len); const AVOption *av_next_option(void *obj, const AVOption *last); -int av_opt_show(void *obj, void *av_log_obj); + +#if FF_API_OPT_SHOW +/** + * @deprecated Use av_opt_show2() instead. + */ +attribute_deprecated int av_opt_show(void *obj, void *av_log_obj); +#endif + +/** + * Show the obj options. + * + * @param req_flags requested flags for the options to show. Show only the + * options for which it is opt->flags & req_flags. + * @param rej_flags rejected flags for the options to show. Show only the + * options for which it is !(opt->flags & req_flags). + * @param av_log_obj log context to use for showing the options + */ +int av_opt_show2(void *obj, void *av_log_obj, int req_flags, int rej_flags); + void av_opt_set_defaults(void *s); void av_opt_set_defaults2(void *s, int mask, int flags); -- cgit v1.2.3