diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2015-03-18 12:39:24 +0100 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2015-12-22 21:45:35 +0100 |
commit | fe3fab53281310d16a631b201d2ffb1a82eb10fd (patch) | |
tree | dfcfe706d214ff43eddcfecd77696625b815e84c /include | |
parent | cee215c1df561ef5bd9a734eacfb50e828c7f395 (diff) | |
download | libusbg-fe3fab53281310d16a631b201d2ffb1a82eb10fd.tar.gz libusbg-fe3fab53281310d16a631b201d2ffb1a82eb10fd.tar.bz2 libusbg-fe3fab53281310d16a631b201d2ffb1a82eb10fd.zip |
libusbgx: Remove static buffers from usbg_f_net_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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/usbg/usbg.h b/include/usbg/usbg.h index f2b3668..e0a651e 100644 --- a/include/usbg/usbg.h +++ b/include/usbg/usbg.h @@ -49,6 +49,8 @@ extern "C" { #define USBG_MAX_NAME_LENGTH 40 /* Dev name for ffs is a part of function name, we subtracs 4 char for "ffs." */ #define USBG_MAX_DEV_LENGTH (USBG_MAX_NAME_LENGTH - 4) +/* ConfigFS just like SysFS uses page size as max size of file content */ +#define USBG_MAX_FILE_SIZE 4096 /** * @brief Additional option for usbg_rm_* functions. @@ -196,7 +198,7 @@ typedef struct { typedef struct { struct ether_addr dev_addr; struct ether_addr host_addr; - char ifname[USBG_MAX_STR_LENGTH]; + char *ifname; int qmult; } usbg_f_net_attrs; |