summaryrefslogtreecommitdiffstats
path: root/common/playlist.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-03-27 00:57:11 +0100
committerwm4 <wm4@nowhere>2020-03-27 00:57:11 +0100
commitdf0d8cda08463b291203812ec475ca185bc8e947 (patch)
treebd10780993e10b5fbc089f1b9bb2019a830d4a3f /common/playlist.h
parentd3be6a61634ff6f9ba217320eaa9fb9349a5c144 (diff)
downloadmpv-df0d8cda08463b291203812ec475ca185bc8e947.tar.bz2
mpv-df0d8cda08463b291203812ec475ca185bc8e947.tar.xz
client API: report IDs of inserted playlist entries on loading playlist
May or may not help when dealing with playlist loading in scripts. It's supposed to help with the mean fact that loading a recursive playlist will essentially edit the playlist behind the API user's back.
Diffstat (limited to 'common/playlist.h')
-rw-r--r--common/playlist.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/playlist.h b/common/playlist.h
index f8dfbb2ba2..5f84e3b413 100644
--- a/common/playlist.h
+++ b/common/playlist.h
@@ -103,8 +103,8 @@ struct playlist_entry *playlist_entry_get_rel(struct playlist_entry *e,
void playlist_add_base_path(struct playlist *pl, bstr base_path);
void playlist_add_redirect(struct playlist *pl, const char *redirected_from);
void playlist_set_stream_flags(struct playlist *pl, int flags);
-void playlist_transfer_entries(struct playlist *pl, struct playlist *source_pl);
-void playlist_append_entries(struct playlist *pl, struct playlist *source_pl);
+int64_t playlist_transfer_entries(struct playlist *pl, struct playlist *source_pl);
+int64_t playlist_append_entries(struct playlist *pl, struct playlist *source_pl);
int playlist_entry_to_index(struct playlist *pl, struct playlist_entry *e);
int playlist_entry_count(struct playlist *pl);