summaryrefslogtreecommitdiff
path: root/libavutil/internal.h
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-01-22 02:41:54 +0100
committerDiego Biurrun <diego@biurrun.de>2013-03-13 20:42:06 +0100
commitf099d3d1d5466bd63f4ab36270d169ff9ea613b8 (patch)
tree2ab260e6b16efde06b2909b28cf1013aa46b8f1f /libavutil/internal.h
parent4abf6fa095f8082499d5a24cdfb18eb4c1fec60e (diff)
Add av_log_{ask_for_sample|missing_feature} replacements to libavutil
This allows reporting missing features and requesting samples from all libraries in a standard way; with a simplified API.
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r--libavutil/internal.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h
index 3cf55f6398..5f4b060926 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -162,4 +162,25 @@
# define ONLY_IF_THREADS_ENABLED(x) NULL
#endif
+/**
+ * Log a generic warning message about a missing feature.
+ *
+ * @param[in] avc a pointer to an arbitrary struct of which the first
+ * field is a pointer to an AVClass struct
+ * @param[in] msg string containing the name of the missing feature
+ */
+void avpriv_report_missing_feature(void *avc,
+ const char *msg, ...) av_printf_format(2, 3);
+
+/**
+ * Log a generic warning message about a missing feature.
+ * Additionally request that a sample showcasing the feature be uploaded.
+ *
+ * @param[in] avc a pointer to an arbitrary struct of which the first field is
+ * a pointer to an AVClass struct
+ * @param[in] msg string containing the name of the missing feature
+ */
+void avpriv_request_sample(void *avc,
+ const char *msg, ...) av_printf_format(2, 3);
+
#endif /* AVUTIL_INTERNAL_H */