summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2016-12-06 14:20:57 +0100
committerKrzysztof Opasiak <k.opasiak@samsung.com>2016-12-06 14:20:57 +0100
commit4fa972dc2d89395eafd15b017e9864f70040d4e7 (patch)
tree37595edca48527f79e71958bebc2c272c5ff0ef7
parent28e228d9687ec82249c19a2d9a4cc15bbf5bd1ab (diff)
downloadlibusbg-4fa972dc2d89395eafd15b017e9864f70040d4e7.tar.gz
libusbg-4fa972dc2d89395eafd15b017e9864f70040d4e7.tar.bz2
libusbg-4fa972dc2d89395eafd15b017e9864f70040d4e7.zip
libusbgx: Move internal defines to a suitable heder
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
-rw-r--r--include/usbg/usbg.h3
-rw-r--r--include/usbg/usbg_internal.h4
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 */