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 plugin names. When NULL, the function writes no data but returns the buffer size required for holding the names.
buf_len
Length of buffer (can be 0).

Library:

libmmplaylist

Description:

This diagnostic function returns a list of all playlist plugins (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 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 PLPs.

Returns:

>=0 The buffer length needed to list all available plugins. If this value is greater than buf_len, the plugins list was truncated.

-1 An error occurred (call mmplaylist_last_error_get() for details).