From d42782631d59ea12251629bb827f725ef4dfddf6 Mon Sep 17 00:00:00 2001 From: Lukasz Majewski Date: Tue, 8 Oct 2013 14:30:39 +0200 Subject: dfu:core: Export dfu_{get|free}_buf functions Define the dfu_get_buf() and dfu_free_buf() as global functions. They are necessary for zero copy buffer management, when DFU backend is used for storing data. Signed-off-by: Lukasz Majewski --- include/dfu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/dfu.h') diff --git a/include/dfu.h b/include/dfu.h index b14425503d6..cc140449271 100644 --- a/include/dfu.h +++ b/include/dfu.h @@ -129,6 +129,8 @@ void dfu_trigger_reset(void); int dfu_get_alt(char *name); bool dfu_reset(void); int dfu_init_env_entities(char *interface, int dev); +unsigned char *dfu_get_buf(void); +unsigned char *dfu_free_buf(void); int dfu_read(struct dfu_entity *de, void *buf, int size, int blk_seq_num); int dfu_write(struct dfu_entity *de, void *buf, int size, int blk_seq_num); -- cgit v1.2.3