From dde06904576dfe01e9710721209650dcff228593 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 1 Nov 2004 20:00:02 +0000 Subject: r3440: Add support for "coclass" to the pidl parser - the idl keyword that describes a COM class. A coclass is the implementation of one or more interfaces. It has a UUID referred to as it's CLSID (Class ID). Also adding an example coclass called "CoffeeMachine". You can give it a string (or a cup, whatever you like ;-) and it will fill it with "COFFEE" (kind of the like the echo pipe is for regular RPC). CoffeeMachine's Windows implementation already works, a torture test for Samba will follow soon. (This used to be commit 05dd840b6ffba0d38d98e2e80d856e2f2b5d877c) --- source4/librpc/idl/dcom.idl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'source4/librpc/idl/dcom.idl') diff --git a/source4/librpc/idl/dcom.idl b/source4/librpc/idl/dcom.idl index 1d32d723c6..eb470b6908 100644 --- a/source4/librpc/idl/dcom.idl +++ b/source4/librpc/idl/dcom.idl @@ -486,3 +486,21 @@ object, WERROR MarshalInterface(); WERROR UnMarshalInterface(); } + + +[ +uuid(DB7C21F8-FE33-4C11-AEA5-CEB56F076FBB), + helpstring("CoffeeMachine Class") +] coclass CoffeeMachine +{ + [ + uuid(DA23F6DB-6F45-466C-9EED-0B65286F2D78), + helpstring("ICoffeeMachine Interface"), + pointer_default(unique) + ] + + interface ICoffeeMachine : IUnknown + { + [helpstring("method MakeCoffee")] HRESULT MakeCoffee(BSTR *flavor); + } +} -- cgit