summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2015-03-18 12:39:24 +0100
committerKrzysztof Opasiak <k.opasiak@samsung.com>2015-12-22 21:45:35 +0100
commitfe3fab53281310d16a631b201d2ffb1a82eb10fd (patch)
treedfcfe706d214ff43eddcfecd77696625b815e84c /include
parentcee215c1df561ef5bd9a734eacfb50e828c7f395 (diff)
downloadlibusbg-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.h4
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;