The playlist_incoming_item_filter service is implemented by the core. When you want to create a playlist with a given list of tracks, you can use the auto_playlist_name() method to let the core suggest a name for the playlist based on the contents of that playlist. The code to use it would be like this:
CODE
metadb_handle_list items = ...;
pfc::string8 name;
static_api_ptr_t<playlist_incoming_item_filter_v3> piif;
if (!piif->auto_playlist_name(items, name)) {
// Use default name
name = "New playlist";
}
// TODO: Create playlist.