mirror of git://git.sysmocom.de/ofono
dunmodem: Add skeleton for dialup modem driver
This commit is contained in:
parent
3180a4f5b1
commit
c9632f9817
25
Makefile.am
25
Makefile.am
|
@ -206,16 +206,6 @@ builtin_sources += drivers/atmodem/atutil.h \
|
|||
drivers/calypsomodem/voicecall.c \
|
||||
drivers/calypsomodem/stk.c
|
||||
|
||||
builtin_modules += hfpmodem
|
||||
builtin_sources += drivers/atmodem/atutil.h \
|
||||
drivers/hfpmodem/hfpmodem.h \
|
||||
drivers/hfpmodem/hfpmodem.c \
|
||||
drivers/hfpmodem/slc.h \
|
||||
drivers/hfpmodem/slc.c \
|
||||
drivers/hfpmodem/voicecall.c \
|
||||
drivers/hfpmodem/network-registration.c \
|
||||
drivers/hfpmodem/call-volume.c
|
||||
|
||||
builtin_modules += mbmmodem
|
||||
builtin_sources += drivers/atmodem/atutil.h \
|
||||
drivers/mbmmodem/mbmmodem.h \
|
||||
|
@ -254,6 +244,21 @@ builtin_sources += drivers/atmodem/atutil.h \
|
|||
drivers/stemodem/caif_socket.h \
|
||||
drivers/stemodem/if_caif.h
|
||||
|
||||
builtin_modules += dunmodem
|
||||
builtin_sources += drivers/atmodem/atutil.h \
|
||||
drivers/dunmodem/dunmodem.h \
|
||||
drivers/dunmodem/dunmodem.c
|
||||
|
||||
builtin_modules += hfpmodem
|
||||
builtin_sources += drivers/atmodem/atutil.h \
|
||||
drivers/hfpmodem/hfpmodem.h \
|
||||
drivers/hfpmodem/hfpmodem.c \
|
||||
drivers/hfpmodem/slc.h \
|
||||
drivers/hfpmodem/slc.c \
|
||||
drivers/hfpmodem/voicecall.c \
|
||||
drivers/hfpmodem/network-registration.c \
|
||||
drivers/hfpmodem/call-volume.c
|
||||
|
||||
if PHONESIM
|
||||
builtin_modules += phonesim
|
||||
builtin_sources += plugins/phonesim.c
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
*
|
||||
* oFono - Open Source Telephony
|
||||
*
|
||||
* Copyright (C) 2008-2011 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 <glib.h>
|
||||
#include <gatchat.h>
|
||||
|
||||
#define OFONO_API_SUBJECT_TO_CHANGE
|
||||
#include <ofono/plugin.h>
|
||||
#include <ofono/types.h>
|
||||
|
||||
#include "dunmodem.h"
|
||||
|
||||
static int dunmodem_init(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void dunmodem_exit(void)
|
||||
{
|
||||
}
|
||||
|
||||
OFONO_PLUGIN_DEFINE(dunmodem, "Dialup modem driver", VERSION,
|
||||
OFONO_PLUGIN_PRIORITY_DEFAULT,
|
||||
dunmodem_init, dunmodem_exit)
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
*
|
||||
* oFono - Open Source Telephony
|
||||
*
|
||||
* Copyright (C) 2008-2011 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
|
||||
*
|
||||
*/
|
||||
|
||||
#include <drivers/atmodem/atutil.h>
|
Loading…
Reference in New Issue