Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

node v0.10.x support

  • Loading branch information...
commit a051cf946d7c288582ff2d84800ed1e94dade521 1 parent 2ca7fb4
@springmeyer springmeyer authored
View
4 src/mapnik_grid.cpp
@@ -169,7 +169,7 @@ Handle<Value> Grid::clear(const Arguments& args)
closure->g = g;
closure->error = false;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(callback));
- uv_queue_work(uv_default_loop(), &closure->request, EIO_Clear, EIO_AfterClear);
+ uv_queue_work(uv_default_loop(), &closure->request, EIO_Clear, (uv_after_work_cb)EIO_AfterClear);
g->Ref();
return Undefined();
}
@@ -475,7 +475,7 @@ Handle<Value> Grid::encode(const Arguments& args) // format, resolution
closure->add_features = add_features;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(callback));
// todo - reserve lines size?
- uv_queue_work(uv_default_loop(), &closure->request, EIO_Encode, EIO_AfterEncode);
+ uv_queue_work(uv_default_loop(), &closure->request, EIO_Encode, (uv_after_work_cb)EIO_AfterEncode);
g->Ref();
return Undefined();
}
View
4 src/mapnik_grid_view.cpp
@@ -141,7 +141,7 @@ Handle<Value> GridView::isSolid(const Arguments& args)
closure->pixel = 0;
closure->error = false;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(callback));
- uv_queue_work(uv_default_loop(), &closure->request, EIO_IsSolid, EIO_AfterIsSolid);
+ uv_queue_work(uv_default_loop(), &closure->request, EIO_IsSolid, (uv_after_work_cb)EIO_AfterIsSolid);
g->Ref();
return Undefined();
}
@@ -437,7 +437,7 @@ Handle<Value> GridView::encode(const Arguments& args)
closure->resolution = resolution;
closure->add_features = add_features;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(callback));
- uv_queue_work(uv_default_loop(), &closure->request, EIO_Encode, EIO_AfterEncode);
+ uv_queue_work(uv_default_loop(), &closure->request, EIO_Encode, (uv_after_work_cb)EIO_AfterEncode);
g->Ref();
return Undefined();
}
View
6 src/mapnik_image.cpp
@@ -192,7 +192,7 @@ Handle<Value> Image::clear(const Arguments& args)
closure->im = im;
closure->error = false;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(callback));
- uv_queue_work(uv_default_loop(), &closure->request, EIO_Clear, EIO_AfterClear);
+ uv_queue_work(uv_default_loop(), &closure->request, EIO_Clear, (uv_after_work_cb)EIO_AfterClear);
im->Ref();
return Undefined();
}
@@ -494,7 +494,7 @@ Handle<Value> Image::encode(const Arguments& args)
closure->palette = palette;
closure->error = false;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(callback));
- uv_queue_work(uv_default_loop(), &closure->request, EIO_Encode, EIO_AfterEncode);
+ uv_queue_work(uv_default_loop(), &closure->request, EIO_Encode, (uv_after_work_cb)EIO_AfterEncode);
im->Ref();
return Undefined();
@@ -669,7 +669,7 @@ Handle<Value> Image::composite(const Arguments& args)
closure->mode = static_cast<mapnik::composite_mode_e>(args[1]->IntegerValue());
closure->error = false;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(callback));
- uv_queue_work(uv_default_loop(), &closure->request, EIO_Composite, EIO_AfterComposite);
+ uv_queue_work(uv_default_loop(), &closure->request, EIO_Composite, (uv_after_work_cb)EIO_AfterComposite);
closure->im1->Ref();
closure->im2->Ref();
return Undefined();
View
4 src/mapnik_image_view.cpp
@@ -126,7 +126,7 @@ Handle<Value> ImageView::isSolid(const Arguments& args)
closure->pixel = 0;
closure->error = false;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(callback));
- uv_queue_work(uv_default_loop(), &closure->request, EIO_IsSolid, EIO_AfterIsSolid);
+ uv_queue_work(uv_default_loop(), &closure->request, EIO_IsSolid, (uv_after_work_cb)EIO_AfterIsSolid);
im->Ref();
return Undefined();
}
@@ -407,7 +407,7 @@ Handle<Value> ImageView::encode(const Arguments& args)
closure->palette = palette;
closure->error = false;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(callback));
- uv_queue_work(uv_default_loop(), &closure->request, EIO_Encode, EIO_AfterEncode);
+ uv_queue_work(uv_default_loop(), &closure->request, EIO_Encode, (uv_after_work_cb)EIO_AfterEncode);
im->Ref();
return Undefined();
}
View
12 src/mapnik_map.cpp
@@ -624,7 +624,7 @@ Handle<Value> Map::abstractQueryPoint(const Arguments& args, bool geo_coords)
closure->geo_coords = geo_coords;
closure->error = false;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(callback));
- uv_queue_work(uv_default_loop(), &closure->request, EIO_QueryMap, EIO_AfterQueryMap);
+ uv_queue_work(uv_default_loop(), &closure->request, EIO_QueryMap, (uv_after_work_cb)EIO_AfterQueryMap);
m->Ref();
return Undefined();
}
@@ -911,7 +911,7 @@ Handle<Value> Map::load(const Arguments& args)
closure->strict = strict;
closure->error = false;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(callback));
- uv_queue_work(uv_default_loop(), &closure->request, EIO_Load, EIO_AfterLoad);
+ uv_queue_work(uv_default_loop(), &closure->request, EIO_Load, (uv_after_work_cb)EIO_AfterLoad);
m->Ref();
return Undefined();
}
@@ -1156,7 +1156,7 @@ Handle<Value> Map::fromString(const Arguments& args)
closure->strict = strict;
closure->error = false;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(callback));
- uv_queue_work(uv_default_loop(), &closure->request, EIO_FromString, EIO_AfterFromString);
+ uv_queue_work(uv_default_loop(), &closure->request, EIO_FromString, (uv_after_work_cb)EIO_AfterFromString);
m->Ref();
return Undefined();
}
@@ -1407,7 +1407,7 @@ Handle<Value> Map::render(const Arguments& args)
closure->offset_y = offset_y;
closure->error = false;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(args[args.Length()-1]));
- uv_queue_work(uv_default_loop(), &closure->request, EIO_RenderImage, EIO_AfterRenderImage);
+ uv_queue_work(uv_default_loop(), &closure->request, EIO_RenderImage, (uv_after_work_cb)EIO_AfterRenderImage);
} else if (Grid::constructor->HasInstance(obj)) {
@@ -1499,7 +1499,7 @@ Handle<Value> Map::render(const Arguments& args)
closure->offset_y = offset_y;
closure->error = false;
closure->cb = Persistent<Function>::New(Handle<Function>::Cast(args[args.Length()-1]));
- uv_queue_work(uv_default_loop(), &closure->request, EIO_RenderGrid, EIO_AfterRenderGrid);
+ uv_queue_work(uv_default_loop(), &closure->request, EIO_RenderGrid, (uv_after_work_cb)EIO_AfterRenderGrid);
} else {
return ThrowException(Exception::TypeError(String::New("renderable mapnik object expected")));
}
@@ -1749,7 +1749,7 @@ Handle<Value> Map::renderFile(const Arguments& args)
closure->palette = palette;
closure->output = output;
- uv_queue_work(uv_default_loop(), &closure->request, EIO_RenderFile, EIO_AfterRenderFile);
+ uv_queue_work(uv_default_loop(), &closure->request, EIO_RenderFile, (uv_after_work_cb)EIO_AfterRenderFile);
m->Ref();
return Undefined();
Please sign in to comment.
Something went wrong with that request. Please try again.