1 /* GStreamer
2  * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
3  *
4  * nleghostpad.h: Header for helper ghostpad
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., 51 Franklin St, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 
23 #ifndef __NLE_GHOSTPAD_H__
24 #define __NLE_GHOSTPAD_H__
25 
26 #include <gst/gst.h>
27 
28 #include "nletypes.h"
29 
30 G_BEGIN_DECLS
31 
32 GstPad *nle_object_ghost_pad (NleObject * object,
33     const gchar * name, GstPad * target) G_GNUC_INTERNAL;
34 
35 GstPad *nle_object_ghost_pad_no_target (NleObject * object,
36     const gchar * name, GstPadDirection dir, GstPadTemplate *templ) G_GNUC_INTERNAL;
37 
38 gboolean nle_object_ghost_pad_set_target (NleObject * object,
39     GstPad * ghost, GstPad * target) G_GNUC_INTERNAL;
40 
41 void nle_object_remove_ghost_pad (NleObject * object, GstPad * ghost) G_GNUC_INTERNAL;
42 GstEvent * nle_object_translate_incoming_seek (NleObject * object, GstEvent * event) G_GNUC_INTERNAL;
43 
44 void nle_init_ghostpad_category (void) G_GNUC_INTERNAL;
45 
46 G_END_DECLS
47 
48 #endif /* __NLE_GHOSTPAD_H__ */
49