Add some field where additional label for function can be stored.

Signed-off-by: Krzysztof Opasiak <k.opas...@samsung.com>
---
 src/usbg.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/usbg.c b/src/usbg.c
index b1b5f44..55edd9e 100644
--- a/src/usbg.c
+++ b/src/usbg.c
@@ -75,7 +75,8 @@ struct usbg_function
        char *name;
        char *path;
        char *instance;
-
+       /* Only for internal library usage */
+       char *label;
        usbg_function_type type;
 };
 
@@ -511,6 +512,7 @@ static inline void usbg_free_function(usbg_function *f)
 {
        free(f->path);
        free(f->name);
+       free(f->label);
        free(f);
 }
 
@@ -631,6 +633,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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to