autotools: use -fno-strict-aliasing where supported
[platform/upstream/gstreamer.git] / gst / gstprotection.h
index 9a4b86a..b9bcd3f 100644 (file)
 
 G_BEGIN_DECLS
 
-/* @PROTECTION_SYSTEM_ID_CAPS_FIELD: The field name in a GstCaps that is
- * used to signal the UUID of the protection system
+/**
+ * GST_PROTECTION_SYSTEM_ID_CAPS_FIELD:
+ *
+ * The field name in a GstCaps that is used to signal the UUID of the protection
+ * system.
+ *
+ * Since: 1.6
  */
-#define PROTECTION_SYSTEM_ID_CAPS_FIELD "protection-system"
+#define GST_PROTECTION_SYSTEM_ID_CAPS_FIELD "protection-system"
 
 typedef struct _GstProtectionMeta GstProtectionMeta;
 /**
@@ -37,6 +42,8 @@ typedef struct _GstProtectionMeta GstProtectionMeta;
  *
  * Metadata type that holds information about a sample from a protection-protected
  * track, including the information needed to decrypt it (if it is encrypted).
+ *
+ * Since: 1.6
  */
 struct _GstProtectionMeta
 {
@@ -45,7 +52,9 @@ struct _GstProtectionMeta
   GstStructure *info;
 };
 
+GST_EXPORT
 GType gst_protection_meta_api_get_type (void);
+
 #define GST_PROTECTION_META_API_TYPE (gst_protection_meta_api_get_type())
 
 #define gst_buffer_get_protection_meta(b) \
@@ -53,12 +62,18 @@ GType gst_protection_meta_api_get_type (void);
 
 #define GST_PROTECTION_META_INFO (gst_protection_meta_get_info())
 
-const GstMetaInfo *gst_protection_meta_get_info (void);
+GST_EXPORT
+const GstMetaInfo * gst_protection_meta_get_info (void);
 
-GstProtectionMeta *gst_buffer_add_protection_meta (GstBuffer * buffer,
-    GstStructure * info);
+GST_EXPORT
+GstProtectionMeta * gst_buffer_add_protection_meta (GstBuffer * buffer,
+                                                    GstStructure * info);
+GST_EXPORT
+const gchar * gst_protection_select_system (const gchar ** system_identifiers);
 
-const gchar *gst_protection_select_system (const gchar ** system_identifiers);
+GST_EXPORT
+gchar ** gst_protection_filter_systems_by_available_decryptors (
+    const gchar ** system_identifiers);
 
 G_END_DECLS
 #endif /* __GST_PROTECTION_META_H__ */