1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19 
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module gstreamer.ProtectionMeta;
26 
27 private import glib.Str;
28 private import gstreamerc.gstreamer;
29 public  import gstreamerc.gstreamertypes;
30 
31 
32 /**
33  * Metadata type that holds information about a sample from a protection-protected
34  * track, including the information needed to decrypt it (if it is encrypted).
35  *
36  * Since: 1.6
37  */
38 public class ProtectionMeta
39 {
40 	/** the main Gtk struct */
41 	protected GstProtectionMeta* gstProtectionMeta;
42 
43 	/** Get the main Gtk struct */
44 	public GstProtectionMeta* getProtectionMetaStruct()
45 	{
46 		return gstProtectionMeta;
47 	}
48 
49 	/** the main Gtk struct as a void* */
50 	protected void* getStruct()
51 	{
52 		return cast(void*)gstProtectionMeta;
53 	}
54 
55 	/**
56 	 * Sets our main struct and passes it to the parent class.
57 	 */
58 	public this (GstProtectionMeta* gstProtectionMeta)
59 	{
60 		this.gstProtectionMeta = gstProtectionMeta;
61 	}
62 
63 
64 	/** */
65 	public static GstMetaInfo* getInfo()
66 	{
67 		return gst_protection_meta_get_info();
68 	}
69 
70 	/** */
71 	public static GType getType()
72 	{
73 		return gst_protection_meta_api_get_type();
74 	}
75 
76 	/**
77 	 * Iterates the supplied list of UUIDs and checks the GstRegistry for
78 	 * an element that supports one of the supplied UUIDs. If more than one
79 	 * element matches, the system ID of the highest ranked element is selected.
80 	 *
81 	 * Params:
82 	 *     systemIdentifiers = A null terminated array of strings
83 	 *         that contains the UUID values of each protection system that is to be
84 	 *         checked.
85 	 *
86 	 * Return: One of the strings from @system_identifiers that
87 	 *     indicates the highest ranked element that implements the protection system
88 	 *     indicated by that system ID, or %NULL if no element has been found.
89 	 *
90 	 * Since: 1.6
91 	 */
92 	public static string protectionSelectSystem(string[] systemIdentifiers)
93 	{
94 		return Str.toString(gst_protection_select_system(Str.toStringzArray(systemIdentifiers)));
95 	}
96 }