Rename CreateInterfaceObject to create_interface_object.

This commit is contained in:
Ms2ger 2015-01-29 18:53:22 +01:00
parent 38baa130d8
commit 47cd2d7eb4

View file

@ -203,7 +203,7 @@ pub fn do_create_interface_objects(cx: *mut JSContext, global: *mut JSObject,
match constructor { match constructor {
Some((native, name, nargs)) => { Some((native, name, nargs)) => {
let s = CString::from_slice(name.as_bytes()); let s = CString::from_slice(name.as_bytes());
CreateInterfaceObject(cx, global, receiver, create_interface_object(cx, global, receiver,
native, nargs, proto, native, nargs, proto,
members, s.as_ptr()) members, s.as_ptr())
}, },
@ -215,7 +215,8 @@ pub fn do_create_interface_objects(cx: *mut JSContext, global: *mut JSObject,
/// Creates the *interface object*. /// Creates the *interface object*.
/// Fails on JSAPI failure. /// Fails on JSAPI failure.
fn CreateInterfaceObject(cx: *mut JSContext, global: *mut JSObject, receiver: *mut JSObject, fn create_interface_object(cx: *mut JSContext, global: *mut JSObject,
receiver: *mut JSObject,
constructorNative: NonNullJSNative, constructorNative: NonNullJSNative,
ctorNargs: u32, proto: *mut JSObject, ctorNargs: u32, proto: *mut JSObject,
members: &'static NativeProperties, members: &'static NativeProperties,