Commit 0b565a6e authored by Jack Jansen's avatar Jack Jansen

- Renamed OSA.ComponentInstance to OSA.OSAComponentInstance. It is not

a real subtype of Cm.ComponentInstance right now, it turns out that is
too difficult.
- OSA.OSAComponentInstance initializer does accept a Cm.ComponentInstance
instance, though, so at least things are becoming useable.
parent 19cb1932
This diff is collapsed.
...@@ -68,10 +68,18 @@ class MyObjectDefinition(PEP253Mixin, GlobalObjectDefinition): ...@@ -68,10 +68,18 @@ class MyObjectDefinition(PEP253Mixin, GlobalObjectDefinition):
PyErr_SetString(OSA_Error,"NULL ComponentInstance"); PyErr_SetString(OSA_Error,"NULL ComponentInstance");
return NULL; return NULL;
}""") }""")
def outputCheckConvertArg(self):
Output("""
if (CmpInstObj_Convert(v, p_itself))
return 1;
PyErr_Clear();
""")
# Create the generator groups and link them # Create the generator groups and link them
module = MacModule(MODNAME, MODPREFIX, includestuff, finalstuff, initstuff) module = MacModule(MODNAME, MODPREFIX, includestuff, finalstuff, initstuff)
object = MyObjectDefinition('ComponentInstance', OBJECTPREFIX, object = MyObjectDefinition('OSAComponentInstance', OBJECTPREFIX,
'ComponentInstance') 'ComponentInstance')
module.addobject(object) module.addobject(object)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment