From bc09757d465d4ee5728157dce4fed0f71841daa7 Mon Sep 17 00:00:00 2001 From: Christoph Lipka Date: Wed, 16 Mar 2016 16:05:53 +0900 Subject: Offline logstorage: On Demand triggering for syncing Logstorage cache and support long options Signed-off-by: Christoph Lipka Change-Id: I2bac5e48a5d210b544a96fe96dc322f28ac472fe --- src/daemon/dlt_daemon_offline_logstorage.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'src/daemon/dlt_daemon_offline_logstorage.h') diff --git a/src/daemon/dlt_daemon_offline_logstorage.h b/src/daemon/dlt_daemon_offline_logstorage.h index 148abd0..3ab092a 100644 --- a/src/daemon/dlt_daemon_offline_logstorage.h +++ b/src/daemon/dlt_daemon_offline_logstorage.h @@ -150,4 +150,34 @@ int dlt_daemon_logstorage_cleanup(DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose); +/** + * Sync logstorage caches + * + * @param daemon Pointer to Dlt Daemon structure + * @param daemon_local Pointer to Dlt Daemon Local structure + * @param mount_point Logstorage device mount point + * @param verbose If set to true verbose information is printed out + * @return 0 on success, -1 otherwise + */ +int dlt_daemon_logstorage_sync_cache(DltDaemon *daemon, + DltDaemonLocal *daemon_local, + char *mnt_point, + int verbose); + +/** + * dlt_logstorage_get_device + * + * Get a Logstorage device handle for given the mount point. + * + * @param daemon Pointer to Dlt Daemon structure + * @param daemon_local Pointer to Dlt Daemon Local structure + * @param mount_point Logstorage device mount point + * @param verbose If set to true verbose information is printed out + * @return handle to Logstorage device on success, NULL otherwise + */ +DltLogStorage *dlt_daemon_logstorage_get_device(DltDaemon *daemon, + DltDaemonLocal *daemon_local, + char *mnt_point, + int verbose); + #endif /* DLT_DAEMON_OFFLINE_LOGSTORAGE_H */ -- cgit v1.2.1