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