| 115 | } |
| 116 | |
| 117 | void cbm_log_set_sink(cbm_log_sink_fn fn) { |
| 118 | cbm_log_set_sink_ex(fn, CBM_LOG_SINK_REPLACE); |
| 119 | } |
| 120 | |
| 121 | void cbm_log_set_sink_ex(cbm_log_sink_fn fn, CBMLogSinkMode mode) { |
| 122 | /* Mode first: a reader that observes the new sink then reads the mode can |