hdt: Rewrite DMI module using a new syntax for the CLI
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Thu, 19 Mar 2009 03:22:58 +0000 (20:22 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Thu, 19 Mar 2009 03:27:11 +0000 (20:27 -0700)
commit2956fbba9e5741fca3590a846c75d80940c9df7e
tree6b01f79eb51b83715abd2c830ce08c3f05ac0e52
parentc9c116011d587a6b87e0f606845aed075950297b
hdt: Rewrite DMI module using a new syntax for the CLI

Impact: Start refactoring the CLI.

In order to have an extensible CLI, the commands handling needs to be
refactored. This patch starts the migration by refactoring the DMI
module.

Note that the core of the new commands parser has been implemented.
Adapting other modules to use it simply requires to declare
new structures that maps the command string to the callback.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
com32/hdt/hdt-cli-dmi.c
com32/hdt/hdt-cli.c
com32/hdt/hdt-cli.h