Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

On internal interfaces and multiple versions

9 views
Skip to first unread message

Thomas Zimmermann

unread,
Dec 8, 2014, 9:19:48 AM12/8/14
to br...@mozilla.com, dev-bl...@lists.mozilla.org
Hi Bruce,

Having some quietness after the workweek, I thought about your questions
on how to handle differences in the HAL protocol version.

It occurred to me that there is no reason to #ifdef different versions
of commands or notifications. The internal interfaces might need a
modification here and there, but that should be compatible with any
version of the protocol. So no #ifdef are needed.

To port to L, you should only need to modify *Cmd methods in the module
classes and the call operator of the notification's InitOp classes.
#ifdef will certainly be required here. If a version doesn't support a
certain parameter, you can put in a dummy value or work around it otherwise.

Best regards
Thomas
0 new messages