aboutsummaryrefslogtreecommitdiff
path: root/include/dfu.h
diff options
context:
space:
mode:
authorPatrick Delaunay2019-10-14 09:28:01 +0200
committerMarek Vasut2019-10-31 12:12:31 +0100
commit9ada683055a11860b83d5c2cc13713ca2b173c33 (patch)
treeb902f3e16288731a788a810475ab921f00f3aecb /include/dfu.h
parentcb986ba0fe4692a9d21a193c4ca9db460df77364 (diff)
dfu: prepare the support of multiple interface
Split the function dfu_config_entities with 2 new functions - dfu_alt_init - dfu_alt_add Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'include/dfu.h')
-rw-r--r--include/dfu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dfu.h b/include/dfu.h
index bf51ab74a50..7d60ffc2282 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -143,6 +143,8 @@ struct dfu_entity {
#ifdef CONFIG_SET_DFU_ALT_INFO
void set_dfu_alt_info(char *interface, char *devstr);
#endif
+int dfu_alt_init(int num, struct dfu_entity **dfu);
+int dfu_alt_add(struct dfu_entity *dfu, char *interface, char *devstr, char *s);
int dfu_config_entities(char *s, char *interface, char *devstr);
void dfu_free_entities(void);
void dfu_show_entities(void);