diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-30 15:45:06 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-01-30 15:45:06 +0100 |
commit | 8be7c88e4db7281e2660e0b04bc015e7ad696481 (patch) | |
tree | 6c4203ba45f630d055a11603ebe2cbe37a2d6bf8 /plugins | |
parent | 45dc7174507082f96a30d538397e186788ff9173 (diff) | |
download | connman-8be7c88e4db7281e2660e0b04bc015e7ad696481.tar.gz connman-8be7c88e4db7281e2660e0b04bc015e7ad696481.tar.bz2 connman-8be7c88e4db7281e2660e0b04bc015e7ad696481.zip |
Add skeleton for OSPM plugin
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Makefile.am | 7 | ||||
-rw-r--r-- | plugins/ospm.c | 40 |
2 files changed, 47 insertions, 0 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 0bda0288..4c43ea5c 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -103,6 +103,13 @@ policy_DATA = connman.policy endif endif +if OSPM +plugin_LTLIBRARIES += ospm.la + +polkit_la_SOURCES = ospm.c +polkit_la_CFLAGS = @GDBUS_CFLAGS@ +endif + if FAKE plugin_LTLIBRARIES += fake.la diff --git a/plugins/ospm.c b/plugins/ospm.c new file mode 100644 index 00000000..87f18c64 --- /dev/null +++ b/plugins/ospm.c @@ -0,0 +1,40 @@ +/* + * + * Connection Manager + * + * Copyright (C) 2007-2009 Intel Corporation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * 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. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#define CONNMAN_API_SUBJECT_TO_CHANGE +#include <connman/plugin.h> +#include <connman/log.h> + +static int ospm_init(void) +{ + return 0; +} + +static void ospm_exit(void) +{ +} + +CONNMAN_PLUGIN_DEFINE(ospm, "OSPM notification plugin", VERSION, + ospm_init, ospm_exit) |