Function yrs::yxmltext_observe

source ยท
#[no_mangle]
pub unsafe extern "C" fn yxmltext_observe(
    xml: *const Branch,
    state: *mut c_void,
    cb: extern "C" fn(_: *mut c_void, _: *const YXmlTextEvent)
) -> *mut Subscription
Expand description

Subscribes a given callback function cb to changes made by this YXmlText instance. Callbacks are triggered whenever a ytransaction_commit is called. Returns a subscription ID which can be then used to unsubscribe this callback by using yunobserve function.