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 gstreamer.c.functions;
29 public  import gstreamer.c.types;
30 public  import gstreamerc.gstreamertypes;
31 
32 
33 /**
34  * Metadata type that holds information about a sample from a protection-protected
35  * track, including the information needed to decrypt it (if it is encrypted).
36  *
37  * Since: 1.6
38  */
39 public class ProtectionMeta
40 {
41 	/** the main Gtk struct */
42 	protected GstProtectionMeta* gstProtectionMeta;
43 	protected bool ownedRef;
44 
45 	/** Get the main Gtk struct */
46 	public GstProtectionMeta* getProtectionMetaStruct(bool transferOwnership = false)
47 	{
48 		if (transferOwnership)
49 			ownedRef = false;
50 		return gstProtectionMeta;
51 	}
52 
53 	/** the main Gtk struct as a void* */
54 	protected void* getStruct()
55 	{
56 		return cast(void*)gstProtectionMeta;
57 	}
58 
59 	/**
60 	 * Sets our main struct and passes it to the parent class.
61 	 */
62 	public this (GstProtectionMeta* gstProtectionMeta, bool ownedRef = false)
63 	{
64 		this.gstProtectionMeta = gstProtectionMeta;
65 		this.ownedRef = ownedRef;
66 	}
67 
68 
69 	/** */
70 	public static GstMetaInfo* getInfo()
71 	{
72 		return gst_protection_meta_get_info();
73 	}
74 
75 	/** */
76 	public static GType getType()
77 	{
78 		return gst_protection_meta_api_get_type();
79 	}
80 
81 	/**
82 	 * Iterates the supplied list of UUIDs and checks the GstRegistry for
83 	 * an element that supports one of the supplied UUIDs. If more than one
84 	 * element matches, the system ID of the highest ranked element is selected.
85 	 *
86 	 * Params:
87 	 *     systemIdentifiers = A null terminated array of strings
88 	 *         that contains the UUID values of each protection system that is to be
89 	 *         checked.
90 	 *
91 	 * Returns: One of the strings from
92 	 *     @system_identifiers that indicates the highest ranked element that
93 	 *     implements the protection system indicated by that system ID, or %NULL if no
94 	 *     element has been found.
95 	 *
96 	 * Since: 1.6
97 	 */
98 	public static string protectionSelectSystem(string[] systemIdentifiers)
99 	{
100 		return Str.toString(gst_protection_select_system(Str.toStringzArray(systemIdentifiers)));
101 	}
102 }