From 5051af2cd4298c4b9dd5e8387d3a92975749879f Mon Sep 17 00:00:00 2001 From: Nikhil Marathe Date: Wed, 23 May 2012 17:41:44 +0530 Subject: [PATCH] Renamed CreateFileRef to CreateFileRefPath --- src/tag.cc | 4 ++-- src/taglib.cc | 4 ++-- src/taglib.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tag.cc b/src/tag.cc index 873a271..c8021d2 100644 --- a/src/tag.cc +++ b/src/tag.cc @@ -152,7 +152,7 @@ Handle 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 fn = String::Concat(args[0]->ToString(), Local::Cast(String::New(": ", -1))); return ThrowException(String::Concat(fn, ErrorToString(error))); } @@ -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); diff --git a/src/taglib.cc b/src/taglib.cc index 28ce9d5..afaa32b 100644 --- a/src/taglib.cc +++ b/src/taglib.cc @@ -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)) { @@ -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; diff --git a/src/taglib.h b/src/taglib.h index fd85e07..bd92629 100644 --- a/src/taglib.h +++ b/src/taglib.h @@ -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 ErrorToString(int error); v8::Handle TagLibStringToString( TagLib::String s ); TagLib::String NodeStringToTagLibString( v8::Local s );