Stub plugin for Maemo specific extensions added.
[strongswan.git] / src / libcharon / plugins / maemo / maemo_plugin.c
1 /*
2 * Copyright (C) 2010 Tobias Brunner
3 * Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16 #include "maemo_plugin.h"
17
18 #include <daemon.h>
19
20 typedef struct private_maemo_plugin_t private_maemo_plugin_t;
21
22 /**
23 * private data of maemo plugin
24 */
25 struct private_maemo_plugin_t {
26
27 /**
28 * implements plugin interface
29 */
30 maemo_plugin_t public;
31
32 };
33
34 METHOD(plugin_t, destroy, void,
35 private_maemo_plugin_t *this)
36 {
37 free(this);
38 }
39
40 /*
41 * See header
42 */
43 plugin_t *maemo_plugin_create()
44 {
45 private_maemo_plugin_t *this;
46
47 INIT(this,
48 .public.plugin = {
49 .destroy = _destroy,
50 },
51 );
52
53 return &this->public.plugin;
54 }
55