diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2015-04-08 15:07:49 +0200 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2015-04-16 12:49:26 +0200 |
commit | 8202fdcc748d7a3a9036bfc2ff83b409314e66fa (patch) | |
tree | a0f47d46d88fec9466920a7e2f6c6818ec82caab /include | |
parent | b114fad00622687079d61429408132aebf478392 (diff) | |
download | libusbg-8202fdcc748d7a3a9036bfc2ff83b409314e66fa.tar.gz libusbg-8202fdcc748d7a3a9036bfc2ff83b409314e66fa.tar.bz2 libusbg-8202fdcc748d7a3a9036bfc2ff83b409314e66fa.zip |
libusbg: Introduce usbg_cleanup_function_attrs() function
We would like to eliminate static buffers from function
attributes. To achieve this we should ensure that there
is some function which free the memory allocated
in usbg_get_function_attrs()
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Reviewed-by: Pawel Szewczyk <p.szewczyk@samsung.com>
Reviewed-by: Philippe De Swert <philippedeswert@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/usbg/usbg.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/usbg/usbg.h b/include/usbg/usbg.h index 20e733d..40fb5cf 100644 --- a/include/usbg/usbg.h +++ b/include/usbg/usbg.h @@ -710,6 +710,16 @@ extern int usbg_lookup_function_type(const char *name); */ extern int usbg_lookup_function_attrs_type(int f_type); +/** + * @brief Cleanup content of function attributes + * @param f_attrs function attributes which should be cleaned up. + * @note This function should be called to free + * additional memory allocated by usbg_get_function_attrs(). + * @warning None of attributes in passed structure should be + * accessed after returning from this function. + */ +extern void usbg_cleanup_function_attrs(usbg_function_attrs *f_attrs); + /* USB configurations allocation and configuration */ /** |