summaryrefslogtreecommitdiffstats
path: root/common/state
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-10-18 10:50:59 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-10-18 13:43:42 +0200
commit416024c9aefb9c484033433d9b051d422f34ce64 (patch)
tree3bec1aca91c3d5a5c123696ccd0291c1e9aef856 /common/state
parent8a3967479630f62036288f84391d73996f1639ce (diff)
downloadbarebox-416024c9aefb9c484033433d9b051d422f34ce64.tar.gz
barebox-416024c9aefb9c484033433d9b051d422f34ce64.tar.xz
bootchooser: Add reference counting
This adds reference counting to the bootchooser. Instead of creating a new bootchooser instance with each bootchooser_get() we return a reference to the existing bootchooser. This makes the behaviour consistent when bootchooser_get() is called multiple times. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state')
0 files changed, 0 insertions, 0 deletions