*
* Finds the beginning of a log tag in entry's payload and returns it
*/
-char* log_buffer_get_tag(const struct dlogutil_entry *entry);
+const char* log_buffer_get_tag(const struct dlogutil_entry *entry);
/**
* Returns pointer to log entry message
*
* Finds the beginning of a log message in entry's payload and returns it
*/
-char* log_buffer_get_message(const struct dlogutil_entry *entry);
+const char* log_buffer_get_message(const struct dlogutil_entry *entry);
/**
* Formats a log message into a buffer
* @param[in] entry The log entry
* @return Pointer to log tag
*/
-char* log_buffer_get_tag(const struct dlogutil_entry *entry)
+const char* log_buffer_get_tag(const struct dlogutil_entry *entry)
{
if (entry->len - (int) sizeof(struct dlogutil_entry) < 2)
return NULL;
* @param[in] entry The log entry
* @return Pointer to log message
*/
-char* log_buffer_get_message(const struct dlogutil_entry *entry)
+const char* log_buffer_get_message(const struct dlogutil_entry *entry)
{
if (entry->len - (int) sizeof(struct dlogutil_entry) < 2)
return NULL;
return digit + 'A' - 10;
}
-char *json_escape_string(char *in)
+char *json_escape_string(const char *in)
{
assert(in);
size_t len = strlen(in);
size_t default_buffer_size,
const struct dlogutil_entry *entry,
size_t *p_outLength,
- char *tag,
- char *msg)
+ const char *tag,
+ const char *msg)
{
const char *prio_name = json_priority_name(entry->priority);
char prefixBuf[128], suffixBuf[128];
char priChar;
int prefixSuffixIsHeaderFooter = 0;
- char *tag, *msg;
+ const char *tag, *msg;
char * ret = NULL;
priChar = filter_pri_to_char((log_priority)entry->priority);