diff options
author | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2010-01-07 03:24:05 +0000 |
---|---|---|
committer | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2010-01-07 03:24:05 +0000 |
commit | 0ae2330eb4c478b7d95474e157f89ad97a407142 (patch) | |
tree | b6a0fe549c2e282938dc500c5e186f7724435af0 /buspirate_spi.c | |
parent | ee31e1adaa7d58e04999ee7dfc153e7218f28ef2 (diff) | |
download | flashrom-0ae2330eb4c478b7d95474e157f89ad97a407142.tar.gz |
Move the CLI related functions main() and cli_usage() to cli_classic.c
and rename them accordingly. For now, main() just calls cli_classic(),
but alternative frontends can be switched in main().
Annotate remaining help texts with CLI dependency inside flashrom.c with
a FIXME comment.
Now people can go and create different frontends and be happy. Please
note that any other frontend will have to sort of duplicate the probing
code in cli_classic.c. Refactoring that part of the code is possible,
but not easy because we still want to print instructive help messages
for users.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Sean Nelson <audiohacked@gmail.com>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@833 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'buspirate_spi.c')
0 files changed, 0 insertions, 0 deletions