Skip to content

Commit

Permalink
bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Dec 7, 2023
1 parent 9814f31 commit 63cf84f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 24 deletions.
4 changes: 2 additions & 2 deletions crates/libs/core/src/imp/com_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ impl IPropertyValue {
}
::windows_core::imp::interface_hierarchy!(IPropertyValue, ::windows_core::IUnknown, ::windows_core::IInspectable);
impl ::windows_core::RuntimeType for IPropertyValue {
const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"{4bd682dd-7554-40e9-9a9b-82654ede7e62}");
const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::<Self>();
}
unsafe impl ::windows_core::Interface for IPropertyValue {
type Vtable = IPropertyValue_Vtbl;
Expand Down Expand Up @@ -856,7 +856,7 @@ impl IStringable {
}
::windows_core::imp::interface_hierarchy!(IStringable, ::windows_core::IUnknown, ::windows_core::IInspectable);
impl ::windows_core::RuntimeType for IStringable {
const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"{96369f54-8eb6-48f0-abce-c1b211e627c3}");
const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::for_interface::<Self>();
}
unsafe impl ::windows_core::Interface for IStringable {
type Vtable = IStringable_Vtbl;
Expand Down
8 changes: 3 additions & 5 deletions crates/tests/component/src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub mod Nested {
);
impl ::windows_core::RuntimeType for IThing {
const SIGNATURE: ::windows_core::imp::ConstBuffer =
::windows_core::imp::ConstBuffer::from_slice(b"{5448be22-9873-5ae6-9106-f6e8455d2fdd}");
::windows_core::imp::ConstBuffer::for_interface::<Self>();
}
unsafe impl ::windows_core::Interface for IThing {
type Vtable = IThing_Vtbl;
Expand Down Expand Up @@ -256,9 +256,7 @@ impl Class {
}
impl ::windows_core::RuntimeType for Class {
const SIGNATURE: ::windows_core::imp::ConstBuffer =
::windows_core::imp::ConstBuffer::from_slice(
b"rc(test_component.Class;{97540591-1323-59c0-9ae0-f510cae62e54})",
);
::windows_core::imp::ConstBuffer::for_class::<Self>();
}
unsafe impl ::windows_core::Interface for Class {
type Vtable = IClass_Vtbl;
Expand Down Expand Up @@ -440,7 +438,7 @@ unsafe impl ::windows_core::ComInterface for Callback {
}
impl ::windows_core::RuntimeType for Callback {
const SIGNATURE: ::windows_core::imp::ConstBuffer =
::windows_core::imp::ConstBuffer::from_slice(b"{e39afc7e-93f1-5a1d-92ef-bd5f71c62cb8}");
::windows_core::imp::ConstBuffer::for_interface::<Self>();
}
#[repr(C)]
#[doc(hidden)]
Expand Down
8 changes: 3 additions & 5 deletions crates/tests/component_client/src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub mod Nested {
);
impl ::windows_core::RuntimeType for IThing {
const SIGNATURE: ::windows_core::imp::ConstBuffer =
::windows_core::imp::ConstBuffer::from_slice(b"{5448be22-9873-5ae6-9106-f6e8455d2fdd}");
::windows_core::imp::ConstBuffer::for_interface::<Self>();
}
unsafe impl ::windows_core::Interface for IThing {
type Vtable = IThing_Vtbl;
Expand Down Expand Up @@ -224,9 +224,7 @@ impl Class {
}
impl ::windows_core::RuntimeType for Class {
const SIGNATURE: ::windows_core::imp::ConstBuffer =
::windows_core::imp::ConstBuffer::from_slice(
b"rc(test_component.Class;{97540591-1323-59c0-9ae0-f510cae62e54})",
);
::windows_core::imp::ConstBuffer::for_class::<Self>();
}
unsafe impl ::windows_core::Interface for Class {
type Vtable = IClass_Vtbl;
Expand Down Expand Up @@ -408,7 +406,7 @@ unsafe impl ::windows_core::ComInterface for Callback {
}
impl ::windows_core::RuntimeType for Callback {
const SIGNATURE: ::windows_core::imp::ConstBuffer =
::windows_core::imp::ConstBuffer::from_slice(b"{e39afc7e-93f1-5a1d-92ef-bd5f71c62cb8}");
::windows_core::imp::ConstBuffer::for_interface::<Self>();
}
#[repr(C)]
#[doc(hidden)]
Expand Down
4 changes: 1 addition & 3 deletions crates/tests/standalone/src/b_calendar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1265,9 +1265,7 @@ impl Calendar {
}
impl ::windows_core::RuntimeType for Calendar {
const SIGNATURE: ::windows_core::imp::ConstBuffer =
::windows_core::imp::ConstBuffer::from_slice(
b"rc(Windows.Globalization.Calendar;{ca30221d-86d9-40fb-a26b-d44eb7cf08ea})",
);
::windows_core::imp::ConstBuffer::for_class::<Self>();
}
unsafe impl ::windows_core::Interface for Calendar {
type Vtable = ICalendar_Vtbl;
Expand Down
2 changes: 1 addition & 1 deletion crates/tests/standalone/src/b_stringable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl IStringable {
);
impl ::windows_core::RuntimeType for IStringable {
const SIGNATURE: ::windows_core::imp::ConstBuffer =
::windows_core::imp::ConstBuffer::from_slice(b"{96369f54-8eb6-48f0-abce-c1b211e627c3}");
::windows_core::imp::ConstBuffer::for_interface::<Self>();
}
unsafe impl ::windows_core::Interface for IStringable {
type Vtable = IStringable_Vtbl;
Expand Down
12 changes: 4 additions & 8 deletions crates/tests/standalone/src/b_uri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ impl IStringable {
);
impl ::windows_core::RuntimeType for IStringable {
const SIGNATURE: ::windows_core::imp::ConstBuffer =
::windows_core::imp::ConstBuffer::from_slice(b"{96369f54-8eb6-48f0-abce-c1b211e627c3}");
::windows_core::imp::ConstBuffer::for_interface::<Self>();
}
unsafe impl ::windows_core::Interface for IStringable {
type Vtable = IStringable_Vtbl;
Expand Down Expand Up @@ -611,7 +611,7 @@ impl IWwwFormUrlDecoderEntry {
);
impl ::windows_core::RuntimeType for IWwwFormUrlDecoderEntry {
const SIGNATURE: ::windows_core::imp::ConstBuffer =
::windows_core::imp::ConstBuffer::from_slice(b"{125e7431-f678-4e8e-b670-20a9b06c512d}");
::windows_core::imp::ConstBuffer::for_interface::<Self>();
}
unsafe impl ::windows_core::Interface for IWwwFormUrlDecoderEntry {
type Vtable = IWwwFormUrlDecoderEntry_Vtbl;
Expand Down Expand Up @@ -980,9 +980,7 @@ impl Uri {
}
impl ::windows_core::RuntimeType for Uri {
const SIGNATURE: ::windows_core::imp::ConstBuffer =
::windows_core::imp::ConstBuffer::from_slice(
b"rc(Windows.Foundation.Uri;{9e365e57-48b2-4160-956f-c7385120bbfc})",
);
::windows_core::imp::ConstBuffer::for_class::<Self>();
}
unsafe impl ::windows_core::Interface for Uri {
type Vtable = IUriRuntimeClass_Vtbl;
Expand Down Expand Up @@ -1121,9 +1119,7 @@ impl WwwFormUrlDecoder {
}
impl ::windows_core::RuntimeType for WwwFormUrlDecoder {
const SIGNATURE: ::windows_core::imp::ConstBuffer =
::windows_core::imp::ConstBuffer::from_slice(
b"rc(Windows.Foundation.WwwFormUrlDecoder;{d45a0451-f225-4542-9296-0e1df5d254df})",
);
::windows_core::imp::ConstBuffer::for_class::<Self>();
}
unsafe impl ::windows_core::Interface for WwwFormUrlDecoder {
type Vtable = IWwwFormUrlDecoderRuntimeClass_Vtbl;
Expand Down

0 comments on commit 63cf84f

Please sign in to comment.