2 * Copyright (C) 2001 Wim Taymans <wim.taymans@chello.be>
3 * 2004 Edward Hervey <bilboed@bilboed.com>
5 * gnloperation.h: Header for base GnlOperation
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
24 #ifndef __GNL_OPERATION_H__
25 #define __GNL_OPERATION_H__
28 #include "gnlobject.h"
31 #define GNL_TYPE_OPERATION \
32 (gnl_operation_get_type())
33 #define GNL_OPERATION(obj) \
34 (G_TYPE_CHECK_INSTANCE_CAST((obj),GNL_TYPE_OPERATION,GnlOperation))
35 #define GNL_OPERATION_CLASS(klass) \
36 (G_TYPE_CHECK_CLASS_CAST((klass),GNL_TYPE_OPERATION,GnlOperationClass))
37 #define GNL_IS_OPERATION(obj) \
38 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GNL_TYPE_OPERATION))
39 #define GNL_IS_OPERATION_CLASS(obj) \
40 (G_TYPE_CHECK_CLASS_TYPE((klass),GNL_TYPE_OPERATION))
48 * Number of sink inputs of the controlled element.
49 * -1 if the sink pads are dynamic */
52 /* TRUE if element has request pads */
53 gboolean dynamicsinks;
56 * Number of sink pads currently used on the contolled element. */
59 /* FIXME : We might need to use a lock to access this list */
60 GList * sinks; /* The sink ghostpads */
62 GstElement *element; /* controlled element */
64 GstClockTime next_base_time;
67 struct _GnlOperationClass
69 GnlObjectClass parent_class;
71 void (*input_priority_changed) (GnlOperation * operation, GstPad *pad, guint32 priority);
74 GstPad * get_unlinked_sink_ghost_pad (GnlOperation * operation);
77 gnl_operation_signal_input_priority_changed(GnlOperation * operation, GstPad *pad,
80 void gnl_operation_update_base_time (GnlOperation *operation,
81 GstClockTime timestamp);
84 /* normal GOperation stuff */
85 GType gnl_operation_get_type (void);
88 #endif /* __GNL_OPERATION_H__ */