Initial code drop
[platform/upstream/gstreamer.git] / src / ges-timeline-layer.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-layer.h"
21
22 /**
23  * GESTimelineLayer
24  *
25  * Responsible for the ordering of the various contained TimelineObject(s)
26  */
27
28 G_DEFINE_TYPE (GESTimelineLayer, ges_timeline_layer, G_TYPE_OBJECT)
29
30 #define GET_PRIVATE(o) \
31   (G_TYPE_INSTANCE_GET_PRIVATE ((o), GES_TYPE_TIMELINE_LAYER, GESTimelineLayerPrivate))
32
33 typedef struct _GESTimelineLayerPrivate GESTimelineLayerPrivate;
34
35 struct _GESTimelineLayerPrivate {
36     int dummy;
37 };
38
39 static void
40 ges_timeline_layer_get_property (GObject *object, guint property_id,
41                               GValue *value, GParamSpec *pspec)
42 {
43   switch (property_id) {
44   default:
45     G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
46   }
47 }
48
49 static void
50 ges_timeline_layer_set_property (GObject *object, guint property_id,
51                               const GValue *value, GParamSpec *pspec)
52 {
53   switch (property_id) {
54   default:
55     G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
56   }
57 }
58
59 static void
60 ges_timeline_layer_dispose (GObject *object)
61 {
62   G_OBJECT_CLASS (ges_timeline_layer_parent_class)->dispose (object);
63 }
64
65 static void
66 ges_timeline_layer_finalize (GObject *object)
67 {
68   G_OBJECT_CLASS (ges_timeline_layer_parent_class)->finalize (object);
69 }
70
71 static void
72 ges_timeline_layer_class_init (GESTimelineLayerClass *klass)
73 {
74   GObjectClass *object_class = G_OBJECT_CLASS (klass);
75
76   g_type_class_add_private (klass, sizeof (GESTimelineLayerPrivate));
77
78   object_class->get_property = ges_timeline_layer_get_property;
79   object_class->set_property = ges_timeline_layer_set_property;
80   object_class->dispose = ges_timeline_layer_dispose;
81   object_class->finalize = ges_timeline_layer_finalize;
82 }
83
84 static void
85 ges_timeline_layer_init (GESTimelineLayer *self)
86 {
87 }
88
89 GESTimelineLayer*
90 ges_timeline_layer_new (void)
91 {
92   return g_object_new (GES_TYPE_TIMELINE_LAYER, NULL);
93 }
94