[][src]Function lv2_sys::lv2_dyn_manifest_get_data

pub unsafe extern "C" fn lv2_dyn_manifest_get_data(
    handle: LV2_Dyn_Manifest_Handle,
    fp: *mut FILE,
    uri: *const c_char
) -> c_int

Function that fetches data related to a specific URI.

The dynamic manifest generator has to fill the resource with data related to object represented by the given URI. For example, if the library exposes a regular LV2 plugin whose URI, as retrieved by the host using lv2_dyn_manifest_get_subjects() is http://www.example.com/plugin/uri, it should output something like:


a lv2:Plugin ;
doap:name "My Plugin" ;
lv2:binary  ;
etc:etc "..." .

@param handle Dynamic manifest generator handle.

@param fp FILE * identifying the resource the host has to set up for the dynamic manifest generator. The host MUST pass a writable resource to this function, and the dynamic manifest generator MUST ONLY perform write operations on it at the current position of the stream (e.g. using only fprintf(), fwrite() and similar).

@param uri URI to get data about (in the "plain" form, i.e., absolute URI without Turtle prefixes).

@return 0 on success, otherwise a non-zero error code.