X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=plugins%2Felements%2Fgstfakesink.h;h=72b3671b6d7de17294bc4c13a172abb3aecaa102;hb=cf7cfb0a0e52289c67b25e16541cccf68a3ecf47;hp=0b6e1bd0d6378fa64b799d8977da14ba0ef6c9a5;hpb=e658379534eb4a90b654d90f1d0bdf86f37c6e31;p=platform%2Fupstream%2Fgstreamer.git diff --git a/plugins/elements/gstfakesink.h b/plugins/elements/gstfakesink.h index 0b6e1bd..72b3671 100644 --- a/plugins/elements/gstfakesink.h +++ b/plugins/elements/gstfakesink.h @@ -28,6 +28,8 @@ #include G_BEGIN_DECLS + + #define GST_TYPE_FAKE_SINK \ (gst_fake_sink_get_type()) #define GST_FAKE_SINK(obj) \ @@ -39,6 +41,7 @@ G_BEGIN_DECLS #define GST_IS_FAKE_SINK_CLASS(klass) \ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_FAKE_SINK)) #define GST_FAKE_SINK_CAST(obj) ((GstFakeSink *)obj) + /** * GstFakeSinkStateError: * @FAKE_SINK_STATE_ERROR_NONE: no error @@ -51,8 +54,7 @@ G_BEGIN_DECLS * * Possible state change errors for the state-error property. */ - typedef enum -{ +typedef enum { FAKE_SINK_STATE_ERROR_NONE = 0, FAKE_SINK_STATE_ERROR_NULL_READY, FAKE_SINK_STATE_ERROR_READY_PAUSED, @@ -64,52 +66,34 @@ G_BEGIN_DECLS typedef struct _GstFakeSink GstFakeSink; typedef struct _GstFakeSinkClass GstFakeSinkClass; -typedef struct _GstExampleMgr GstExampleMgr; /** * GstFakeSink: * * The opaque #GstFakeSink data structure. */ -struct _GstFakeSink -{ - GstBaseSink element; +struct _GstFakeSink { + GstBaseSink element; - gboolean silent; - gboolean dump; - gboolean signal_handoffs; + gboolean silent; + gboolean dump; + gboolean signal_handoffs; GstFakeSinkStateError state_error; - gchar *last_message; - gint num_buffers; - gint num_buffers_left; - GstExampleMgr *example_mgr; + gchar *last_message; + gint num_buffers; + gint num_buffers_left; }; -struct _GstFakeSinkClass -{ +struct _GstFakeSinkClass { GstBaseSinkClass parent_class; /* signals */ - void (*handoff) (GstElement * element, GstBuffer * buf, GstPad * pad); - void (*preroll_handoff) (GstElement * element, GstBuffer * buf, GstPad * pad); + void (*handoff) (GstElement *element, GstBuffer *buf, GstPad *pad); + void (*preroll_handoff) (GstElement *element, GstBuffer *buf, GstPad *pad); }; G_GNUC_INTERNAL GType gst_fake_sink_get_type (void); -#define GST_EXAMPLE_MGR_CONTEXT_TYPE "gst.example.ExampleMgr" - -GstContext *gst_example_mgr_new_context (GstExampleMgr * mgr); -GstQuery *gst_example_mgr_query_context (void); -void gst_context_set_example_mgr (GstContext * context, GstExampleMgr * mgr); -gboolean gst_context_get_example_mgr (GstContext * context, - GstExampleMgr ** mgr); - -#define GST_TYPE_EXAMPLE_MGR (gst_example_mgr_get_type()) -GType gst_example_mgr_get_type (void); - -GstExampleMgr *gst_example_mgr_new (GDestroyNotify destroy_notify); -GstExampleMgr *gst_example_mgr_ref (GstExampleMgr * mgr); -void gst_example_mgr_unref (GstExampleMgr * mgr); - G_END_DECLS + #endif /* __GST_FAKE_SINK_H__ */