diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2014-07-05 13:03:27 +0200 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2014-08-25 10:42:09 +0200 |
commit | d8fad2dabdcf091b4183a3103ab4f7dfe40ecf9d (patch) | |
tree | 487846743140305cfadd863c341350449d578860 /include | |
parent | 82265a405c2e46edcc9196aa8cd2eda608234339 (diff) | |
download | libusbg-d8fad2dabdcf091b4183a3103ab4f7dfe40ecf9d.tar.gz libusbg-d8fad2dabdcf091b4183a3103ab4f7dfe40ecf9d.tar.bz2 libusbg-d8fad2dabdcf091b4183a3103ab4f7dfe40ecf9d.zip |
libusbg: Add export gadget functionality
Whole gadget setting process take a lot of simple
commands (or lines of code). Those shell commands
may take a while or require dedicated script and
hard-coding gadget configuration. To avoid such
situation add to library ability to export a whole
gadget into file.
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/usbg/usbg.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usbg/usbg.h b/include/usbg/usbg.h index 02eb1dd..3a66ae3 100644 --- a/include/usbg/usbg.h +++ b/include/usbg/usbg.h @@ -915,6 +915,14 @@ extern int usbg_export_function(usbg_function *f, FILE *stream); extern int usbg_export_config(usbg_config *c, FILE *stream); /** + * @brief Exports whole gadget to file + * @param g Pointer to gadget to be exported + * @param stream where gadget should be saved + * @return 0 on success, usbg_error otherwise + */ +extern int usbg_export_gadget(usbg_gadget *g, FILE *stream); + +/** * @} */ #endif /* __USBG_H__ */ |