From 73180fc762f015935950f697822710af3f5bd23d Mon Sep 17 00:00:00 2001 From: ManikandanC Date: Fri, 6 Oct 2017 11:37:31 +0530 Subject: Use poll in the dlt-daemon for POSIX compliance The poll system call is now used in the daemon to enable DLT use in POSIX compliant systems. Also added introduced new unregister_app macro to avoid missing of logs in startup buffer. Signed-off-by: Frederic Berat Signed-off-by: ManikandanC Signed-off-by: Saya Sugiura Signed-off-by: S. Hameed --- include/dlt/dlt_user.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/dlt/dlt_user.h') diff --git a/include/dlt/dlt_user.h b/include/dlt/dlt_user.h index 7b0aa8d..82e5e31 100644 --- a/include/dlt/dlt_user.h +++ b/include/dlt/dlt_user.h @@ -499,6 +499,13 @@ DltReturnValue dlt_register_app(const char *appid, const char * description); */ DltReturnValue dlt_unregister_app(void); +/** + * Unregister an application in the daemon and also flushes the buffered logs. + * This function has to be called when finishing using an application. + * @return Value from DltReturnValue enum + */ +DltReturnValue dlt_unregister_app_flush_buffered_logs(void); + /** * Register a context in the daemon. * This function has to be called before first usage of the context. -- cgit v1.2.1