Simulated product dispenser

Dependencies:   HTS221

Fork of mbed-cloud-workshop-connect-HTS221 by Jim Carver

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers sotp_log.h Source File

sotp_log.h

00001 /*
00002  * Copyright (c) 2016 ARM Limited. All rights reserved.
00003  * SPDX-License-Identifier: Apache-2.0
00004  * Licensed under the Apache License, Version 2.0 (the License); you may
00005  * not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
00012  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 
00018 #ifndef __SOTP_LOG_H
00019 #define __SOTP_LOG_H
00020 
00021 #include <stdarg.h>
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026 
00027 #if 0
00028 #if defined(ESFS_INTERACTIVE_TEST) && defined(TARGET_IS_PC_LINUX)
00029     #ifndef SOTP_LOG
00030         #define SOTP_LOG 1
00031     #endif
00032 #endif
00033 #endif
00034 
00035 #if SOTP_LOG
00036 void sotp_log_create(char *fmt, ...);
00037 void sotp_log_append(char *fmt, ...);
00038 void sotp_log_finalize(void);
00039 void sotp_log_init(void);
00040 void sotp_log_print_log(void);
00041 #define SOTP_LOG_CREATE sotp_log_create
00042 #define SOTP_LOG_APPEND sotp_log_append
00043 #define SOTP_LOG_FINALIZE sotp_log_finalize
00044 #define SOTP_LOG_PRINT_LOG sotp_log_print_log
00045 #define SOTP_LOG_INIT sotp_log_init
00046 #else
00047 #define SOTP_LOG_CREATE(...) ((void)0)
00048 #define SOTP_LOG_APPEND(...) ((void)0)
00049 #define SOTP_LOG_FINALIZE(...) ((void)0)
00050 #define SOTP_LOG_PRINT_LOG(...) ((void)0)
00051 #define SOTP_LOG_INIT(...) ((void)0)
00052 #endif
00053 
00054 #ifdef __cplusplus
00055 }
00056 #endif
00057 
00058 #endif
00059