Hi all,

This series begins to improve the process of command registration.

First, it adds a migration macro (COMMAND_REGISTER), which is used
instead of direct calls to register_command().  That API is converted to
use a structure, and a batch helper added.  With the new API in place,
another patch adds support for separate 'usage' command, then all of the
src/helper source files are updated to use the new batch registration.
Simultaneously, these last patches provide correct help and usage text.

This also provides the foundation for removing all 'register_commands'
callbacks (from the JTAG interface, target, and flash structures).  In
their place, these modules will provide a list of command registration
records that will be passed to register_commands.  This will eliminate
this slew of identical looking functions from the tree once and for all.

Cheers,

Zach
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to