mmplaylist_plps_list()

List available playlist plugins

Synopsis:

#include <mm/mmplaylist.h>
ssize_t mmplaylist_plps_list( char *buffer, size_t buf_len )

Arguments:

buffer
A pointer to memory for storing a comma-separated list of playlist plugin (PLP) names. When NULL, the function writes no data but returns the buffer size required for holding the PLP names.
buf_len
Length of buffer (can be 0).

Library:

libmmplaylist

Description:

This diagnostic function returns a list of all PLPs that were successfully loaded and initialized.

You must allocate the memory for the buffer that will hold the plugin names. If you need to know how much memory to allocate, call this function with buffer set to NULL. The function then returns the number of bytes needed to store the names. You can then allocate this much memory in a buffer and call mmplaylist_plps_list() a second time, passing in a pointer to the new buffer to make the library populate it with the list of PLP names.

Returns:

>=0
The buffer length needed to list all available plugins.
-1
An error occurred (call mmplaylist_last_error_get() for details).