#ifndef CHIP_HH #define CHIP_HH #include #include class Chip : public Nan::ObjectWrap { public: static NAN_MODULE_INIT(Init); gpiod_chip* getNativeChip(); private: explicit Chip(const char* device); ~Chip(); static NAN_METHOD(New); static Nan::Persistent constructor; gpiod_chip* chip; }; NAN_METHOD(getChipName); NAN_METHOD(getChipLabel); NAN_METHOD(getNumberOfLines); NAN_METHOD(getLineNames); #endif // CHIP_HH