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