mirror of git://git.sysmocom.de/ofono
smart_messaging: Add skeleton plugin
This commit is contained in:
parent
f4a0b9fa20
commit
801264fe03
|
@ -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 \
|
||||
|
|
|
@ -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 <config.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <glib.h>
|
||||
#include <gdbus.h>
|
||||
#include <ofono.h>
|
||||
|
||||
#define OFONO_API_SUBJECT_TO_CHANGE
|
||||
#include <ofono/plugin.h>
|
||||
#include <ofono/log.h>
|
||||
#include <ofono/modem.h>
|
||||
#include <ofono/dbus.h>
|
||||
|
||||
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)
|
Loading…
Reference in New Issue