src: upgrade to nan@2.x.x

- To support nodejs/iojs@3.x.x
This commit is contained in:
Santiago Gimeno
2015-08-11 15:59:45 +02:00
parent 6b412ec427
commit 37b557fe56
5 changed files with 192 additions and 192 deletions

View File

@@ -9,7 +9,7 @@
#include <winscard.h>
#endif
class PCSCLite: public node::ObjectWrap {
class PCSCLite: public Nan::ObjectWrap {
struct AsyncResult {
LONG result;
@@ -20,7 +20,7 @@ class PCSCLite: public node::ObjectWrap {
struct AsyncBaton {
uv_async_t async;
v8::Persistent<v8::Function> callback;
Nan::Persistent<v8::Function> callback;
PCSCLite *pcsclite;
AsyncResult *async_result;
};
@@ -35,7 +35,7 @@ class PCSCLite: public node::ObjectWrap {
~PCSCLite();
static v8::Persistent<v8::Function> constructor;
static Nan::Persistent<v8::Function> constructor;
static NAN_METHOD(New);
static NAN_METHOD(Start);
static NAN_METHOD(Close);