Skip to content

Commit

Permalink
add none to reply. this is useful forget
Browse files Browse the repository at this point in the history
  • Loading branch information
EricTheMagician committed Aug 22, 2015
1 parent 4a1c398 commit 28f7c31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/reply.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ namespace NodeFuse {
Nan::SetPrototypeMethod(tpl, "create", Reply::Create);
Nan::SetPrototypeMethod(tpl, "xattr", Reply::XAttributes);
Nan::SetPrototypeMethod(tpl, "addDirEntry", Reply::AddDirEntry);
Nan::SetPrototypeMethod(tpl, "none", Reply::None);

constructor.Reset(tpl->GetFunction());
}
Expand Down Expand Up @@ -405,6 +406,14 @@ namespace NodeFuse {

}

void Reply::None(const Nan::FunctionCallbackInfo<v8::Value>& args) {
Nan::EscapableHandleScope scope;
Local<Object> replyObj = args.This();
Reply* reply = ObjectWrap::Unwrap<Reply>(replyObj);
fuse_reply_none(reply->request);
}


void Reply::BMap(const Nan::FunctionCallbackInfo<v8::Value>& args){
Nan::HandleScope scope;;

Expand Down
1 change: 1 addition & 0 deletions src/reply.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ namespace NodeFuse {
static NAN_METHOD(Lock);
static NAN_METHOD(BMap);
static NAN_METHOD(AddDirEntry);
static NAN_METHOD(None);

private:
fuse_req_t request;
Expand Down

0 comments on commit 28f7c31

Please sign in to comment.