summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-01-01 18:33:37 -0500
committerRyan Dahl <ry@tinyclouds.org>2019-01-03 09:45:40 -0500
commitd2b85d4904a29fee7ac81e44b5cda124f9948928 (patch)
treeadb3596a414385b6bbd668d7267423a793dc0372 /src
parenta7271b7fe5654ef77d09e650d91e311d2a406993 (diff)
Use camel-case for libdeno::deno_recv_cb
For better greppability and conformance with other symbols in libdeno.rs
Diffstat (limited to 'src')
-rw-r--r--src/libdeno.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libdeno.rs b/src/libdeno.rs
index bdc2c54c1..3dde4fd02 100644
--- a/src/libdeno.rs
+++ b/src/libdeno.rs
@@ -13,7 +13,7 @@ pub struct isolate {
}
/// If "alloc_ptr" is not null, this type represents a buffer which is created
-/// in C side, and then passed to Rust side by `DenoRecvCb`. Finally it should
+/// in C side, and then passed to Rust side by `deno_recv_cb`. Finally it should
/// be moved back to C side by `deno_respond`. If it is not passed to
/// `deno_respond` in the end, it will be leaked.
///
@@ -102,7 +102,8 @@ impl AsMut<[u8]> for deno_buf {
}
}
-type DenoRecvCb = unsafe extern "C" fn(
+#[allow(non_camel_case_types)]
+type deno_recv_cb = unsafe extern "C" fn(
user_data: *mut c_void,
req_id: i32,
buf: deno_buf,
@@ -114,7 +115,7 @@ pub struct deno_config {
pub will_snapshot: c_int,
pub load_snapshot: deno_buf,
pub shared: deno_buf,
- pub recv_cb: DenoRecvCb,
+ pub recv_cb: deno_recv_cb,
}
extern "C" {