X-Git-Url: https://develop.uap-core.de/gitweb/uwplayer.git/blobdiff_plain/cb369bf7e3802b795a02017f3123869af2634626..1e4681c09375d0a2aece4ebdcd4a3d5badee5fc6:/application/playlist.h diff --git a/application/playlist.h b/application/playlist.h new file mode 100644 index 0000000..abb4e62 --- /dev/null +++ b/application/playlist.h @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Olaf Wintermann + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +#ifndef PLAYLIST_H +#define PLAYLIST_H + +#include "window.h" + +#ifdef __cplusplus +extern "C" { +#endif + +void PlayListInit(MainWindow *win); + +void PlayListAddFile(MainWindow *win, const char *file); + +void PlayListPlayNext(MainWindow *win, bool force); + +#ifdef __cplusplus +} +#endif + +#endif /* PLAYLIST_H */ +