diff options
Diffstat (limited to 'src/frontends/maemo/src')
-rw-r--r-- | src/frontends/maemo/src/Makefile.am | 7 | ||||
-rw-r--r-- | src/frontends/maemo/src/strongswan-settings.c | 40 |
2 files changed, 47 insertions, 0 deletions
diff --git a/src/frontends/maemo/src/Makefile.am b/src/frontends/maemo/src/Makefile.am index 8b1378917..cea0341ba 100644 --- a/src/frontends/maemo/src/Makefile.am +++ b/src/frontends/maemo/src/Makefile.am @@ -1 +1,8 @@ +pluginlib_LTLIBRARIES = libstrongswan-settings.la +libstrongswan_settings_la_SOURCES = \ + strongswan-settings.c + +libstrongswan_settings_la_LIBADD = $(HILDON_LIBS) +libstrongswan_settings_la_CFLAGS = $(HILDON_CFLAGS) +libstrongswan_settings_la_LDFLAGS = -module -avoid-version diff --git a/src/frontends/maemo/src/strongswan-settings.c b/src/frontends/maemo/src/strongswan-settings.c new file mode 100644 index 000000000..f8c371959 --- /dev/null +++ b/src/frontends/maemo/src/strongswan-settings.c @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2010 Tobias Brunner + * Hochschule fuer Technik Rapperswil + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +#include <hildon-cp-plugin/hildon-cp-plugin-interface.h> + +/** + * main callback for control panel plugins + */ +osso_return_t execute(osso_context_t *osso, gpointer data, + gboolean user_activated) +{ + if (!user_activated) + { + /* load state */ + } + + return OSSO_OK; +} + +/** + * callback called in case state has to be saved + */ +osso_return_t save_state(osso_context_t *osso, gpointer data) +{ + /* save state */ + return OSSO_OK; +} + |