ssh_remove_channel_callbacks method

int ssh_remove_channel_callbacks(
  1. Pointer<ssh_channel> channel,
  2. ssh_channel_callbacks cb
)

@brief Remove a channel callback.

The channel has been added with ssh_add_channel_callbacks or ssh_set_channel_callbacks in this case.

@param channel The channel to remove the callback structure from.

@param cb The callback structure to remove

@returns SSH_OK on success, SSH_ERROR on error.

Implementation

int ssh_remove_channel_callbacks(
  ffi.Pointer<ssh_channel> channel,
  ssh_channel_callbacks cb,
) {
  return _ssh_remove_channel_callbacks(
    channel,
    cb,
  );
}