| 88 | |
| 89 | |
| 90 | void LineFormatter::Register(LineFormatter* formatter) |
| 91 | { |
| 92 | BNCustomLineFormatter cb; |
| 93 | cb.context = formatter; |
| 94 | cb.formatLines = FormatLinesCallback; |
| 95 | cb.freeLines = FreeLinesCallback; |
| 96 | |
| 97 | formatter->AddRefForRegistration(); |
| 98 | formatter->m_object = BNRegisterLineFormatter(formatter->m_nameForRegister.c_str(), &cb); |
| 99 | } |
| 100 | |
| 101 | |
| 102 | BNDisassemblyTextLine* LineFormatter::FormatLinesCallback(void* ctxt, BNDisassemblyTextLine* inLines, size_t inCount, |
nothing calls this directly
no test coverage detected