X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fplaylist.h;h=fe9e22b8e1d3cfad194c4633a96505589dd75891;hb=48dee11ecb5cc6c4006f8dcc47ca4c7cf57b8b0e;hp=9a9ac580dc457aa29765ed078748e27c71ed907f;hpb=3022037d61a5e41f1e89f53b53708fec33c9bac7;p=melted_gui diff --git a/src/playlist.h b/src/playlist.h index 9a9ac58..fe9e22b 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -1,6 +1,49 @@ +/* + * playlist.h -- GTK+ 2 melted gui + * Copyright (C) 2012 Maksym Veremeyenko + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef PLAYLIST_H +#define PLAYLIST_H + +#include "instance.h" + +#ifdef __cplusplus +extern "C" +{ +#endif /* __cplusplus */ + +/* + find local playlist index by given start search position value and remote playlist item index + used to associate remote item with local + */ +int playlist_item_index(instance_t* app, int start, int idx); + +#if 0 void omnplay_playlist_load(omnplay_instance_t* app); void omnplay_playlist_save(omnplay_instance_t* app); void omnplay_playlist_relink(omnplay_instance_t* app); void omnplay_playlist_draw(omnplay_instance_t* app); void omnplay_playlist_draw_item(omnplay_instance_t* app, int idx); void omnplay_playlist_draw_item_rem(omnplay_instance_t* app, int idx, char* rem); +#endif + +#ifdef __cplusplus +}; +#endif /* __cplusplus */ + +#endif /* PLAYLIST_H */