Gnash
0.8.11dev
|
The core Gnash libraries support a flexible way of interacting with hosting applications. This is necessary for ActionScript execution, as well as for user notifications.
The rationale for the current design is that hosting applications should be able to support as many of the expected messages types as they choose using a single interface: gnash::HostInterface::call(). This should support various types of argument and various types of return, so that the different
The drawback of this flexibility is that there is no compile-time check for the correct use of the interface. Within the core libraries, this host interface is accessed only through gnash::movie_root::callInterface(), ensuring that any mistakes in the hosting application are handled safely and logged.