|
@ -2190,28 +2190,28 @@ void Initialize(Local<Object> target, |
|
|
FunctionTemplate::New(env->isolate(), is_construct_call_callback); |
|
|
FunctionTemplate::New(env->isolate(), is_construct_call_callback); |
|
|
aiw->InstanceTemplate()->SetInternalFieldCount(1); |
|
|
aiw->InstanceTemplate()->SetInternalFieldCount(1); |
|
|
env->SetProtoMethod(aiw, "getAsyncId", AsyncWrap::GetAsyncId); |
|
|
env->SetProtoMethod(aiw, "getAsyncId", AsyncWrap::GetAsyncId); |
|
|
aiw->SetClassName( |
|
|
Local<String> addrInfoWrapString = |
|
|
FIXED_ONE_BYTE_STRING(env->isolate(), "GetAddrInfoReqWrap")); |
|
|
FIXED_ONE_BYTE_STRING(env->isolate(), "GetAddrInfoReqWrap"); |
|
|
target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "GetAddrInfoReqWrap"), |
|
|
aiw->SetClassName(addrInfoWrapString); |
|
|
aiw->GetFunction()); |
|
|
target->Set(addrInfoWrapString, aiw->GetFunction()); |
|
|
|
|
|
|
|
|
Local<FunctionTemplate> niw = |
|
|
Local<FunctionTemplate> niw = |
|
|
FunctionTemplate::New(env->isolate(), is_construct_call_callback); |
|
|
FunctionTemplate::New(env->isolate(), is_construct_call_callback); |
|
|
niw->InstanceTemplate()->SetInternalFieldCount(1); |
|
|
niw->InstanceTemplate()->SetInternalFieldCount(1); |
|
|
env->SetProtoMethod(niw, "getAsyncId", AsyncWrap::GetAsyncId); |
|
|
env->SetProtoMethod(niw, "getAsyncId", AsyncWrap::GetAsyncId); |
|
|
niw->SetClassName( |
|
|
Local<String> nameInfoWrapString = |
|
|
FIXED_ONE_BYTE_STRING(env->isolate(), "GetNameInfoReqWrap")); |
|
|
FIXED_ONE_BYTE_STRING(env->isolate(), "GetNameInfoReqWrap"); |
|
|
target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "GetNameInfoReqWrap"), |
|
|
niw->SetClassName(nameInfoWrapString); |
|
|
niw->GetFunction()); |
|
|
target->Set(nameInfoWrapString, niw->GetFunction()); |
|
|
|
|
|
|
|
|
Local<FunctionTemplate> qrw = |
|
|
Local<FunctionTemplate> qrw = |
|
|
FunctionTemplate::New(env->isolate(), is_construct_call_callback); |
|
|
FunctionTemplate::New(env->isolate(), is_construct_call_callback); |
|
|
qrw->InstanceTemplate()->SetInternalFieldCount(1); |
|
|
qrw->InstanceTemplate()->SetInternalFieldCount(1); |
|
|
env->SetProtoMethod(qrw, "getAsyncId", AsyncWrap::GetAsyncId); |
|
|
env->SetProtoMethod(qrw, "getAsyncId", AsyncWrap::GetAsyncId); |
|
|
qrw->SetClassName( |
|
|
Local<String> queryWrapString = |
|
|
FIXED_ONE_BYTE_STRING(env->isolate(), "QueryReqWrap")); |
|
|
FIXED_ONE_BYTE_STRING(env->isolate(), "QueryReqWrap"); |
|
|
target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "QueryReqWrap"), |
|
|
qrw->SetClassName(queryWrapString); |
|
|
qrw->GetFunction()); |
|
|
target->Set(queryWrapString, qrw->GetFunction()); |
|
|
|
|
|
|
|
|
Local<FunctionTemplate> channel_wrap = |
|
|
Local<FunctionTemplate> channel_wrap = |
|
|
env->NewFunctionTemplate(ChannelWrap::New); |
|
|
env->NewFunctionTemplate(ChannelWrap::New); |
|
@ -2235,10 +2235,10 @@ void Initialize(Local<Object> target, |
|
|
env->SetProtoMethod(channel_wrap, "setServers", SetServers); |
|
|
env->SetProtoMethod(channel_wrap, "setServers", SetServers); |
|
|
env->SetProtoMethod(channel_wrap, "cancel", Cancel); |
|
|
env->SetProtoMethod(channel_wrap, "cancel", Cancel); |
|
|
|
|
|
|
|
|
channel_wrap->SetClassName( |
|
|
Local<String> channelWrapString = |
|
|
FIXED_ONE_BYTE_STRING(env->isolate(), "ChannelWrap")); |
|
|
FIXED_ONE_BYTE_STRING(env->isolate(), "ChannelWrap"); |
|
|
target->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "ChannelWrap"), |
|
|
channel_wrap->SetClassName(channelWrapString); |
|
|
channel_wrap->GetFunction()); |
|
|
target->Set(channelWrapString, channel_wrap->GetFunction()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} // anonymous namespace
|
|
|
} // anonymous namespace
|
|
|