test.c: Remove flog_assert(0)
[flog.git] / flog_string.h
blobd2b431a773d89b668cb73458ef84718ef055f54c
1 //! Output string routines for Flog
3 //! @file flog_string.h
4 //! @author Nabeel Sowan (nabeel.sowan@vibes.se)
5 //!
6 //! To convert flog messages to strings
8 #ifndef FLOG_STRING_H
9 #define FLOG_STRING_H
11 #include "flog.h"
13 #ifdef FLOG_CONFIG_STRING_OUTPUT
15 #ifdef FLOG_CONFIG_TIMESTAMP
16 int flog_get_str_iso_timestamp(char **strp, const FLOG_TIMESTAMP_T ts);
17 #endif //FLOG_CONFIG_TIMESTAMP
18 int flog_get_str_msg_type(char **strp, const FLOG_MSG_TYPE_T type);
19 int flog_get_str_msg_id(char **strp, const FLOG_MSG_ID_T msg_id);
20 #ifdef FLOG_CONFIG_SRC_INFO
21 int flog_get_str_src_info(char **strp, const char *src_file, const int src_line, const char *src_func);
22 #endif //FLOG_CONFIG_SRC_INFO
23 int flog_get_str_message_header(char **strp, const FLOG_MSG_T *p);
24 int flog_get_str_message_content(char **strp, const FLOG_MSG_TYPE_T type, const FLOG_MSG_ID_T msg_id, const char *text);
25 int flog_get_str_message(char **strp, const FLOG_MSG_T *p);
27 #endif //FLOG_CONFIG_STRING_OUTPUT
29 #endif //FLOG_STRING_H