diff options
Diffstat (limited to 'src/console/logstorage/dlt-logstorage-prop.h')
-rw-r--r-- | src/console/logstorage/dlt-logstorage-prop.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/src/console/logstorage/dlt-logstorage-prop.h b/src/console/logstorage/dlt-logstorage-prop.h new file mode 100644 index 0000000..836dc99 --- /dev/null +++ b/src/console/logstorage/dlt-logstorage-prop.h @@ -0,0 +1,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_ */ |