-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
52 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.lock-wscript | ||
*.swp | ||
*.swo | ||
build | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,40 @@ | ||
// Copyright 2012, Camilo Aguilar. Cloudescape, LLC. | ||
#include "bindings.h" | ||
namespace NodeFuse { | ||
void Fuse::Initialize(Handle<Object> target) { | ||
Local<FunctionTemplate> t = FunctionTemplate::New(Fuse::New); | ||
|
||
t->InstanceTemplate()->SetInternalFieldCount(1); | ||
|
||
NODE_SET_PROTOTYPE_METHOD(t, "mount", | ||
Fuse::Mount); | ||
NODE_SET_PROTOTYPE_METHOD(t, "umount", | ||
Fuse::Umount); | ||
|
||
t->SetClassName(String::NewSymbol("Fuse")); | ||
target->Set(String::NewSymbol("Fuse"), t->GetFunction()); | ||
} | ||
|
||
Fuse::Fuse() : ObjectWrap() {} | ||
Fuse::~Fuse() {} | ||
|
||
Handle<Value> Fuse::New(const Arguments& args) { | ||
HandleScope scope; | ||
|
||
Fuse *fuse = new Fuse(); | ||
Local<Object> obj = args.This(); | ||
fuse->Wrap(obj); | ||
|
||
return obj; | ||
} | ||
|
||
Handle<Value> Fuse::Mount(const Arguments& args) { | ||
HandleScope scope; | ||
//handles parameters and mounts the filesystem | ||
} | ||
|
||
Handle<Value> Fuse::Umount(const Arguments& args) { | ||
//umount file system | ||
} | ||
} //namespace NodeFuse | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters