Permalink
Browse files

Renamed CreateFileRef to CreateFileRefPath

  • Loading branch information...
1 parent c1dc443 commit 5051af2cd4298c4b9dd5e8387d3a92975749879f @nikhilm committed May 23, 2012
Showing with 5 additions and 5 deletions.
  1. +2 −2 src/tag.cc
  2. +2 −2 src/taglib.cc
  3. +1 −1 src/taglib.h
View
@@ -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)));
}
@@ -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);
View
@@ -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;
View
@@ -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 );

0 comments on commit 5051af2

Please sign in to comment.