summaryrefslogtreecommitdiff
path: root/tst/stubs/dlt/dlt-stub.h
blob: ff1d2cd4d6c16409031e6edcdd4917e3da9ab393 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* NHM - NodeHealthMonitor
 *
 * Definition of stubs for dlt
 *
 * Author: Jean-Pierre Bogler <Jean-Pierre.Bogler@continental-corporation.com>
 *
 * Copyright (C) 2013 Continental Automotive Systems, Inc.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public License,
 * 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/.
 */

#ifndef DLT_STUB_H
#define DLT_STUB_H

/*******************************************************************************
*
* Header includes
*
*******************************************************************************/

#include <dlt/dlt.h> /* Include header of real dlt */

/*******************************************************************************
*
* Exported variables, constants and defines
*
*******************************************************************************/

int dlt_register_app_stub         (const char      *appid,
                                   const char      *description);
int dlt_check_library_version_stub(const char      *user_major_version,
                                   const char      *user_minor_version);
int dlt_register_context_stub     (DltContext      *handle,
                                   const char      *contextid,
                                   const char      *description);
int dlt_unregister_context_stub   (DltContext      *handle);
int dlt_unregister_app_stub       (void);
int dlt_user_log_write_start_stub (DltContext      *handle,
                                   DltContextData  *log,
                                   DltLogLevelType  loglevel);
int dlt_user_log_write_finish_stub(DltContextData  *log);
int dlt_user_log_write_string_stub(DltContextData  *log,
                                   const char      *text);
int dlt_user_log_write_int_stub   (DltContextData  *log,
                                   int              data);
int dlt_user_log_write_uint_stub  (DltContextData  *log,
                                   unsigned int     data);

#endif /* DLT_STUB_H */