summaryrefslogtreecommitdiff
path: root/include/dlt/dlt_user.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'include/dlt/dlt_user.h.in')
-rw-r--r--include/dlt/dlt_user.h.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/dlt/dlt_user.h.in b/include/dlt/dlt_user.h.in
index b4d508d..30eb234 100644
--- a/include/dlt/dlt_user.h.in
+++ b/include/dlt/dlt_user.h.in
@@ -211,6 +211,7 @@ typedef struct
pthread_t dlt_segmented_nwt_handle; /**< thread handle of segmented sending */
#endif
int8_t dlt_is_file; /**< Target of logging: 1 to file, 0 to daemon */
+ unsigned int filesize_max; /**< Maximum size of existing file in case dlt_is_file=1 */
dlt_ll_ts_type *dlt_ll_ts; /** [MAX_DLT_LL_TS_ENTRIES]; < Internal management struct for all
* contexts */
@@ -821,6 +822,14 @@ DltReturnValue dlt_init();
DltReturnValue dlt_init_file(const char *name);
/**
+ * Set maximum file size if lib is configured to write only to file.
+ * This function has to be called after dlt_init_file().
+ * @param filesize maximum file size
+ * @return Value from DltReturnValue enum
+ */
+DltReturnValue dlt_set_filesize_max(unsigned int filesize);
+
+/**
* Terminate the user lib.
* This function has to be called when finishing using the DLT user lib.
* @return Value from DltReturnValue enum