From 801264fe03f9d9eea30480d1bd4b3222bbeed9a9 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 28 Sep 2010 22:51:47 -0500 Subject: [PATCH] smart_messaging: Add skeleton plugin --- Makefile.am | 3 +++ plugins/smart_messaging.c | 49 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 plugins/smart_messaging.c diff --git a/Makefile.am b/Makefile.am index 957dd826..d42f13d5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -280,6 +280,9 @@ builtin_modules += example_history example_nettime builtin_sources += plugins/example_history.c plugins/example_nettime.c endif +builtin_modules += smart_messaging +builtin_sources += plugins/smart_messaging.c + sbin_PROGRAMS = src/ofonod src_ofonod_SOURCES = $(gdbus_sources) $(builtin_sources) src/ofono.ver \ diff --git a/plugins/smart_messaging.c b/plugins/smart_messaging.c new file mode 100644 index 00000000..45907100 --- /dev/null +++ b/plugins/smart_messaging.c @@ -0,0 +1,49 @@ +/* + * oFono - Open Source Telephony + * + * Copyright (C) 2008-2010 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 +#endif +#include +#include +#include +#include +#include +#include +#include + +#define OFONO_API_SUBJECT_TO_CHANGE +#include +#include +#include +#include + +static int smart_messaging_init() +{ + return 0; +} + +static void smart_messaging_exit() +{ +} + +OFONO_PLUGIN_DEFINE(smart_messaging, "Smart Messaging Plugin", VERSION, + OFONO_PLUGIN_PRIORITY_DEFAULT, + smart_messaging_init, smart_messaging_exit)