From cf1917f00d28381023d2e30f767adc5872b21084 Mon Sep 17 00:00:00 2001 From: Loïc Collignon Date: Wed, 2 Jan 2019 17:44:27 +0100 Subject: c++: New C++ API for bindings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit You can implement a C++ binding API by inheriting the templated base class 'base_api_t' and overriding the methods you want. At the same time, the c++ files are now located in in their own subdirectory: afb/c++ Change-Id: Ie02535961ec6b4b5ae21390cb520acb1fdc44c9e Signed-off-by: Loïc Collignon --- include/afb/c++/binding | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/afb/c++/binding (limited to 'include/afb/c++/binding') diff --git a/include/afb/c++/binding b/include/afb/c++/binding new file mode 100644 index 00000000..5858dff7 --- /dev/null +++ b/include/afb/c++/binding @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2016, 2017, 2018 "IoT.bzh" + * Author: José Bollo + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#pragma once +#include "binding-wrap.hpp" +#include "binding-object.hpp" -- cgit