Add skeleton for plugin to handle static modem configurations

This commit is contained in:
Marcel Holtmann 2009-09-02 14:40:50 -07:00
parent 31af3db152
commit 9177c1dd86
2 changed files with 42 additions and 0 deletions

View File

@ -81,6 +81,9 @@ builtin_sources += $(gatchat_sources) drivers/atmodem/at.h \
drivers/atmodem/ssn.c \
drivers/atmodem/devinfo.c
builtin_modules += modemconf
builtin_sources += plugins/modemconf.c
builtin_sources += plugins/chat.h plugins/chat.c
builtin_modules += generic_at

39
plugins/modemconf.c Normal file
View File

@ -0,0 +1,39 @@
/*
*
* oFono - Open Source Telephony
*
* Copyright (C) 2008-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 OFONO_API_SUBJECT_TO_CHANGE
#include <ofono/plugin.h>
static int modemconf_init(void)
{
return 0;
}
static void modemconf_exit(void)
{
}
OFONO_PLUGIN_DEFINE(modemconf, "Static modem configuration", VERSION,
OFONO_PLUGIN_PRIORITY_DEFAULT, modemconf_init, modemconf_exit)