Permalink
Browse files

Cast cb for node 0.10

  • Loading branch information...
peterbraden committed Mar 19, 2013
1 parent 76f3847 commit 1d542bc056ee85d0243803d01172a47a91c58a18
Showing with 5 additions and 5 deletions.
  1. +1 −1 src/CascadeClassifierWrap.cc
  2. +2 −2 src/CascadeClassifierWrap.h
  3. +1 −1 src/Matrix.cc
  4. +1 −1 src/VideoCaptureWrap.cc
@@ -112,7 +112,7 @@ CascadeClassifierWrap::DetectMultiScale(const v8::Arguments& args){
// eio_custom(EIO_DetectMultiScale, EIO_PRI_DEFAULT, EIO_AfterDetectMultiScale, baton);
// ev_ref(EV_DEFAULT_UC);
- uv_queue_work(uv_default_loop(), &baton->request, AsyncDetectMultiScale, AfterAsyncDetectMultiScale);
+ uv_queue_work(uv_default_loop(), &baton->request, AsyncDetectMultiScale, (uv_after_work_cb)AfterAsyncDetectMultiScale);
return Undefined();
@@ -13,7 +13,7 @@ class CascadeClassifierWrap: public node::ObjectWrap {
//static Handle<Value> LoadHaarClassifierCascade(const v8::Arguments&);
static Handle<Value> DetectMultiScale(const v8::Arguments&);
- static void EIO_DetectMultiScale(eio_req *req);
- static int EIO_AfterDetectMultiScale(eio_req *req);
+ static void EIO_DetectMultiScale(uv_work_t *req);
+ static int EIO_AfterDetectMultiScale(uv_work_t *req);
};
View
@@ -369,7 +369,7 @@ Matrix::ToBufferAsync(const v8::Arguments& args){
baton->request.data = baton;
baton->sleep_for = 1;
- uv_queue_work(uv_default_loop(), &baton->request, AsyncToBufferAsync, AfterAsyncToBufferAsync);
+ uv_queue_work(uv_default_loop(), &baton->request, AsyncToBufferAsync, (uv_after_work_cb)AfterAsyncToBufferAsync);
return Undefined();
}
View
@@ -92,7 +92,7 @@ VideoCaptureWrap::Read(const Arguments &args) {
baton->im = new Matrix();
baton->request.data = baton;
- uv_queue_work(uv_default_loop(), &baton->request, AsyncRead, AfterAsyncRead);
+ uv_queue_work(uv_default_loop(), &baton->request, AsyncRead, (uv_after_work_cb)AfterAsyncRead);
return Undefined();
}

0 comments on commit 1d542bc

Please sign in to comment.