From 4fa972dc2d89395eafd15b017e9864f70040d4e7 Mon Sep 17 00:00:00 2001 From: Krzysztof Opasiak Date: Tue, 6 Dec 2016 14:20:57 +0100 Subject: libusbgx: Move internal defines to a suitable heder Signed-off-by: Krzysztof Opasiak --- include/usbg/usbg.h | 3 --- include/usbg/usbg_internal.h | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/usbg/usbg.h b/include/usbg/usbg.h index 0f334d4..2f60254 100644 --- a/include/usbg/usbg.h +++ b/include/usbg/usbg.h @@ -50,12 +50,9 @@ extern "C" { /* This one has to be at least 18 bytes to hold network address */ #define USBG_MAX_STR_LENGTH 256 -#define USBG_MAX_PATH_LENGTH PATH_MAX #define USBG_MAX_NAME_LENGTH 40 /* Dev name for ffs is a part of function name, we subtract 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. diff --git a/include/usbg/usbg_internal.h b/include/usbg/usbg_internal.h index 21584a0..df6dad5 100644 --- a/include/usbg/usbg_internal.h +++ b/include/usbg/usbg_internal.h @@ -47,6 +47,10 @@ extern "C" { }) #endif /* container_of */ +#define USBG_MAX_PATH_LENGTH PATH_MAX +/* ConfigFS just like SysFS uses page size as max size of file content */ +#define USBG_MAX_FILE_SIZE 4096 + struct usbg_function_type { /* Name of this function type */ -- cgit v1.2.3