musicus mpd client 0.1d
|
Defines | |
#define | GPOINTER_TO_ACTION_TYPE(data) ((MpdActionType)data) |
#define | ACTION_TYPE_TO_GPOINTER(data) ((gpointer)data) |
Typedefs | |
typedef enum MpdActionType_ | MpdActionType |
typedef gboolean(* | ActionFunc )(void) |
Enumerations | |
enum | MpdActionType_ { ACTION_UNDEF, ACTION_PLAY_PAUSE, ACTION_STOP, ACTION_NEXT, ACTION_PREVIOUS, ACTION_PLAYLIST, ACTION_UPDATE_DB, ACTION_MEDIA_BROWSER, ACTION_RANDOM, ACTION_REPEAT, ACTION_XFADE, NUM_ACTIONS } |
Functions | |
void | action (GtkWidget *widget, gpointer data) |
This module contains an universal callback function which provides an interface to the various active mpd commands such as play/pause
#define ACTION_TYPE_TO_GPOINTER | ( | data | ) | ((gpointer)data) |
convert an ActionType to a gpointer
#define GPOINTER_TO_ACTION_TYPE | ( | data | ) | ((MpdActionType)data) |
convert a gpointer to a MpdActionType
typedef gboolean(* ActionFunc)(void) |
Action function prototype
typedef enum MpdActionType_ MpdActionType |
MpdActionType is used to communicate the desired action to the action callback.
Use the macros GPOINTER_TO_ACTION_TYPE and ACTION_TYPE_TO_GPOINTER for conversion between gpointers to ActionTypes.
enum MpdActionType_ |
enum MpdActionType_
void action | ( | GtkWidget * | widget, |
gpointer | data | ||
) |
The callback function
widget | The widget from which this function was called |
data | supply a MpdActionType (use the conversion macros) |