Initial code drop
[platform/upstream/gstreamer.git] / src / ges-timeline-source.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-source.h"
21
22 G_DEFINE_TYPE (GESTimelineSource, ges_timeline_source, GES_TIMELINE_OBJECT)
23
24 #define GET_PRIVATE(o) \
25   (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TIMELINE_SOURCE, GESTimelineSourcePrivate))
26
27 typedef struct _GESTimelineSourcePrivate GESTimelineSourcePrivate;
28
29 struct _GESTimelineSourcePrivate {
30     int dummy;
31 };
32
33 static void
34 ges_timeline_source_get_property (GObject *object, guint property_id,
35                               GValue *value, GParamSpec *pspec)
36 {
37   switch (property_id) {
38   default:
39     G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
40   }
41 }
42
43 static void
44 ges_timeline_source_set_property (GObject *object, guint property_id,
45                               const GValue *value, GParamSpec *pspec)
46 {
47   switch (property_id) {
48   default:
49     G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
50   }
51 }
52
53 static void
54 ges_timeline_source_dispose (GObject *object)
55 {
56   G_OBJECT_CLASS (ges_timeline_source_parent_class)->dispose (object);
57 }
58
59 static void
60 ges_timeline_source_finalize (GObject *object)
61 {
62   G_OBJECT_CLASS (ges_timeline_source_parent_class)->finalize (object);
63 }
64
65 static void
66 ges_timeline_source_class_init (GESTimelineSourceClass *klass)
67 {
68   GObjectClass *object_class = G_OBJECT_CLASS (klass);
69
70   g_type_class_add_private (klass, sizeof (GESTimelineSourcePrivate));
71
72   object_class->get_property = ges_timeline_source_get_property;
73   object_class->set_property = ges_timeline_source_set_property;
74   object_class->dispose = ges_timeline_source_dispose;
75   object_class->finalize = ges_timeline_source_finalize;
76 }
77
78 static void
79 ges_timeline_source_init (GESTimelineSource *self)
80 {
81 }
82
83 GESTimelineSource*
84 ges_timeline_source_new (void)
85 {
86   return g_object_new (GES_TYPE_TIMELINE_SOURCE, NULL);
87 }
88