playlist: playlist_NodeDelete: privatize forceful delete
commit7aa4bec7411fab553f366c756ad3f4c794621a91
authorFilip Roséen <filip@atch.se>
Sun, 21 May 2017 18:48:15 +0000 (21 20:48 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 21 May 2017 19:20:14 +0000 (21 22:20 +0300)
tree19169bef2425c90aa6a4d76e25af439f631811f3
parent8268c55ac7523507cdacbbe1b175b2afdff2f6d6
playlist: playlist_NodeDelete: privatize forceful delete

Only the core should have permission to do forceful deletion of
entities.

This patch removes a mostly static, from outside of the core, argument
to playlist_NodeDelete, while also making it safer to use as it was
previously possible for anything with access to the function to delete
read-only entities.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
12 files changed:
include/vlc_playlist.h
modules/control/dbus/dbus_tracklist.c
modules/gui/macosx/VLCPLModel.m
modules/gui/ncurses.c
modules/gui/qt/components/playlist/playlist_model.cpp
modules/gui/skins2/vars/playtree.cpp
modules/lua/libs/playlist.c
src/playlist/engine.c
src/playlist/item.c
src/playlist/playlist_internal.h
src/playlist/services_discovery.c
src/playlist/tree.c