summaryrefslogtreecommitdiffstats
path: root/src/pulse/format.h
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2011-03-29 17:16:08 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2011-05-15 10:09:35 +0530
commit13a33abf45f31417076f283ca7da9d9f74892286 (patch)
tree3e09965e63c8c6ddd8f8d4b737f66461e112f100 /src/pulse/format.h
parent53091cc5f0a766e0bff36b59600f99cd2771bbd6 (diff)
format: Export pa_format_info_is_compatible in API
This allows clients to perform checks between formats as well.
Diffstat (limited to 'src/pulse/format.h')
-rw-r--r--src/pulse/format.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pulse/format.h b/src/pulse/format.h
index bd32ba92..b0efe502 100644
--- a/src/pulse/format.h
+++ b/src/pulse/format.h
@@ -83,6 +83,15 @@ int pa_format_info_valid(const pa_format_info *f);
/** Returns non-zero when the format info structure represents a PCM (i.e. uncompressed data) format */
int pa_format_info_is_pcm(const pa_format_info *f);
+/** Returns non-zero if the format represented \a first is a subset of
+ * the format represented by \second. This means that \a second must
+ * have all the fields that \a first does, but the reverse need not
+ * be true. This is typically expected to be used to check if a
+ * stream's format is compatible with a given sink. In such a case,
+ * \a first would be the sink's format and \a second would be the
+ * stream's.*/
+int pa_format_info_is_compatible(pa_format_info *first, pa_format_info *second);
+
/** Maximum required string length for
* pa_format_info_snprint(). Please note that this value can change
* with any release without warning and without being considered API