Initial code drop
[platform/upstream/gstreamer.git] / src / ges-timeline-pipeline.c
1 /* GStreamer Editing Services
2  * Copyright (C) 2009 Edward Hervey <bilboed@bilboed.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #include "ges-timeline-pipeline.h"
21
22 /* TimelinePipeline
23  *
24  */
25
26 G_DEFINE_TYPE (GESTimelinePipeline, ges_timeline_pipeline, GST_TYPE_PIPELINE)
27
28 #define GET_PRIVATE(o) \
29   (G_TYPE_INSTANCE_GET_PRIVATE ((o), GEST_TYPE_TIMELINE_PIPELINE, GESTimelinePipelinePrivate))
30
31 typedef struct _GESTimelinePipelinePrivate GESTimelinePipelinePrivate;
32
33 struct _GESTimelinePipelinePrivate {
34     int dummy;
35 };
36
37 static void
38 ges_timeline_pipeline_get_property (GObject *object, guint property_id,
39                               GValue *value, GParamSpec *pspec)
40 {
41   switch (property_id) {
42   default:
43     G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
44   }
45 }
46
47 static void
48 ges_timeline_pipeline_set_property (GObject *object, guint property_id,
49                               const GValue *value, GParamSpec *pspec)
50 {
51   switch (property_id) {
52   default:
53     G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
54   }
55 }
56
57 static void
58 ges_timeline_pipeline_dispose (GObject *object)
59 {
60   G_OBJECT_CLASS (ges_timeline_pipeline_parent_class)->dispose (object);
61 }
62
63 static void
64 ges_timeline_pipeline_finalize (GObject *object)
65 {
66   G_OBJECT_CLASS (ges_timeline_pipeline_parent_class)->finalize (object);
67 }
68
69 static void
70 ges_timeline_pipeline_class_init (GESTimelinePipelineClass *klass)
71 {
72   GObjectClass *object_class = G_OBJECT_CLASS (klass);
73
74   g_type_class_add_private (klass, sizeof (GESTimelinePipelinePrivate));
75
76   object_class->get_property = ges_timeline_pipeline_get_property;
77   object_class->set_property = ges_timeline_pipeline_set_property;
78   object_class->dispose = ges_timeline_pipeline_dispose;
79   object_class->finalize = ges_timeline_pipeline_finalize;
80 }
81
82 static void
83 ges_timeline_pipeline_init (GESTimelinePipeline *self)
84 {
85 }
86
87 GESTimelinePipeline*
88 ges_timeline_pipeline_new (void)
89 {
90   return g_object_new (GEST_TYPE_TIMELINE_PIPELINE, NULL);
91 }
92