public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [RFC PATCH 0/5] Add environment call-back capability
@ 2012-09-21 22:03 Joe Hershberger
  2012-09-21 22:03 ` [U-Boot] [RFC PATCH 1/5] env: Add support for callbacks to environment vars Joe Hershberger
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Joe Hershberger @ 2012-09-21 22:03 UTC (permalink / raw)
  To: u-boot


When a variable with a registered callback is inserted, deleted, or
overwritten the callback is called and gives the system an opportunity
to do something in response to the change.  It also has the opportunuty
to reject the change by returning non-zero.

Before I go much further, I want to get a little feedback if this is a
good implementation.  It certainly cleans up cmd_nvedit.c significantly!


Joe Hershberger (5):
  env: Add support for callbacks to environment vars
  env: Add a loadaddr env handler
  env: Add a bootfile env handler
  env: Add a baudrate env handler
  env: Add a console env handler

 arch/arm/cpu/u-boot.lds |   7 +++
 common/Makefile         |   4 +-
 common/cmd_load.c       |  24 +++++++-
 common/cmd_nvedit.c     |  87 --------------------------
 common/console.c        |  46 ++++++++++++++
 common/env_attr.c       | 159 ++++++++++++++++++++++++++++++++++++++++++++++++
 common/env_callback.c   | 114 ++++++++++++++++++++++++++++++++++
 common/serial.c         |  58 ++++++++++++++++++
 include/env_attr.h      |  35 +++++++++++
 include/env_callback.h  |  64 +++++++++++++++++++
 include/environment.h   |   2 +
 include/search.h        |   5 ++
 lib/hashtable.c         |  65 +++++++++++++++++++-
 net/net.c               |  16 +++++
 14 files changed, 595 insertions(+), 91 deletions(-)
 create mode 100644 common/env_attr.c
 create mode 100644 common/env_callback.c
 create mode 100644 include/env_attr.h
 create mode 100644 include/env_callback.h

-- 
1.7.11.5

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-09-28  5:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-21 22:03 [U-Boot] [RFC PATCH 0/5] Add environment call-back capability Joe Hershberger
2012-09-21 22:03 ` [U-Boot] [RFC PATCH 1/5] env: Add support for callbacks to environment vars Joe Hershberger
2012-09-26 19:33   ` Wolfgang Denk
2012-09-27 22:47     ` [U-Boot] [RFC PATCH v2 0/5] Add environment call-back capability Joe Hershberger
2012-09-27 22:47       ` [U-Boot] [RFC PATCH v2 1/5] env: Add support for callbacks to environment vars Joe Hershberger
2012-09-28  5:53         ` Marek Vasut
2012-09-27 22:47       ` [U-Boot] [RFC PATCH v2 2/5] env: Add a loadaddr env handler Joe Hershberger
2012-09-27 22:47       ` [U-Boot] [RFC PATCH v2 3/5] env: Add a bootfile " Joe Hershberger
2012-09-27 22:47       ` [U-Boot] [RFC PATCH v2 4/5] env: Add a baudrate " Joe Hershberger
2012-09-27 22:47       ` [U-Boot] [RFC PATCH v2 5/5] env: Add a console " Joe Hershberger
2012-09-21 22:03 ` [U-Boot] [RFC PATCH 2/5] env: Add a loadaddr " Joe Hershberger
2012-09-21 22:03 ` [U-Boot] [RFC PATCH 3/5] env: Add a bootfile " Joe Hershberger
2012-09-21 22:03 ` [U-Boot] [RFC PATCH 4/5] env: Add a baudrate " Joe Hershberger
2012-09-21 22:03 ` [U-Boot] [RFC PATCH 5/5] env: Add a console " Joe Hershberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox