/* starling.h - Starling interface. Copyright 2008 Neal H. Walfield Copyright (C) 2006 Alberto GarcĂ­a Hierro This file is part of GPE. GPE 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 3 of the License, or (at your option) any later version. GPE 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, see . */ #ifndef STARLING_H #define STARLING_H #include #include typedef struct _Starling Starling; /** starling_new: Create a new starling. */ extern Starling *starling_run (void); /* Deiconify and come to the front. */ extern void starling_come_to_front (Starling *st); /* Quit. */ extern void starling_quit (Starling *st); /* Return whether random mode is enabled. */ extern bool starling_random (Starling *st); /* Set whether random mode is enabled to VALUE. */ extern void starling_random_set (Starling *st, bool enabled); /* Start playing the currently selected entry. */ extern gboolean starling_play (Starling *st); /* Select the next track according to the play queue and random mode. */ extern void starling_next (Starling *st); /* Go to the previous track. */ extern void starling_prev (Starling *st); /* Scroll the main view to the currently playing track. */ extern void starling_scroll_to_playing (Starling *st); /* Set the audio sink. */ extern void starling_set_sink (Starling *st, char *sink); #endif