« Previous | Next » 

Revision d2d7d5c3

IDd2d7d5c3db0714c0efaa05fa013022fccb2b27e6

Added by Guido Trotter almost 13 years ago

objects: add configuration upgrade system

Add a very basic configuration update mechanism to objects.
An object can define the UpgradeConfig method, which will be called at
init time, and use it to fill in missing defaults in the configuration.
In the future we may want to make it more complex, for example adding
the config version, but for now a basic solution will do.

Signed-off-by: Guido Trotter <>
Reviewed-by: Iustin Pop <>
(cherry picked from commit 560428be4f5852813972cd2791f425cf708ca7c6)

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences