pub unsafe extern "C" fn Dart_SetServiceStreamCallbacks(
    listen_callback: Dart_ServiceStreamListenCallback,
    cancel_callback: Dart_ServiceStreamCancelCallback
) -> *mut c_char
Expand description

Adds VM service stream callbacks.

\param listen_callback A function pointer to a listen callback function. A listen callback function should not be already set when this function is called. A NULL value removes the existing listen callback function if any.

\param cancel_callback A function pointer to a cancel callback function. A cancel callback function should not be already set when this function is called. A NULL value removes the existing cancel callback function if any.

\return Success if the callbacks were added. Otherwise, returns an error handle.