mpv_command_ret method

int mpv_command_ret(
  1. Pointer<mpv_handle> ctx,
  2. Pointer<Pointer<Int8>> args,
  3. Pointer<mpv_node> result
)

This is essentially identical to mpv_command() but it also returns a result.

Does not use OSD and string expansion by default.

@paramin args NULL-terminated list of strings. Usually, the first item is the command, and the following items are arguments. @paramout result Optional, pass NULL if unused. If not NULL, and if the function succeeds, this is set to command-specific return data. You must call mpv_free_node_contents() to free it (again, only if the command actually succeeds). Not many commands actually use this at all. @return error code (the result parameter is not set on error)

Implementation

int mpv_command_ret(
  ffi.Pointer<mpv_handle> ctx,
  ffi.Pointer<ffi.Pointer<ffi.Int8>> args,
  ffi.Pointer<mpv_node> result,
) {
  return _mpv_command_ret(
    ctx,
    args,
    result,
  );
}