summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_common.h
diff options
context:
space:
mode:
authorLassi Marttala <lassi.lm.marttala@partner.bmw.de>2012-05-07 15:36:31 +0200
committerChristian Muck <christian.muck@bmw.de>2012-05-30 09:05:27 +0200
commite8120186b8ffdbd705d94737c874a6230afdaa2b (patch)
tree87f5373ee5d73e98bec63a9649f07bf06aa627bf /src/daemon/dlt_daemon_common.h
parent33de39a39c5838104d04d08e6eaff8ccb0d0f98d (diff)
downloadDLT-daemon-e8120186b8ffdbd705d94737c874a6230afdaa2b.tar.gz
[D4099]: Integrated fix from Alexander Wenzel. This will check for
duplicate file handles, and clean them up if found. Signed-off-by: Christian Muck <christian.muck@bmw.de>
Diffstat (limited to 'src/daemon/dlt_daemon_common.h')
-rw-r--r--[-rwxr-xr-x]src/daemon/dlt_daemon_common.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/daemon/dlt_daemon_common.h b/src/daemon/dlt_daemon_common.h
index 9bbe3c7..48c8868 100755..100644
--- a/src/daemon/dlt_daemon_common.h
+++ b/src/daemon/dlt_daemon_common.h
@@ -204,6 +204,14 @@ int dlt_daemon_applications_load(DltDaemon *daemon,const char *filename, int ver
*/
int dlt_daemon_applications_save(DltDaemon *daemon,const char *filename, int verbose);
/**
+ * Invalidate all applications fd, if fd is reused
+ * @param daemon pointer to dlt daemon structure
+ * @param fd file descriptor
+ * @param verbose if set to true verbose information is printed out.
+ * @return negative value if there was an error
+ */
+int dlt_daemon_applications_invalidate_fd(DltDaemon *daemon,int fd,int verbose);
+/**
* Clear all applications in internal application management
* @param daemon pointer to dlt daemon structure
* @param verbose if set to true verbose information is printed out.
@@ -243,6 +251,14 @@ int dlt_daemon_context_del(DltDaemon *daemon, DltDaemonContext* context, int ver
*/
DltDaemonContext* dlt_daemon_context_find(DltDaemon *daemon,char *apid,char *ctid,int verbose);
/**
+ * Invalidate all contexts fd, if fd is reused
+ * @param daemon pointer to dlt daemon structure
+ * @param fd file descriptor
+ * @param verbose if set to true verbose information is printed out.
+ * @return negative value if there was an error
+ */
+int dlt_daemon_contexts_invalidate_fd(DltDaemon *daemon,int fd,int verbose);
+/**
* Clear all contexts in internal context management
* @param daemon pointer to dlt daemon structure
* @param verbose if set to true verbose information is printed out.