Add some field where additional label for function can be stored. Signed-off-by: Krzysztof Opasiak <k.opasiak@xxxxxxxxxxx> --- src/usbg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/usbg.c b/src/usbg.c index e6e97bf..5730854 100644 --- a/src/usbg.c +++ b/src/usbg.c @@ -84,7 +84,8 @@ struct usbg_function char *name; char *path; char *instance; - + /* Only for internal library usage */ + char *label; usbg_function_type type; }; @@ -520,6 +521,7 @@ static inline void usbg_free_function(usbg_function *f) { free(f->path); free(f->name); + free(f->label); free(f); } @@ -640,6 +642,7 @@ static usbg_function *usbg_allocate_function(const char *path, if (!f) goto out; + f->label = NULL; type_name = usbg_get_function_type_str(type); if (!type_name) { free(f); -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html