comparison libpurple/sound-loader.c @ 25083:c1cabd5eb625

Added skeleton (non-working) sound loader class
author Justin Rodriguez <ffdragon@soc.pidgin.im>
date Thu, 12 Jun 2008 22:13:54 +0000
parents
children 623f0b40f6f6
comparison
equal deleted inserted replaced
25082:1cf10adc9b32 25083:c1cabd5eb625
1 /*
2 * SoundThemeLoader for LibPurple
3 *
4 * Pidgin is the legal property of its developers, whose names are too numerous
5 * to list here. Please refer to the COPYRIGHT file distributed with this
6 * source distribution.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
21 *
22 */
23
24 #include "sound-loader.h"
25 /*****************************************************************************
26 * Sound Theme Builder
27 *****************************************************************************/
28
29 static PurpleSoundTheme *
30 purple_sound_loader_build(const gchar *dir)
31 {
32 return NULL; /*TODO: unimplemented*/
33 }
34
35 /******************************************************************************
36 * GObject Stuff
37 *****************************************************************************/
38
39 static void
40 purple_sound_theme_loader_class_init (PurpleThemeLoaderClass *klass)
41 {
42 PurpleThemeLoaderClass *loader_class = PURPLE_THEME_LOADER_CLASS(klass);
43
44 loader_class->_purple_theme_loader_build = purple_sound_loader_build;
45 }
46
47
48 GType
49 purple_sound_theme_loader_get_type (void)
50 {
51 static GType type = 0;
52 if (type == 0) {
53 static const GTypeInfo info = {
54 sizeof (PurpleSoundThemeLoaderClass),
55 NULL, /* base_init */
56 NULL, /* base_finalize */
57 (GClassInitFunc)purple_sound_theme_loader_class_init, /* class_init */
58 NULL, /* class_finalize */
59 NULL, /* class_data */
60 sizeof (PurpleSoundThemeLoader),
61 0, /* n_preallocs */
62 NULL, /* instance_init */
63 NULL, /* value table */
64 };
65 type = g_type_register_static (G_TYPE_OBJECT,
66 "PurpleSoundThemeLoaderType",
67 &info, 0);
68 }
69 return type;
70 }
71
72