mirror of git://git.sysmocom.de/ofono
Add skeleton for AT modem driver plugin
This commit is contained in:
parent
edfe9c7adb
commit
4f54515209
|
@ -3,6 +3,9 @@ builtin_modules =
|
|||
builtin_sources =
|
||||
builtin_cflags =
|
||||
|
||||
builtin_modules += atmodem
|
||||
builtin_sources += atmodem/main.c
|
||||
|
||||
noinst_LTLIBRARIES = libbuiltin.la
|
||||
|
||||
libbuiltin_la_SOURCES = $(builtin_sources)
|
||||
|
@ -13,6 +16,10 @@ BUILT_SOURCES = builtin.h
|
|||
|
||||
nodist_libbuiltin_la_SOURCES = $(BUILT_SOURCES)
|
||||
|
||||
AM_CFLAGS = -fvisibility=hidden @GLIB_CFLAGS@ @GDBUS_CFLAGS@ @GATCHAT_CFLAGS@
|
||||
|
||||
INCLUDES = -I$(top_builddir)/include
|
||||
|
||||
CLEANFILES = $(BUILT_SOURCES)
|
||||
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
*
|
||||
* 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>
|
||||
#include <ofono/log.h>
|
||||
|
||||
static int atmodem_init(void)
|
||||
{
|
||||
DBG("");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void atmodem_exit(void)
|
||||
{
|
||||
DBG("");
|
||||
}
|
||||
|
||||
OFONO_PLUGIN_DEFINE(atmodem, "AT modem driver", VERSION,
|
||||
OFONO_PLUGIN_PRIORITY_DEFAULT, atmodem_init, atmodem_exit)
|
|
@ -15,7 +15,7 @@ ofonod_SOURCES = main.c ofono.h log.c plugin.c \
|
|||
|
||||
ofonod_LDADD = $(top_builddir)/plugins/libbuiltin.la \
|
||||
$(top_builddir)/drivers/libbuiltin.la \
|
||||
@GDBUS_LIBS@ @GLIB_LIBS@ @GTHREAD_LIBS@ -ldl
|
||||
@GATCHAT_LIBS@ @GDBUS_LIBS@ @GLIB_LIBS@ @GTHREAD_LIBS@ -ldl
|
||||
|
||||
ofonod_LDFLAGS = -Wl,--export-dynamic -Wl,--version-script=ofono.ver
|
||||
|
||||
|
@ -29,8 +29,8 @@ else
|
|||
plugindir = $(libdir)/ofono/plugins
|
||||
endif
|
||||
|
||||
AM_CFLAGS = @GTHREAD_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@ \
|
||||
-DPLUGINDIR=\""$(plugindir)"\"
|
||||
AM_CFLAGS = @GTHREAD_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@ @GATCHAT_CFLAGS@ \
|
||||
-DPLUGINDIR=\""$(plugindir)"\"
|
||||
|
||||
INCLUDES = -I$(top_builddir)/include -I$(top_builddir)
|
||||
|
||||
|
|
Loading…
Reference in New Issue