Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uint8ClampedArray method declarations added. #128

Merged
merged 1 commit into from Jan 5, 2015
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -25,11 +25,13 @@ pub fn JS_WrapPropertyDescriptor(cx: *mut JSContext,

pub mod bindgen {
use jsapi::{JSContext, JSObject, JSClass, JSRuntime};
use libc::uintptr_t;
use libc::{uintptr_t, uint8_t, uint32_t};

extern {
pub fn JS_NewObjectWithUniqueType(cx: *mut JSContext, clasp: *const JSClass,
proto: *const JSObject, parent: *const JSObject) -> *mut JSObject;
pub fn JS_GetAddressableObject(rt: *mut JSRuntime, candidateObj: uintptr_t) -> *mut JSObject;
pub fn JS_NewUint8ClampedArray(cx: *mut JSContext, nelements: uint32_t) -> *mut JSObject;
pub fn JS_GetUint8ClampedArrayData(obj: *mut JSObject, cx: *mut JSContext) -> *mut uint8_t;
}
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.