summaryrefslogtreecommitdiff
path: root/src/console/logstorage/dlt-logstorage-prop.h
blob: 836dc99ac08bd570714b5fe1aa4fd1f00cbddf48 (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
/**
 * @licence app begin@
 * Copyright (C) 2013 - 2015  Advanced Driver Information Technology.
 * This code is developed by Advanced Driver Information Technology.
 * Copyright of Advanced Driver Information Technology, Bosch and DENSO.
 *
 * This file is part of GENIVI Project Dlt - Diagnostic Log and Trace console apps.
 *
 * \copyright
 * 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/.
 *
 * \author Christoph Lipka <clipka@jp.adit-jv.com> ADIT 2015
 * \author Frederic Berat <fberat@de.adit-jv.com> ADIT 2015
 *
 * \file dlt-logstorage-udev.h
 * For further information see http://www.genivi.org/.
 * @licence end@
 */

#ifndef _DLT_LOGSTORAGE_PROP_H_
#define _DLT_LOGSTORAGE_PROP_H_

#ifndef HAS_PROPRIETARY_LOGSTORAGE
/** @brief Initialize proprietary connection
 *
 * @return 0
 */
static inline int dlt_logstorage_prop_init(void) {
    return 0;
}

/** @brief Clean-up proprietary connection
 *
 * @return 0
 */
static inline int dlt_logstorage_prop_deinit(void) {
    return 0;
}

/** @brief Check whether user wants to use proprietary handler
 *
 * @return 0
 */
static inline int check_proprietary_handling(char *type) {
    (void)type; return 0;
}
#else
/**
 * Initialize proprietary connection
 *
 * @return 0 on success, -1 on error
 */
int dlt_logstorage_prop_init(void);

/**
 * Clean-up proprietary connection
 *
 * @return 0 on success, -1 on error
 */
int dlt_logstorage_prop_deinit(void);

/**
 * Check whether user wants to use proprietary event handler
 *
 * @return 1 if yes, 0 either.
 */
int check_proprietary_handling(char *);
#endif /* HAS_PROPRIETARY_LOGSTORAGE */

#endif /* _DLT_LOGSTORAGE_PROP_H_ */