aboutsummaryrefslogtreecommitdiffstats
path: root/include/afb/c++/binding
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2019-01-02 17:44:27 +0100
committerLoïc Collignon <loic.collignon@iot.bzh>2019-03-11 13:31:40 +0100
commitcf1917f00d28381023d2e30f767adc5872b21084 (patch)
tree91e234c34ebee6a4279b3df8e247e0ae20ef2f10 /include/afb/c++/binding
parent5425e054fbf87fe6d024103f46e53f2a28e074f2 (diff)
c++: New C++ API for bindings
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 <loic.collignon@iot.bzh>
Diffstat (limited to 'include/afb/c++/binding')
-rw-r--r--include/afb/c++/binding19
1 files changed, 19 insertions, 0 deletions
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 <jose.bollo@iot.bzh>
+ *
+ * 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"