Skip to content

Commit

Permalink
Renamed CreateFileRef to CreateFileRefPath
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilm committed May 23, 2012
1 parent c1dc443 commit 5051af2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/tag.cc
Expand Up @@ -152,7 +152,7 @@ Handle<Value> Tag::SyncTag(const Arguments &args) {

TagLib::FileRef *f;
int error;
if ((error = node_taglib::CreateFileRef(*path, &f)) != 0) {
if ((error = node_taglib::CreateFileRefPath(*path, &f)) != 0) {
Local<String> fn = String::Concat(args[0]->ToString(), Local<String>::Cast(String::New(": ", -1)));
return ThrowException(String::Concat(fn, ErrorToString(error)));
}
Expand Down Expand Up @@ -195,7 +195,7 @@ void Tag::AsyncTagRead(uv_work_t *req) {
TagLib::FileRef *f;
int error;

baton->error = node_taglib::CreateFileRef(baton->path, &f);
baton->error = node_taglib::CreateFileRefPath(baton->path, &f);

if (baton->error == 0) {
baton->tag = new Tag(f);
Expand Down
4 changes: 2 additions & 2 deletions src/taglib.cc
Expand Up @@ -35,7 +35,7 @@ using namespace node;
using namespace node_taglib;

namespace node_taglib {
int CreateFileRef(TagLib::FileName path, TagLib::FileRef **ref) {
int CreateFileRefPath(TagLib::FileName path, TagLib::FileRef **ref) {
TagLib::FileRef *f = NULL;
int error = 0;
if (!TagLib::File::isReadable(path)) {
Expand Down Expand Up @@ -110,7 +110,7 @@ void AsyncReadFileDo(uv_work_t *req) {
TagLib::FileRef *f;
int error;

baton->error = node_taglib::CreateFileRef(baton->path, &f);
baton->error = node_taglib::CreateFileRefPath(baton->path, &f);

if (baton->error == 0) {
baton->fileRef = f;
Expand Down
2 changes: 1 addition & 1 deletion src/taglib.h
Expand Up @@ -9,7 +9,7 @@
namespace node_taglib {
class Tag;

int CreateFileRef(TagLib::FileName path, TagLib::FileRef **ref);
int CreateFileRefPath(TagLib::FileName path, TagLib::FileRef **ref);
v8::Handle<v8::String> ErrorToString(int error);
v8::Handle<v8::Value> TagLibStringToString( TagLib::String s );
TagLib::String NodeStringToTagLibString( v8::Local<v8::Value> s );
Expand Down

0 comments on commit 5051af2

Please sign in to comment.