diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2014-07-05 12:52:25 +0200 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2014-08-25 10:42:09 +0200 |
commit | 82265a405c2e46edcc9196aa8cd2eda608234339 (patch) | |
tree | 8bafe2faba6402df7c75d6ae8414d5d4f9162edd /include | |
parent | 6262d382b6aa43efbb7b9b45c6fda927ec0cae79 (diff) | |
download | libusbg-82265a405c2e46edcc9196aa8cd2eda608234339.tar.gz libusbg-82265a405c2e46edcc9196aa8cd2eda608234339.tar.bz2 libusbg-82265a405c2e46edcc9196aa8cd2eda608234339.zip |
libusbg: Add export config functionality
Configuration may have several functions if we add
strings and some attributes it gives a few shell commands
to set it up. To avoid this add export cofiguration
which allows to store usb configuration in a 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 99c201c..02eb1dd 100644 --- a/include/usbg/usbg.h +++ b/include/usbg/usbg.h @@ -907,6 +907,14 @@ extern usbg_binding *usbg_get_next_binding(usbg_binding *b); extern int usbg_export_function(usbg_function *f, FILE *stream); /** + * @brief Exports configuration to file + * @param c Pointer to configuration to be exported + * @param stream where configuration should be saved + * @return 0 on success, usbg_error otherwise + */ +extern int usbg_export_config(usbg_config *c, FILE *stream); + +/** * @} */ #endif /* __USBG_H__ */ |