Debian Codegraph @

src/plugins/cd-plugin-example.c

raw
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
2 *
3 * Copyright (C) 2012 Richard Hughes <[email protected]>
4 *
5 * Licensed under the GNU General Public License Version 2
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program 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
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 */
21
22 #include <config.h>
23 #include <gio/gio.h>
24 #include <cd-plugin.h>
25
26 struct CdPluginPrivate {
27 guint dummy;
28 };
29
30 const gchar *
31 cd_plugin_get_description (void)
32 {
33 return "A dummy plugin that doesn't do anything";
34 }
35
36 void
37 cd_plugin_initialize (CdPlugin *plugin)
38 {
39 /* create private area */
40 plugin->priv = CD_PLUGIN_GET_PRIVATE (CdPluginPrivate);
41 plugin->priv->dummy = 999;
42 }
43
44 void
45 cd_plugin_destroy (CdPlugin *plugin)
46 {
47 plugin->priv->dummy = 0;
48 }