Skip to content

Commit

Permalink
Fixed the 'invalid conversion from ‘void (*)(uv_work_t*, int) {aka vo…
Browse files Browse the repository at this point in the history
…id (*)(uv_work_s*, int)}’ to ‘uv_after_work_cb {aka void (*)(uv_work_s*)}’ compile errors for node 0.8
  • Loading branch information
Damian Beresford authored and Damian Beresford committed May 3, 2013
1 parent 2507645 commit ee867d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions exiv2node.cc
Expand Up @@ -124,7 +124,7 @@ static Handle<Value> GetImageTags(const Arguments& args) {
// Set up our thread data struct, pass off to the libuv thread pool. // Set up our thread data struct, pass off to the libuv thread pool.
Baton *thread_data = new Baton(Local<String>::Cast(args[0]), Local<Function>::Cast(args[1])); Baton *thread_data = new Baton(Local<String>::Cast(args[0]), Local<Function>::Cast(args[1]));


int status = uv_queue_work(uv_default_loop(), &thread_data->request, GetImageTagsWorker, AfterGetImageTags); int status = uv_queue_work(uv_default_loop(), &thread_data->request, GetImageTagsWorker, (uv_after_work_cb)AfterGetImageTags);
assert(status == 0); assert(status == 0);


return Undefined(); return Undefined();
Expand Down Expand Up @@ -214,7 +214,7 @@ static Handle<Value> SetImageTags(const Arguments& args) {
); );
} }


int status = uv_queue_work(uv_default_loop(), &thread_data->request, SetImageTagsWorker, AfterSetImageTags); int status = uv_queue_work(uv_default_loop(), &thread_data->request, SetImageTagsWorker, (uv_after_work_cb)AfterSetImageTags);
assert(status == 0); assert(status == 0);


return Undefined(); return Undefined();
Expand Down Expand Up @@ -288,7 +288,7 @@ static Handle<Value> GetImagePreviews(const Arguments& args) {
// Set up our thread data struct, pass off to the libuv thread pool. // Set up our thread data struct, pass off to the libuv thread pool.
GetPreviewBaton *thread_data = new GetPreviewBaton(Local<String>::Cast(args[0]), Local<Function>::Cast(args[1])); GetPreviewBaton *thread_data = new GetPreviewBaton(Local<String>::Cast(args[0]), Local<Function>::Cast(args[1]));


int status = uv_queue_work(uv_default_loop(), &thread_data->request, GetImagePreviewsWorker, AfterGetImagePreviews); int status = uv_queue_work(uv_default_loop(), &thread_data->request, GetImagePreviewsWorker, (uv_after_work_cb)AfterGetImagePreviews);
assert(status == 0); assert(status == 0);


return Undefined(); return Undefined();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"author": "Damian Beresford <dberesford@gmail.com> (http://www.damianberesford.com/)", "author": "Damian Beresford <dberesford@gmail.com> (http://www.damianberesford.com/)",
"name": "exiv2", "name": "exiv2",
"description": "A native c++ extension for node.js that provides support for reading & writing image metadata via Exiv2.", "description": "A native c++ extension for node.js that provides support for reading & writing image metadata via Exiv2.",
"version": "0.4.1", "version": "0.4.2",
"homepage": "https://github.com/dberesford/exiv2node", "homepage": "https://github.com/dberesford/exiv2node",
"repository": { "repository": {
"type": "git", "type": "git",
Expand Down

0 comments on commit ee867d8

Please sign in to comment.