|
1 /* GStreamer |
|
2 * Copyright (C) 2005 Stefan Kost <ensonic@users.sf.net> |
|
3 * |
|
4 * gstchildproxy.h: interface header for multi child elements |
|
5 * |
|
6 * This library is free software; you can redistribute it and/or |
|
7 * modify it under the terms of the GNU Library General Public |
|
8 * License as published by the Free Software Foundation; either |
|
9 * version 2 of the License, or (at your option) any later version. |
|
10 * |
|
11 * This library is distributed in the hope that it will be useful, |
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
14 * Library General Public License for more details. |
|
15 * |
|
16 * You should have received a copy of the GNU Library General Public |
|
17 * License along with this library; if not, write to the |
|
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
19 * Boston, MA 02111-1307, USA. |
|
20 */ |
|
21 |
|
22 #ifndef __GST_CHILD_PROXY_H__ |
|
23 #define __GST_CHILD_PROXY_H__ |
|
24 |
|
25 #include <glib-object.h> |
|
26 #include <gst/gst.h> |
|
27 |
|
28 G_BEGIN_DECLS |
|
29 |
|
30 |
|
31 #define GST_TYPE_CHILD_PROXY (gst_child_proxy_get_type ()) |
|
32 #define GST_CHILD_PROXY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_CHILD_PROXY, GstChildProxy)) |
|
33 #define GST_IS_CHILD_PROXY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_CHILD_PROXY)) |
|
34 #define GST_CHILD_PROXY_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_CHILD_PROXY, GstChildProxyInterface)) |
|
35 |
|
36 /** |
|
37 * GstChildProxy: |
|
38 * |
|
39 * Opaque #GstChildProxy data structure. |
|
40 */ |
|
41 typedef struct _GstChildProxy GstChildProxy; /* dummy object */ |
|
42 typedef struct _GstChildProxyInterface GstChildProxyInterface; |
|
43 |
|
44 /** |
|
45 * GstChildProxyInterface: |
|
46 * @parent: parent interface type. |
|
47 * @get_child_by_index: virtual method to fetch the child |
|
48 * @get_children_count: virtual method to get the children count |
|
49 * |
|
50 * #GstChildProxyInterface interface. |
|
51 */ |
|
52 struct _GstChildProxyInterface |
|
53 { |
|
54 GTypeInterface parent; |
|
55 |
|
56 /* methods */ |
|
57 GstObject *(*get_child_by_index) (GstChildProxy * parent, guint index); |
|
58 guint (*get_children_count) (GstChildProxy * parent); |
|
59 /*< private > */ |
|
60 /* signals */ |
|
61 void (*child_added) (GstChildProxy * parent, GstObject * child); |
|
62 void (*child_removed) (GstChildProxy * parent, GstObject * child); |
|
63 |
|
64 /*< private > */ |
|
65 gpointer _gst_reserved[GST_PADDING]; |
|
66 }; |
|
67 #ifdef __SYMBIAN32__ |
|
68 IMPORT_C |
|
69 #endif |
|
70 |
|
71 |
|
72 GType gst_child_proxy_get_type (void); |
|
73 #ifdef __SYMBIAN32__ |
|
74 IMPORT_C |
|
75 #endif |
|
76 |
|
77 |
|
78 GstObject *gst_child_proxy_get_child_by_name (GstChildProxy * parent, const gchar * name); |
|
79 #ifdef __SYMBIAN32__ |
|
80 IMPORT_C |
|
81 #endif |
|
82 |
|
83 GstObject *gst_child_proxy_get_child_by_index (GstChildProxy * parent, guint index); |
|
84 #ifdef __SYMBIAN32__ |
|
85 IMPORT_C |
|
86 #endif |
|
87 |
|
88 guint gst_child_proxy_get_children_count (GstChildProxy * parent); |
|
89 #ifdef __SYMBIAN32__ |
|
90 IMPORT_C |
|
91 #endif |
|
92 |
|
93 |
|
94 gboolean gst_child_proxy_lookup (GstObject *object, const gchar *name, |
|
95 GstObject **target, GParamSpec **pspec); |
|
96 #ifdef __SYMBIAN32__ |
|
97 IMPORT_C |
|
98 #endif |
|
99 |
|
100 void gst_child_proxy_get_property (GstObject * object, const gchar *name, GValue *value); |
|
101 #ifdef __SYMBIAN32__ |
|
102 IMPORT_C |
|
103 #endif |
|
104 |
|
105 void gst_child_proxy_get_valist (GstObject * object, |
|
106 const gchar * first_property_name, va_list var_args); |
|
107 #ifdef __SYMBIAN32__ |
|
108 IMPORT_C |
|
109 #endif |
|
110 |
|
111 void gst_child_proxy_get (GstObject * object, const gchar * first_property_name, |
|
112 ...) G_GNUC_NULL_TERMINATED; |
|
113 #ifdef __SYMBIAN32__ |
|
114 IMPORT_C |
|
115 #endif |
|
116 |
|
117 void gst_child_proxy_set_property (GstObject * object, const gchar *name, const GValue *value); |
|
118 #ifdef __SYMBIAN32__ |
|
119 IMPORT_C |
|
120 #endif |
|
121 |
|
122 void gst_child_proxy_set_valist (GstObject* object, |
|
123 const gchar * first_property_name, va_list var_args); |
|
124 #ifdef __SYMBIAN32__ |
|
125 IMPORT_C |
|
126 #endif |
|
127 |
|
128 void gst_child_proxy_set (GstObject * object, const gchar * first_property_name, |
|
129 ...) G_GNUC_NULL_TERMINATED; |
|
130 #ifdef __SYMBIAN32__ |
|
131 IMPORT_C |
|
132 #endif |
|
133 |
|
134 void gst_child_proxy_child_added (GstObject * object, GstObject * child); |
|
135 #ifdef __SYMBIAN32__ |
|
136 IMPORT_C |
|
137 #endif |
|
138 |
|
139 void gst_child_proxy_child_removed (GstObject * object, GstObject * child); |
|
140 |
|
141 G_END_DECLS |
|
142 |
|
143 #endif /* __GST_CHILD_PROXY_H__ */ |