From bba10f9f61a47029951ed8f31af50f1e7f894d91 Mon Sep 17 00:00:00 2001 From: john30 Date: Sun, 16 Oct 2016 09:44:51 +0200 Subject: [PATCH] added contributed libebus datatypes --- src/lib/ebus/contrib/Makefile.am | 10 ++++++++++ src/lib/ebus/contrib/contrib.cpp | 26 ++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/lib/ebus/contrib/Makefile.am create mode 100644 src/lib/ebus/contrib/contrib.cpp diff --git a/src/lib/ebus/contrib/Makefile.am b/src/lib/ebus/contrib/Makefile.am new file mode 100644 index 00000000..dc027b95 --- /dev/null +++ b/src/lib/ebus/contrib/Makefile.am @@ -0,0 +1,10 @@ +AM_CXXFLAGS = -Wno-unused-parameter \ + -isystem$(top_srcdir)/src/lib/ebus + +noinst_LIBRARIES = libebuscontrib.a + +libebuscontrib_a_SOURCES = contrib.h contrib.cpp tem.h tem.cpp + +distclean-local: + -rm -f Makefile.in + -rm -rf .libs diff --git a/src/lib/ebus/contrib/contrib.cpp b/src/lib/ebus/contrib/contrib.cpp new file mode 100644 index 00000000..1cab1dd6 --- /dev/null +++ b/src/lib/ebus/contrib/contrib.cpp @@ -0,0 +1,26 @@ +/* + * ebusd - daemon for communication with eBUS heating systems. + * Copyright (C) 2016 John Baier + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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, see . + */ + +#include "tem.h" + +using namespace std; + +bool libebus_contrib_register() { + contrib_tem_register(); + return true; +}