1 /*
2 * ggit-object-factory-base.c
3 * This file is part of libgit2-glib
4 *
5 * Copyright (C) 2012 - Jesse van den Kieboom
6 *
7 * libgit2-glib is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * libgit2-glib is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with libgit2-glib. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #include "ggit-object-factory-base.h"
22 #include "ggit-object-factory.h"
23
24 /**
25 * GgitObjectFactoryBase:
26 *
27 * Represents the base type for objects created by an object factory.
28 */
29
G_DEFINE_ABSTRACT_TYPE(GgitObjectFactoryBase,ggit_object_factory_base,G_TYPE_OBJECT)30 G_DEFINE_ABSTRACT_TYPE (GgitObjectFactoryBase, ggit_object_factory_base, G_TYPE_OBJECT)
31
32 static GObject *
33 ggit_object_factory_base_constructor (GType type,
34 guint n_construct_properties,
35 GObjectConstructParam *construct_properties)
36 {
37 return ggit_object_factory_construct (ggit_object_factory_get_default (),
38 ggit_object_factory_base_parent_class,
39 type,
40 n_construct_properties,
41 construct_properties);
42 }
43
44 static void
ggit_object_factory_base_class_init(GgitObjectFactoryBaseClass * klass)45 ggit_object_factory_base_class_init (GgitObjectFactoryBaseClass *klass)
46 {
47 GObjectClass *object_class = G_OBJECT_CLASS (klass);
48
49 object_class->constructor = ggit_object_factory_base_constructor;
50 }
51
52 static void
ggit_object_factory_base_init(GgitObjectFactoryBase * self)53 ggit_object_factory_base_init (GgitObjectFactoryBase *self)
54 {
55 }
56
57 /* ex:set ts=8 noet: */
58