1 /* GStreamer 2 * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu> 3 * 2000 Wim Taymans <wtay@chello.be> 4 * 2015-2017 YouView TV Ltd, Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> 5 * 6 * gstipcpipelinesrc.h: 7 * 8 * This library is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU Library General Public 10 * License as published by the Free Software Foundation; either 11 * version 2 of the License, or (at your option) any later version. 12 * 13 * This library is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * Library General Public License for more details. 17 * 18 * You should have received a copy of the GNU Library General Public 19 * License along with this library; if not, write to the 20 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 21 * Boston, MA 02110-1301, USA. 22 */ 23 24 25 #ifndef __GST_IPC_PIPELINE_SRC_H__ 26 #define __GST_IPC_PIPELINE_SRC_H__ 27 28 #include <gst/gst.h> 29 #include "gstipcpipelinecomm.h" 30 31 G_BEGIN_DECLS 32 33 #define GST_TYPE_IPC_PIPELINE_SRC \ 34 (gst_ipc_pipeline_src_get_type()) 35 #define GST_IPC_PIPELINE_SRC(obj) \ 36 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_IPC_PIPELINE_SRC,GstIpcPipelineSrc)) 37 #define GST_IPC_PIPELINE_SRC_CLASS(klass) \ 38 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_IPC_PIPELINE_SRC,GstIpcPipelineSrcClass)) 39 #define GST_IS_IPC_PIPELINE_SRC(obj) \ 40 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_IPC_PIPELINE_SRC)) 41 #define GST_IS_IPC_PIPELINE_SRC_CLASS(klass) \ 42 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_IPC_PIPELINE_SRC)) 43 44 typedef struct _GstIpcPipelineSrc GstIpcPipelineSrc; 45 typedef struct _GstIpcPipelineSrcClass GstIpcPipelineSrcClass; 46 47 /** 48 * GstIpcPipelineSrc: 49 * 50 * Opaque #GstIpcPipelineSrc data structure. 51 */ 52 struct _GstIpcPipelineSrc { 53 GstElement element; 54 55 GstIpcPipelineComm comm; 56 GstPad *srcpad; 57 58 gboolean flushing; 59 GList *queued; 60 GstFlowReturn last_ret; 61 62 GCond create_cond; 63 }; 64 65 struct _GstIpcPipelineSrcClass { 66 GstElementClass parent_class; 67 68 gboolean (*forward_message) (GstIpcPipelineSrc *, GstMessage *); 69 void (*disconnect) (GstIpcPipelineSrc * src); 70 }; 71 72 G_GNUC_INTERNAL GType gst_ipc_pipeline_src_get_type (void); 73 74 G_END_DECLS 75 76 #endif /* __GST_IPC_PIPELINE_SRC_H__ */ 77