Hello everybody.
Is it possible to access the enumerations defined within an interface from a module that uses this interface as proxy?
For example, if I have
interface IModuleWithEnum{
/* Enumeration */
enum State{
State_0 = 0x00,
State_1 = 0x01,
State_2 = 0x02,
State_3 = 0x03
};
/* Function definitions... */
Void fxn1();
}
and
module ModuleWithEnum inherits IModuleWithEnum{
}
I can access the elements of the enumeration from ModuleA.c using ModuleA_State_0 without any problems.
But then I define another module:
module ModuleWithProxy {
proxy PModuleWithEnum inherits IModuleWithEnum;
/* functions... */
}
and then I try to access the enumeration from the functions defined in ModuleWithProxy.c using ModuleWithProxy_PModuleWithEnum_State_0. But when I try to build the package, file ModuleWithProxy.c does not compile saying that "identifier ModuleWithProxy_PModuleWithEnum_State_0 is undefined" (However, accesses to ModuleWithProxy_PModuleWithEnum_fxn1() are recognized).
Is what I want to do possible? if so, how is it done? or am I just missing something trivial?