musicus mpd client 0.1d
mpd_action.h
Go to the documentation of this file.
00001 
00010 /**********************************************************************
00011  * Copyright 2006 - 2008 by Simon Gerber <simugerber@student.ethz.ch>
00012  *
00013  * This file is part of Musicus.
00014  * Musicus is free software: you can redistribute it and/or modify
00015  * it under the terms of the GNU General Public License as published by
00016  * the Free Software Foundation, either version 3 of the License, or
00017  * (at your option) any later version.
00018  *
00019  * Musicus is distributed in the hope that it will be useful,
00020  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00022  * GNU General Public License for more details.
00023  *
00024  * You should have received a copy of the GNU General Public License
00025  * along with Musicus.  If not, see <http://www.gnu.org/licenses/>.
00026  **********************************************************************/
00027 
00028 #ifndef __MPD_ACTION_H
00029 #define __MPD_ACTION_H
00030 
00037 
00038 #include "definitions_gtk.h"
00039 
00044 enum  MpdActionType_ {
00046         ACTION_UNDEF,
00048         ACTION_PLAY_PAUSE,
00050         ACTION_STOP,
00052         ACTION_NEXT,
00054         ACTION_PREVIOUS,
00056         ACTION_PLAYLIST,
00058         ACTION_UPDATE_DB,
00060         ACTION_MEDIA_BROWSER,
00062         ACTION_RANDOM,
00064         ACTION_REPEAT,
00066         ACTION_XFADE,
00068         NUM_ACTIONS
00069 };
00070 
00078 typedef enum MpdActionType_ MpdActionType;
00079 
00080 
00084 #define GPOINTER_TO_ACTION_TYPE(data) ((MpdActionType)data)
00085 
00088 #define ACTION_TYPE_TO_GPOINTER(data) ((gpointer)data)
00089 
00093 typedef gboolean (*ActionFunc)(void);
00094 
00100 void action(GtkWidget *widget, gpointer data);
00101 
00104 #endif // __MPD_ACTION_H
00105 
00106 /* vim:sts=4:shiftwidth=4
00107  */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines