blob: d0342a2129ee40e8846438ba4a7e529709528de7 [file] [log] [blame]
/* automatically generated by rust-bindgen */
#![allow(non_snake_case)]
#![cfg(target_os="macos")]
#[macro_use]
extern crate objc;
#[allow(non_camel_case_types)]
pub type id = *mut objc::runtime::Object;
pub trait Foo {
unsafe fn method(self);
unsafe fn methodWithInt_(self, foo: ::std::os::raw::c_int);
unsafe fn methodWithFoo_(self, foo: id);
unsafe fn methodReturningInt(self)
-> ::std::os::raw::c_int;
unsafe fn methodReturningFoo(self)
-> *mut id;
unsafe fn methodWithArg1_andArg2_andArg3_(self,
intvalue: ::std::os::raw::c_int,
ptr:
*mut ::std::os::raw::c_char,
floatvalue: f32);
}
impl Foo for id {
unsafe fn method(self) { msg_send!(self , method) }
unsafe fn methodWithInt_(self, foo: ::std::os::raw::c_int) {
msg_send!(self , methodWithInt:foo )
}
unsafe fn methodWithFoo_(self, foo: id) {
msg_send!(self , methodWithFoo:foo )
}
unsafe fn methodReturningInt(self) -> ::std::os::raw::c_int {
msg_send!(self , methodReturningInt)
}
unsafe fn methodReturningFoo(self) -> *mut id {
msg_send!(self , methodReturningFoo)
}
unsafe fn methodWithArg1_andArg2_andArg3_(self,
intvalue: ::std::os::raw::c_int,
ptr:
*mut ::std::os::raw::c_char,
floatvalue: f32) {
msg_send!(self ,
methodWithArg1:intvalue andArg2:ptr andArg3:floatvalue )
}
}