intercom-attributes 0.4.0

See 'intercom'
Documentation
extern crate intercom;
use intercom::*;

#[com_interface(
        com_iid = "00000000-0000-0000-0000-000000000000",
        raw_iid = "00000000-0000-0000-0000-000000000001")]
pub trait Foo {
    fn static_method(a: u16, b: i16);

    fn simple_method(&self);

    fn arg_method(&self, a: u16);

    fn simple_result_method(&self) -> u16;
    fn com_result_method(&self) -> ComResult<u16>;
    fn rust_result_method(&self) -> Result<u16, i32>;

    fn complete_method(&mut self, a: u16, b: i16) -> ComResult<bool>;

    fn string_method(&self, msg: String) -> String;
    fn comitf_method(&self, itf: ComItf<dyn Foo>) -> ComResult<ComItf<dyn IUnknown>>;

    // Should be VARIANT_BOOL in Automation interface.
    fn bool_method(&self, input : bool) -> ComResult<bool>;

    fn variant_method(&self, input : Variant) -> ComResult<Variant>;
}