discover: Add device_{request,release}_write
authorJeremy Kerr <jk@ozlabs.org>
Tue, 1 Oct 2013 04:27:35 +0000 (12:27 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 1 Oct 2013 04:52:00 +0000 (12:52 +0800)
commit9fbd73a208c9465b4bf9e2c80c7290b72e62ead1
treea0e2899a65433c23105140ab8591b10c19325c32
parentb86a7a0533c4d723ea940ac2071f845f165f832c
discover: Add device_{request,release}_write

Add a pair of functions to the parser API to allow write access to the
underlying device. We'll use this in the GRUB2 parser to implement
environment persistence.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/device-handler.c
discover/device-handler.h
discover/parser.c
discover/parser.h
test/parser/utils.c