1 /* 2 * GStreamer 3 * Copyright (C) 2016 Matthew Waters <matthew@centricular.com> 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Library General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library 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 GNU 13 * Library General Public License for more details. 14 * 15 * You should have received a copy of the GNU Library General Public 16 * License along with this library; if not, write to the 17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 18 * Boston, MA 02110-1301, USA. 19 */ 20 21 #ifndef __GST_PROXY_CONTROL_BINDING_H__ 22 #define __GST_PROXY_CONTROL_BINDING_H__ 23 24 #include <gst/gst.h> 25 #include <gst/controller/controller-prelude.h> 26 27 G_BEGIN_DECLS 28 29 #define GST_TYPE_PROXY_CONTROL_BINDING (gst_proxy_control_binding_get_type()) 30 #define GST_PROXY_CONTROL_BINDING(obj) \ 31 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PROXY_CONTROL_BINDING,GstProxyControlBinding)) 32 #define GST_PROXY_CONTROL_BINDING_CLASS(klass) \ 33 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PROXY_CONTROL_BINDING,GstProxyControlBindingClass)) 34 #define GST_IS_PROXY_CONTROL_BINDING(obj) \ 35 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_PROXY_CONTROL_BINDING)) 36 #define GST_IS_PROXY_CONTROL_BINDING_CLASS(klass) \ 37 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_PROXY_CONTROL_BINDING)) 38 #define GST_PROXY_CONTROL_BINDING_GET_CLASS(obj) \ 39 (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_CONTOL_SOURCE, GstProxyControlBindingClass)) 40 41 typedef struct _GstProxyControlBinding GstProxyControlBinding; 42 typedef struct _GstProxyControlBindingClass GstProxyControlBindingClass; 43 44 /** 45 * GstProxyControlBinding: 46 * 47 * Opaque #GstProxyControlBinding struct 48 */ 49 struct _GstProxyControlBinding 50 { 51 /* <private> */ 52 GstControlBinding parent; 53 54 GWeakRef ref_object; 55 gchar *property_name; 56 57 gpointer _padding[GST_PADDING]; 58 }; 59 60 /** 61 * GstProxyControlBindingClass: 62 * 63 * Opaque #GstProxyControlBindingClass struct 64 */ 65 struct _GstProxyControlBindingClass 66 { 67 /* <private> */ 68 GstControlBindingClass parent_class; 69 70 gpointer _padding[GST_PADDING]; 71 }; 72 73 GST_CONTROLLER_API 74 GType gst_proxy_control_binding_get_type (void); 75 76 GST_CONTROLLER_API 77 GstControlBinding * gst_proxy_control_binding_new (GstObject * object, 78 const gchar * property_name, 79 GstObject * ref_object, 80 const gchar * ref_property_name); 81 82 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstProxyControlBinding, gst_object_unref) 83 G_END_DECLS 84 85 #endif /* __GST_PROXY_CONTROL_BINDING_H__ */ 86