mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
first try at building "libneutrino-hal" standalone
Origin commit data
------------------
Branch: master
Commit: 245c511981
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-02-03 (Fri, 03 Feb 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
16
.gitignore
vendored
Normal file
16
.gitignore
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/m4/
|
||||
/autom4te.cache/
|
||||
/aclocal.m4
|
||||
/config.guess
|
||||
/config.h.in
|
||||
/config.h.in~
|
||||
/config.sub
|
||||
/configure
|
||||
/depcomp
|
||||
/install-sh
|
||||
/libspark/Makefile.in
|
||||
/libtriple/Makefile.in
|
||||
/ltmain.sh
|
||||
/missing
|
||||
/Makefile.in
|
||||
|
22
Makefile.am
Normal file
22
Makefile.am
Normal file
@@ -0,0 +1,22 @@
|
||||
noinst_LIBRARIES = libneutrino-hal.a
|
||||
libneutrino_hal_a_SOURCES =
|
||||
SUBDIRS =
|
||||
|
||||
# there has to be a better way to do this...
|
||||
if BOXTYPE_TRIPLE
|
||||
SUBDIRS += libtriple
|
||||
libneutrino_hal_a_LIBADD = \
|
||||
libtriple/audio_td.o \
|
||||
libtriple/ca.o \
|
||||
libtriple/dmx_td.o \
|
||||
libtriple/init_td.o \
|
||||
libtriple/lt_debug.o \
|
||||
libtriple/lt_dfbinput.o \
|
||||
libtriple/playback_td.o \
|
||||
libtriple/pwrmngr.o \
|
||||
libtriple/record_td.o \
|
||||
libtriple/video_td.o
|
||||
endif
|
||||
if BOXTYPE_SPARK
|
||||
SUBDIRS += libspark
|
||||
endif
|
376
acinclude.m4
Normal file
376
acinclude.m4
Normal file
@@ -0,0 +1,376 @@
|
||||
AC_DEFUN([TUXBOX_APPS],[
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
AC_GNU_SOURCE
|
||||
AC_SYS_LARGEFILE
|
||||
|
||||
AC_ARG_WITH(target,
|
||||
[ --with-target=TARGET target for compilation [[native,cdk]]],
|
||||
[TARGET="$withval"],[TARGET="native"])
|
||||
|
||||
AC_ARG_WITH(targetprefix,
|
||||
[ --with-targetprefix=PATH prefix relative to target root (only applicable in cdk mode)],
|
||||
[targetprefix="$withval"],[targetprefix="NONE"])
|
||||
|
||||
AC_ARG_WITH(debug,
|
||||
[ --without-debug disable debugging code],
|
||||
[DEBUG="$withval"],[DEBUG="yes"])
|
||||
|
||||
if test "$DEBUG" = "yes"; then
|
||||
DEBUG_CFLAGS="-g3 -ggdb"
|
||||
AC_DEFINE(DEBUG,1,[Enable debug messages])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(target)
|
||||
|
||||
if test "$TARGET" = "native"; then
|
||||
AC_MSG_RESULT(native)
|
||||
|
||||
if test "$CFLAGS" = "" -a "$CXXFLAGS" = ""; then
|
||||
CFLAGS="-Wall -O2 -pipe $DEBUG_CFLAGS"
|
||||
CXXFLAGS="-Wall -O2 -pipe $DEBUG_CFLAGS"
|
||||
fi
|
||||
if test "$prefix" = "NONE"; then
|
||||
prefix=/usr/local
|
||||
fi
|
||||
targetprefix=$prefix
|
||||
elif test "$TARGET" = "cdk"; then
|
||||
AC_MSG_RESULT(cdk)
|
||||
|
||||
if test "$prefix" = "NONE"; then
|
||||
AC_MSG_ERROR(invalid prefix, you need to specify one in cdk mode)
|
||||
fi
|
||||
if test "$targetprefix" = "NONE"; then
|
||||
targetprefix=""
|
||||
fi
|
||||
else
|
||||
AC_MSG_RESULT(none)
|
||||
AC_MSG_ERROR([invalid target $TARGET, choose on from native,cdk]);
|
||||
fi
|
||||
|
||||
AC_CANONICAL_BUILD
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
check_path () {
|
||||
return $(perl -e "if(\"$1\"=~m#^/usr/(local/)?bin#){print \"0\"}else{print \"1\";}")
|
||||
}
|
||||
|
||||
])
|
||||
|
||||
AC_DEFUN([TUXBOX_APPS_DIRECTORY_ONE],[
|
||||
AC_ARG_WITH($1,[ $6$7 [[PREFIX$4$5]]],[
|
||||
_$2=$withval
|
||||
if test "$TARGET" = "cdk"; then
|
||||
$2=`eval echo "${targetprefix}$withval"`
|
||||
else
|
||||
$2=$withval
|
||||
fi
|
||||
TARGET_$2=${$2}
|
||||
],[
|
||||
$2="\${$3}$5"
|
||||
if test "$TARGET" = "cdk"; then
|
||||
_$2=`eval echo "${target$3}$5"`
|
||||
else
|
||||
_$2=`eval echo "${$3}$5"`
|
||||
fi
|
||||
TARGET_$2=$_$2
|
||||
])
|
||||
|
||||
dnl automake <= 1.6 don't support this
|
||||
dnl AC_SUBST($2)
|
||||
AC_DEFINE_UNQUOTED($2,"$_$2",$7)
|
||||
AC_SUBST(TARGET_$2)
|
||||
])
|
||||
|
||||
AC_DEFUN([TUXBOX_APPS_DIRECTORY],[
|
||||
AC_REQUIRE([TUXBOX_APPS])
|
||||
|
||||
if test "$TARGET" = "cdk"; then
|
||||
datadir="\${prefix}/share"
|
||||
sysconfdir="\${prefix}/etc"
|
||||
localstatedir="\${prefix}/var"
|
||||
libdir="\${prefix}/lib"
|
||||
targetdatadir="\${targetprefix}/share"
|
||||
targetsysconfdir="\${targetprefix}/etc"
|
||||
targetlocalstatedir="\${targetprefix}/var"
|
||||
targetlibdir="\${targetprefix}/lib"
|
||||
fi
|
||||
|
||||
TUXBOX_APPS_DIRECTORY_ONE(configdir,CONFIGDIR,localstatedir,/var,/tuxbox/config,
|
||||
[--with-configdir=PATH ],[where to find the config files])
|
||||
|
||||
TUXBOX_APPS_DIRECTORY_ONE(datadir,DATADIR,datadir,/share,/tuxbox,
|
||||
[--with-datadir=PATH ],[where to find data])
|
||||
|
||||
TUXBOX_APPS_DIRECTORY_ONE(fontdir,FONTDIR,datadir,/share,/fonts,
|
||||
[--with-fontdir=PATH ],[where to find the fonts])
|
||||
|
||||
TUXBOX_APPS_DIRECTORY_ONE(gamesdir,GAMESDIR,localstatedir,/var,/tuxbox/games,
|
||||
[--with-gamesdir=PATH ],[where games data is stored])
|
||||
|
||||
TUXBOX_APPS_DIRECTORY_ONE(libdir,LIBDIR,libdir,/lib,/tuxbox,
|
||||
[--with-libdir=PATH ],[where to find the internal libs])
|
||||
|
||||
TUXBOX_APPS_DIRECTORY_ONE(plugindir,PLUGINDIR,libdir,/lib,/tuxbox/plugins,
|
||||
[--with-plugindir=PATH ],[where to find the plugins])
|
||||
|
||||
TUXBOX_APPS_DIRECTORY_ONE(ucodedir,UCODEDIR,localstatedir,/var,/tuxbox/ucodes,
|
||||
[--with-ucodedir=PATH ],[where to find the ucodes])
|
||||
|
||||
TUXBOX_APPS_DIRECTORY_ONE(themesdir,THEMESDIR,datadir,/share,/tuxbox/neutrino/themes,
|
||||
[--with-themesdir=PATH ],[where to find the themes (don't change)])
|
||||
])
|
||||
|
||||
dnl automake <= 1.6 needs this specifications
|
||||
AC_SUBST(CONFIGDIR)
|
||||
AC_SUBST(DATADIR)
|
||||
AC_SUBST(FONTDIR)
|
||||
AC_SUBST(GAMESDIR)
|
||||
AC_SUBST(LIBDIR)
|
||||
AC_SUBST(PLUGINDIR)
|
||||
AC_SUBST(UCODEDIR)
|
||||
AC_SUBST(THEMESDIR)
|
||||
dnl end workaround
|
||||
|
||||
AC_DEFUN([TUXBOX_APPS_ENDIAN],[
|
||||
AC_CHECK_HEADERS(endian.h)
|
||||
AC_C_BIGENDIAN
|
||||
])
|
||||
|
||||
AC_DEFUN([TUXBOX_APPS_DVB],[
|
||||
AC_ARG_WITH(dvbincludes,
|
||||
[ --with-dvbincludes=PATH path for dvb includes [[NONE]]],
|
||||
[DVBINCLUDES="$withval"],[DVBINCLUDES=""])
|
||||
|
||||
if test "$DVBINCLUDES"; then
|
||||
CPPFLAGS="$CPPFLAGS -I$DVBINCLUDES"
|
||||
fi
|
||||
|
||||
if test -z "$DVB_API_VERSION"; then
|
||||
AC_CHECK_HEADERS(linux/dvb/version.h,[
|
||||
AC_LANG_PREPROC_REQUIRE()
|
||||
AC_REQUIRE([AC_PROG_EGREP])
|
||||
AC_LANG_CONFTEST([AC_LANG_SOURCE([[
|
||||
#include <linux/dvb/version.h>
|
||||
version DVB_API_VERSION
|
||||
]])])
|
||||
DVB_API_VERSION=`(eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | $EGREP "^version" | sed "s,version\ ,,"`
|
||||
rm -f conftest*
|
||||
|
||||
AC_MSG_NOTICE([found dvb version $DVB_API_VERSION])
|
||||
])
|
||||
fi
|
||||
|
||||
if test "$DVB_API_VERSION"; then
|
||||
AC_DEFINE(HAVE_DVB,1,[Define to 1 if you have the dvb includes])
|
||||
AC_DEFINE_UNQUOTED(HAVE_DVB_API_VERSION,$DVB_API_VERSION,[Define to the version of the dvb api])
|
||||
else
|
||||
AC_MSG_ERROR([can't find dvb headers])
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([_TUXBOX_APPS_LIB_CONFIG],[
|
||||
AC_PATH_PROG($1_CONFIG,$2,no)
|
||||
if test "$$1_CONFIG" != "no"; then
|
||||
if test "$TARGET" = "cdk" && check_path "$$1_CONFIG"; then
|
||||
AC_MSG_$3([could not find a suitable version of $2]);
|
||||
else
|
||||
if test "$1" = "CURL"; then
|
||||
$1_CFLAGS=$($$1_CONFIG --cflags)
|
||||
$1_LIBS=$($$1_CONFIG --libs)
|
||||
else
|
||||
if test "$1" = "FREETYPE"; then
|
||||
$1_CFLAGS=$($$1_CONFIG --cflags)
|
||||
$1_LIBS=$($$1_CONFIG --libs)
|
||||
else
|
||||
$1_CFLAGS=$($$1_CONFIG --prefix=$targetprefix --cflags)
|
||||
$1_LIBS=$($$1_CONFIG --prefix=$targetprefix --libs)
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST($1_CFLAGS)
|
||||
AC_SUBST($1_LIBS)
|
||||
])
|
||||
|
||||
AC_DEFUN([TUXBOX_APPS_LIB_CONFIG],[
|
||||
_TUXBOX_APPS_LIB_CONFIG($1,$2,ERROR)
|
||||
if test "$$1_CONFIG" = "no"; then
|
||||
AC_MSG_ERROR([could not find $2]);
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([TUXBOX_APPS_LIB_CONFIG_CHECK],[
|
||||
_TUXBOX_APPS_LIB_CONFIG($1,$2,WARN)
|
||||
])
|
||||
|
||||
AC_DEFUN([TUXBOX_APPS_PKGCONFIG],[
|
||||
AC_PATH_PROG(PKG_CONFIG, pkg-config,no)
|
||||
if test "$PKG_CONFIG" = "no" ; then
|
||||
AC_MSG_ERROR([could not find pkg-config]);
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([_TUXBOX_APPS_LIB_PKGCONFIG],[
|
||||
AC_REQUIRE([TUXBOX_APPS_PKGCONFIG])
|
||||
AC_MSG_CHECKING(for package $2)
|
||||
if $PKG_CONFIG --exists "$2" ; then
|
||||
AC_MSG_RESULT(yes)
|
||||
$1_CFLAGS=$($PKG_CONFIG --cflags "$2")
|
||||
$1_LIBS=$($PKG_CONFIG --libs "$2")
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
||||
AC_SUBST($1_CFLAGS)
|
||||
AC_SUBST($1_LIBS)
|
||||
])
|
||||
|
||||
AC_DEFUN([TUXBOX_APPS_LIB_PKGCONFIG],[
|
||||
_TUXBOX_APPS_LIB_PKGCONFIG($1,$2)
|
||||
if test -z "$$1_CFLAGS" ; then
|
||||
AC_MSG_ERROR([could not find package $2]);
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([TUXBOX_APPS_LIB_PKGCONFIG_CHECK],[
|
||||
_TUXBOX_APPS_LIB_PKGCONFIG($1,$2)
|
||||
])
|
||||
|
||||
AC_DEFUN([_TUXBOX_APPS_LIB_SYMBOL],[
|
||||
AC_CHECK_LIB($2,$3,HAVE_$1="yes",HAVE_$1="no")
|
||||
if test "$HAVE_$1" = "yes"; then
|
||||
$1_LIBS=-l$2
|
||||
fi
|
||||
|
||||
AC_SUBST($1_LIBS)
|
||||
])
|
||||
|
||||
AC_DEFUN([TUXBOX_APPS_LIB_SYMBOL],[
|
||||
_TUXBOX_APPS_LIB_SYMBOL($1,$2,$3,ERROR)
|
||||
if test "$HAVE_$1" = "no"; then
|
||||
AC_MSG_ERROR([could not find $2]);
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN([TUXBOX_APPS_LIB_CONFIG_SYMBOL],[
|
||||
_TUXBOX_APPS_LIB_SYMBOL($1,$2,$3,WARN)
|
||||
])
|
||||
|
||||
AC_DEFUN([TUXBOX_BOXTYPE],[
|
||||
AC_ARG_WITH(boxtype,
|
||||
[ --with-boxtype valid values: dbox2,tripledragon,dreambox,ipbox,coolstream,spark,generic],
|
||||
[case "${withval}" in
|
||||
dbox2|dreambox|ipbox|tripledragon|coolstream|spark|generic)
|
||||
BOXTYPE="$withval"
|
||||
;;
|
||||
dm*)
|
||||
BOXTYPE="dreambox"
|
||||
BOXMODEL="$withval"
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([bad value $withval for --with-boxtype]) ;;
|
||||
esac], [BOXTYPE="coolstream"])
|
||||
|
||||
AC_ARG_WITH(boxmodel,
|
||||
[ --with-boxmodel valid for dreambox: dm500, dm500plus, dm600pvr, dm56x0, dm7000, dm7020, dm7025
|
||||
valid for ipbox: ip200, ip250, ip350, ip400],
|
||||
[case "${withval}" in
|
||||
dm500|dm500plus|dm600pvr|dm56x0|dm7000|dm7020|dm7025)
|
||||
if test "$BOXTYPE" = "dreambox"; then
|
||||
BOXMODEL="$withval"
|
||||
else
|
||||
AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
|
||||
fi
|
||||
;;
|
||||
ip200|ip250|ip350|ip400)
|
||||
if test "$BOXTYPE" = "ipbox"; then
|
||||
BOXMODEL="$withval"
|
||||
else
|
||||
AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([unsupported value $withval for --with-boxmodel])
|
||||
;;
|
||||
esac],
|
||||
[if test "$BOXTYPE" = "dreambox" -o "$BOXTYPE" = "ipbox" && test -z "$BOXMODEL"; then
|
||||
AC_MSG_ERROR([Dreambox/IPBox needs --with-boxmodel])
|
||||
fi])
|
||||
|
||||
AC_SUBST(BOXTYPE)
|
||||
AC_SUBST(BOXMODEL)
|
||||
|
||||
AM_CONDITIONAL(BOXTYPE_DBOX2, test "$BOXTYPE" = "dbox2")
|
||||
AM_CONDITIONAL(BOXTYPE_TRIPLE, test "$BOXTYPE" = "tripledragon")
|
||||
AM_CONDITIONAL(BOXTYPE_SPARK, test "$BOXTYPE" = "spark")
|
||||
AM_CONDITIONAL(BOXTYPE_DREAMBOX, test "$BOXTYPE" = "dreambox")
|
||||
AM_CONDITIONAL(BOXTYPE_IPBOX, test "$BOXTYPE" = "ipbox")
|
||||
AM_CONDITIONAL(BOXTYPE_COOL, test "$BOXTYPE" = "coolstream")
|
||||
AM_CONDITIONAL(BOXTYPE_GENERIC, test "$BOXTYPE" = "generic")
|
||||
|
||||
AM_CONDITIONAL(BOXMODEL_DM500,test "$BOXMODEL" = "dm500")
|
||||
AM_CONDITIONAL(BOXMODEL_DM500PLUS,test "$BOXMODEL" = "dm500plus")
|
||||
AM_CONDITIONAL(BOXMODEL_DM600PVR,test "$BOXMODEL" = "dm600pvr")
|
||||
AM_CONDITIONAL(BOXMODEL_DM56x0,test "$BOXMODEL" = "dm56x0")
|
||||
AM_CONDITIONAL(BOXMODEL_DM7000,test "$BOXMODEL" = "dm7000" -o "$BOXMODEL" = "dm7020" -o "$BOXMODEL" = "dm7025")
|
||||
|
||||
AM_CONDITIONAL(BOXMODEL_IP200,test "$BOXMODEL" = "ip200")
|
||||
AM_CONDITIONAL(BOXMODEL_IP250,test "$BOXMODEL" = "ip250")
|
||||
AM_CONDITIONAL(BOXMODEL_IP350,test "$BOXMODEL" = "ip350")
|
||||
AM_CONDITIONAL(BOXMODEL_IP400,test "$BOXMODEL" = "ip400")
|
||||
|
||||
if test "$BOXTYPE" = "dbox2"; then
|
||||
AC_DEFINE(HAVE_DBOX_HARDWARE, 1, [building for a dbox2])
|
||||
elif test "$BOXTYPE" = "tripledragon"; then
|
||||
AC_DEFINE(HAVE_TRIPLEDRAGON, 1, [building for a tripledragon])
|
||||
elif test "$BOXTYPE" = "spark"; then
|
||||
AC_DEFINE(HAVE_SPARK_HARDWARE, 1, [building for a spark st7111 box])
|
||||
elif test "$BOXTYPE" = "dreambox"; then
|
||||
AC_DEFINE(HAVE_DREAMBOX_HARDWARE, 1, [building for a dreambox])
|
||||
elif test "$BOXTYPE" = "ipbox"; then
|
||||
AC_DEFINE(HAVE_IPBOX_HARDWARE, 1, [building for an ipbox])
|
||||
elif test "$BOXTYPE" = "coolstream"; then
|
||||
AC_DEFINE(HAVE_COOL_HARDWARE, 1, [building for a coolstream])
|
||||
elif test "$BOXTYPE" = "generic"; then
|
||||
AC_DEFINE(HAVE_GENERIC_HARDWARE, 1, [building for a generic device like a standard PC])
|
||||
fi
|
||||
|
||||
# TODO: do we need more defines?
|
||||
if test "$BOXMODEL" = "dm500"; then
|
||||
AC_DEFINE(BOXMODEL_DM500, 1, [dreambox 500])
|
||||
elif test "$BOXMODEL" = "ip200"; then
|
||||
AC_DEFINE(BOXMODEL_IP200, 1, [ipbox 200])
|
||||
elif test "$BOXMODEL" = "ip250"; then
|
||||
AC_DEFINE(BOXMODEL_IP250, 1, [ipbox 250])
|
||||
elif test "$BOXMODEL" = "ip350"; then
|
||||
AC_DEFINE(BOXMODEL_IP350, 1, [ipbox 350])
|
||||
elif test "$BOXMODEL" = "ip400"; then
|
||||
AC_DEFINE(BOXMODEL_IP400, 1, [ipbox 400])
|
||||
fi
|
||||
])
|
||||
|
||||
dnl backward compatiblity
|
||||
AC_DEFUN([AC_GNU_SOURCE],
|
||||
[AH_VERBATIM([_GNU_SOURCE],
|
||||
[/* Enable GNU extensions on systems that have them. */
|
||||
#ifndef _GNU_SOURCE
|
||||
# undef _GNU_SOURCE
|
||||
#endif])dnl
|
||||
AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
|
||||
AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
|
||||
AC_DEFINE([_GNU_SOURCE])
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_PROG_EGREP],
|
||||
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
|
||||
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
||||
then ac_cv_prog_egrep='grep -E'
|
||||
else ac_cv_prog_egrep='egrep'
|
||||
fi])
|
||||
EGREP=$ac_cv_prog_egrep
|
||||
AC_SUBST([EGREP])
|
||||
])
|
||||
|
8
autogen.sh
Executable file
8
autogen.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd $(dirname $0)
|
||||
aclocal --force
|
||||
libtoolize --force
|
||||
autoconf --force
|
||||
autoheader --force
|
||||
automake --add-missing --force-missing --foreign
|
24
configure.ac
Normal file
24
configure.ac
Normal file
@@ -0,0 +1,24 @@
|
||||
AC_INIT(libneutrino-hal,0.1.1)
|
||||
AM_INIT_AUTOMAKE(libneutrino-hal,0.1.1)
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
TUXBOX_APPS
|
||||
TUXBOX_APPS_DIRECTORY
|
||||
TUXBOX_APPS_PKGCONFIG
|
||||
TUXBOX_BOXTYPE
|
||||
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
AC_DISABLE_STATIC
|
||||
AC_SYS_LARGEFILE
|
||||
AM_PROG_LIBTOOL
|
||||
|
||||
TUXBOX_APPS_LIB_PKGCONFIG(DIRECTFB, directfb)
|
||||
|
||||
AC_OUTPUT([
|
||||
Makefile
|
||||
libtriple/Makefile
|
||||
libspark/Makefile
|
||||
])
|
||||
|
7
include/audio_td.h
Normal file
7
include/audio_td.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#if HAVE_TRIPLEDRAGON
|
||||
#include "../libtriple/audio_td.h"
|
||||
#elif HAVE_SPARK_HARDWARE
|
||||
#include "../libspark/audio_lib.h"
|
||||
#else
|
||||
#error neither HAVE_TRIPLEDRAGON nor HAVE_SPARK_HARDWARE defined
|
||||
#endif
|
7
include/ca_cs.h
Normal file
7
include/ca_cs.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#if HAVE_TRIPLEDRAGON
|
||||
#include "../libtriple/ca_cs.h"
|
||||
#elif HAVE_SPARK_HARDWARE
|
||||
#include "../libspark/ca_cs.h"
|
||||
#else
|
||||
#error neither HAVE_TRIPLEDRAGON nor HAVE_SPARK_HARDWARE defined
|
||||
#endif
|
7
include/cs_api.h
Normal file
7
include/cs_api.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#if HAVE_TRIPLEDRAGON
|
||||
#include "../libtriple/cs_api.h"
|
||||
#elif HAVE_SPARK_HARDWARE
|
||||
#include "../libspark/cs_api.h"
|
||||
#else
|
||||
#error neither HAVE_TRIPLEDRAGON nor HAVE_SPARK_HARDWARE defined
|
||||
#endif
|
1
include/dmx_cs.h
Normal file
1
include/dmx_cs.h
Normal file
@@ -0,0 +1 @@
|
||||
#include "dmx_td.h"
|
7
include/dmx_td.h
Normal file
7
include/dmx_td.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#if HAVE_TRIPLEDRAGON
|
||||
#include "../libtriple/dmx_td.h"
|
||||
#elif HAVE_SPARK_HARDWARE
|
||||
#include "../libspark/dmx_lib.h"
|
||||
#else
|
||||
#error neither HAVE_TRIPLEDRAGON nor HAVE_SPARK_HARDWARE defined
|
||||
#endif
|
2
include/init_cs.h
Normal file
2
include/init_cs.h
Normal file
@@ -0,0 +1,2 @@
|
||||
#warning using init_cs.h from libneutrino-hal
|
||||
#include "init_td.h"
|
5
include/init_td.h
Normal file
5
include/init_td.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#ifndef __INIT_TD_H
|
||||
#define __INIT_TD_H
|
||||
void init_td_api();
|
||||
void shutdown_td_api();
|
||||
#endif
|
7
include/lt_debug.h
Normal file
7
include/lt_debug.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#if HAVE_TRIPLEDRAGON
|
||||
#include "../libtriple/playback_td.h"
|
||||
#elif HAVE_SPARK_HARDWARE
|
||||
#include "../libspark/playback_lib.h"
|
||||
#else
|
||||
#error neither HAVE_TRIPLEDRAGON nor HAVE_SPARK_HARDWARE defined
|
||||
#endif
|
23
include/mmi.h
Normal file
23
include/mmi.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef __MMI_H_
|
||||
#define __MMI_H_
|
||||
|
||||
#define MAX_MMI_ITEMS 40
|
||||
#define MAX_MMI_TEXT_LEN 255
|
||||
#define MAX_MMI_CHOICE_TEXT_LEN 255
|
||||
|
||||
typedef struct {
|
||||
int choice_nb;
|
||||
char title[MAX_MMI_TEXT_LEN];
|
||||
char subtitle[MAX_MMI_TEXT_LEN];
|
||||
char bottom[MAX_MMI_TEXT_LEN];
|
||||
char choice_item[MAX_MMI_ITEMS][MAX_MMI_CHOICE_TEXT_LEN];
|
||||
} MMI_MENU_LIST_INFO;
|
||||
|
||||
typedef struct {
|
||||
int blind;
|
||||
int answerlen;
|
||||
char enguiryText[MAX_MMI_TEXT_LEN];
|
||||
} MMI_ENGUIRY_INFO;
|
||||
|
||||
#endif // __MMI_H_
|
||||
|
1
include/playback.h
Normal file
1
include/playback.h
Normal file
@@ -0,0 +1 @@
|
||||
#include "playback_td.h"
|
7
include/playback_td.h
Normal file
7
include/playback_td.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#if HAVE_TRIPLEDRAGON
|
||||
#include "../libtriple/playback_td.h"
|
||||
#elif HAVE_SPARK_HARDWARE
|
||||
#include "../libspark/playback_lib.h"
|
||||
#else
|
||||
#error neither HAVE_TRIPLEDRAGON nor HAVE_SPARK_HARDWARE defined
|
||||
#endif
|
7
include/pwrmngr.h
Normal file
7
include/pwrmngr.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#if HAVE_TRIPLEDRAGON
|
||||
#include "../libtriple/pwrmngr.h"
|
||||
#elif HAVE_SPARK_HARDWARE
|
||||
#include "../libspark/pwrmngr.h"
|
||||
#else
|
||||
#error neither HAVE_TRIPLEDRAGON nor HAVE_SPARK_HARDWARE defined
|
||||
#endif
|
7
include/record_td.h
Normal file
7
include/record_td.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#if HAVE_TRIPLEDRAGON
|
||||
#include "../libtriple/record_td.h"
|
||||
#elif HAVE_SPARK_HARDWARE
|
||||
#include "../libspark/record_lib.h"
|
||||
#else
|
||||
#error neither HAVE_TRIPLEDRAGON nor HAVE_SPARK_HARDWARE defined
|
||||
#endif
|
7
include/video_td.h
Normal file
7
include/video_td.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#if HAVE_TRIPLEDRAGON
|
||||
#include "../libtriple/video_td.h"
|
||||
#elif HAVE_SPARK_HARDWARE
|
||||
#include "../libspark/video_lib.h"
|
||||
#else
|
||||
#error neither HAVE_TRIPLEDRAGON nor HAVE_SPARK_HARDWARE defined
|
||||
#endif
|
Reference in New Issue
Block a user