mmr_async_input_attach()

Asynchronously attach an input.

Synopsis:

#include <mm/renderer/async.h>
 
int mmr_async_input_attach(mmr_context_t *ctxt,
                           void *udata,
                           const char *url,
                           const char *type)

Since:

BlackBerry 10.3.0

Arguments:

ctxt

A context handle.

udata

User data to be returned with the result.

url

The URL of the new input.

type

The type of the input.

Library:

libmmrndclient (For the qcc command, use the -l mrndclient option to link against this library)

Description:

Send a request to attach an input file, device, or playlist. If the context already has an input, it is detached first.

Returns:

Zero on success, -1 on failure (check errno).