![]() |
![]() |
![]() |
libdmapsharing-3.0 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Properties |
#define DACP_TYPE_PLAYER #define DACP_PLAYER (o) #define IS_DACP_PLAYER (o) #define DACP_PLAYER_GET_INTERFACE (o) DACPPlayerIface; DACPPlayer; enum DACPRepeatState; enum DACPPlayState; GType dacp_player_get_type (void
); DAAPRecord * dacp_player_now_playing_record (DACPPlayer *player
); const guchar * dacp_player_now_playing_artwork (DACPPlayer *player
,guint width
,guint height
); void dacp_player_play_pause (DACPPlayer *player
); void dacp_player_pause (DACPPlayer *player
); void dacp_player_next_item (DACPPlayer *player
); void dacp_player_prev_item (DACPPlayer *player
); void dacp_player_cue_clear (DACPPlayer *player
); void dacp_player_cue_play (DACPPlayer *player
,GList *records
,guint index
);
"play-state" DACPPlayState : Read / Write "playing-time" gulong : Read / Write "repeat-state" DACPRepeatState : Read / Write "shuffle-state" gboolean : Read / Write "volume" gulong : Read / Write
#define DACP_PLAYER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DACP_TYPE_PLAYER, DACPPlayer))
Casts a DACPPlayer or derived pointer into a (DACPPlayer *) pointer. Depending on the current debugging level, this function may invoke certain runtime checks to identify invalid casts.
|
Object which is subject to casting. |
#define IS_DACP_PLAYER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DACP_TYPE_PLAYER))
Checks whether a valid GTypeInstance pointer is of type DACP_TYPE_PLAYER
.
|
Instance to check for being a DACP_TYPE_PLAYER .
|
#define DACP_PLAYER_GET_INTERFACE(o)
Get the insterface structure associated to a DACPPlayer instance.
|
a DACPPlayer instance. |
Returns : |
pointer to object interface structure. |
typedef struct { GTypeInterface parent_class; DAAPRecord *(*now_playing_record) (DACPPlayer *player); const guchar *(*now_playing_artwork) (DACPPlayer *player, guint width, guint height); void (*play_pause) (DACPPlayer *player); void (*pause) (DACPPlayer *player); void (*next_item) (DACPPlayer *player); void (*prev_item) (DACPPlayer *player); void (*cue_clear) (DACPPlayer *player); void (*cue_play) (DACPPlayer *player, GList *records, guint index); } DACPPlayerIface;
typedef enum { REPEAT_NONE = 0, REPEAT_SINGLE = 1, REPEAT_ALL = 2 } DACPRepeatState;
typedef enum { PLAY_STOPPED = 2, PLAY_PAUSED = 3, PLAY_PLAYING = 4 } DACPPlayState;
DAAPRecord * dacp_player_now_playing_record (DACPPlayer *player
);
|
a player |
Returns : |
const guchar * dacp_player_now_playing_artwork (DACPPlayer *player
,guint width
,guint height
);
|
a player |
|
width |
|
height |
Returns : |
void dacp_player_cue_play (DACPPlayer *player
,GList *records
,guint index
);
|
a player |
|
a list of records |
|
an index |
"play-state"
property"play-state" DACPPlayState : Read / Write
Play state.
Default value: PLAY_STOPPED
"repeat-state"
property"repeat-state" DACPRepeatState : Read / Write
Repeat state.
Default value: REPEAT_NONE
"shuffle-state"
property"shuffle-state" gboolean : Read / Write
Shufle state.
Default value: FALSE