sensortemplate: Added a template sensor
The purpose of the templatesensor is to get contributors up and running
faster when adding a new sensor.
* Created library named 'sensortemplate'
* Added C++ source
* Added swig interface files for java, javascript, and python
* Added sensortemplate image file
* Added examples for c++, java, javascript, and python
* Updated contributions.md with steps to create a new sensor from
the sensortemplate library.
Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
14
src/sensortemplate/common.i
Normal file
14
src/sensortemplate/common.i
Normal file
@@ -0,0 +1,14 @@
|
||||
/* Include global UPM interface file */
|
||||
%include "../upm.i"
|
||||
|
||||
/* Required for python documentation, ignored for others */
|
||||
%feature("autodoc", "3");
|
||||
|
||||
%{
|
||||
/* SWIG preprocessor copies this directly to the output wrapper*/
|
||||
#include "sensortemplate.hpp"
|
||||
%}
|
||||
|
||||
/* %include is a SWIG directive. SWIG will wrap types exposed in this
|
||||
* header to the target language. */
|
||||
%include "sensortemplate.hpp"
|
||||
Reference in New Issue
Block a user