mirror of
https://github.com/eclipse/upm.git
synced 2025-07-06 20:01:12 +03:00

Signed-off-by: Yannick Adam <yannick.adam@gmail.com> Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
20 lines
334 B
OpenEdge ABL
20 lines
334 B
OpenEdge ABL
%module jsupm_apa102
|
|
|
|
%include "../upm.i"
|
|
%inline %{
|
|
#include <node_buffer.h>
|
|
%}
|
|
|
|
%typemap(in) (uint8_t *colors) {
|
|
if (!node::Buffer::HasInstance($input)) {
|
|
SWIG_exception_fail(SWIG_ERROR, "Expected a node Buffer");
|
|
}
|
|
$1 = (uint8_t*) node::Buffer::Data($input);
|
|
}
|
|
|
|
%include "apa102.h"
|
|
|
|
%{
|
|
#include "apa102.h"
|
|
%}
|