//..............................................................................
//
// $(pluginName) log representer
//

import "log_Representer.jnc"

//..............................................................................

bool $(logRepresenterFunc) (
	log.RepresenterTarget* target,
	uint64_t recordCode,
	void const* p,
	size_t size,
	uint_t foldFlags
	)
{
	switch (recordCode)
	{
	case $(logRecordCodeEnum).InBandCommand:
		target.m_lineAttr.m_iconIdx = log.StdLogIcon.Info;
		target.m_lineAttr.m_backColor = log.StdLogColor.Info;
		target.addHyperText ($"In-band command: $((char const*) p)");
		break;

	default:
		return false;
	}

	return true;
}

//..............................................................................
