summaryrefslogtreecommitdiff
path: root/src/kpi/dlt-kpi-common.h
diff options
context:
space:
mode:
authorSven Hassler <sven_hassler@mentor.com>2015-11-25 14:26:06 +0100
committerLutz Helwing <lutz_helwing@mentor.com>2015-12-16 17:20:39 +0100
commit77400754611a8e7982a7ee3c4816ee5f070c0dca (patch)
tree43ddcfdbaeffa1afaa3df6377838c771ed8a837c /src/kpi/dlt-kpi-common.h
parent96439591a8be7e3e10a5de9488dde245777318c8 (diff)
downloadDLT-daemon-77400754611a8e7982a7ee3c4816ee5f070c0dca.tar.gz
Renamed "procfs" to "kpi", added sync-messages
Diffstat (limited to 'src/kpi/dlt-kpi-common.h')
-rw-r--r--src/kpi/dlt-kpi-common.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/kpi/dlt-kpi-common.h b/src/kpi/dlt-kpi-common.h
new file mode 100644
index 0000000..4e220a8
--- /dev/null
+++ b/src/kpi/dlt-kpi-common.h
@@ -0,0 +1,40 @@
+/*
+ * @licence app begin@
+ * SPDX license identifier: MPL-2.0
+ *
+ * Copyright (C) 2011-2015, BMW AG
+ *
+ * This file is part of GENIVI Project DLT - Diagnostic Log and Trace.
+ *
+ * This Source Code Form is subject to the terms of the
+ * Mozilla Public License (MPL), v. 2.0.
+ * If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * For further information see http://www.genivi.org/.
+ * @licence end@
+ */
+
+/*!
+ * \author Sven Hassler <sven_hassler@mentor.com>
+ *
+ * \copyright Copyright © 2011-2015 BMW AG. \n
+ * License MPL-2.0: Mozilla Public License version 2.0 http://mozilla.org/MPL/2.0/.
+ *
+ * \file dlt-kpi-common.h
+ */
+
+#ifndef SRC_KPI_DLT_KPI_COMMON_H_
+#define SRC_KPI_DLT_KPI_COMMON_H_
+
+#include <dlt_types.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+
+#define BUFFER_SIZE 4096
+
+DltReturnValue dlt_kpi_read_file(char* filename, char* buffer, uint maxLength);
+DltReturnValue dlt_kpi_read_file_compact(char *filename, char **target);
+
+#endif /* SRC_KPI_DLT_KPI_COMMON_H_ */