summaryrefslogtreecommitdiff
path: root/tst/stubs/dlt/dlt-stub.c
blob: 6a1d09176bf728959733d254d95026c17aeafdc5 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/* NHM - NodeHealthMonitor
 *
 * Implementation 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/.
 */

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

#include <dlt/dlt.h>                /* Header of real sd daemon */
#include <tst/stubs/dlt/dlt-stub.h> /* Header of stub sd daemon */

/*******************************************************************************
*
* Interfaces. Exported functions.
*
*******************************************************************************/

int
dlt_register_app_stub(const char *appid,
                      const char *description)
{
  return 0;
}

/**
 * dlt_check_library_version_stub:
 *
 * Stub for dlt_check_library_version()
 */
int
dlt_check_library_version_stub(const char *user_major_version,
                               const char *user_minor_version)
{
  return 0;
}

/**
 * dlt_register_context_stub:
 *
 * Stub for dlt_register_context()
 */
int
dlt_register_context_stub(DltContext *handle,
                          const char *contextid,
                          const char * description)
{
  return 0;
}

/**
 * dlt_unregister_context_stub:
 *
 * Stub for dlt_unregister_context()
 */
int
dlt_unregister_context_stub(DltContext *handle)
{
  return 0;
}

/**
 * dlt_unregister_app_stub:
 *
 * Stub for dlt_unregister_app()
 */
int
dlt_unregister_app_stub(void)
{
  return 0;
}

/**
 * dlt_user_log_write_start_stub:
 *
 * Stub for dlt_user_log_write_start()
 */
int
dlt_user_log_write_start_stub(DltContext     *handle,
                              DltContextData *log,
                              DltLogLevelType loglevel)
{
  return 0;
}

/**
 * dlt_user_log_write_finish_stub:
 *
 * Stub for dlt_user_log_write_finish()
 */
int
dlt_user_log_write_finish_stub(DltContextData *log)
{
  return 0;
}

/**
 * dlt_user_log_write_string_stub:
 *
 * Stub for dlt_user_log_write_string()
 */
int
dlt_user_log_write_string_stub(DltContextData *log,
                               const char     *text)
{
  return 0;
}

/**
 * dlt_user_log_write_int_stub:
 *
 * Stub for dlt_user_log_write_int()
 */
int
dlt_user_log_write_int_stub(DltContextData *log,
                            int             data)
{
  return 0;
}

/**
 * dlt_user_log_write_uint_stub:
 *
 * Stub for dlt_user_log_write_uint()
 */
int
dlt_user_log_write_uint_stub(DltContextData *log,
                             unsigned int    data)
{
  return 0;
}