/usr/include/libdmapsharing-3.0/libdmapsharing/dacp-player.h is in libdmapsharing-3.0-dev 2.9.14-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | /* Copyright (C) Alexandre Rosenfeld 2010 <alexandre.rosenfeld@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _DACP_PLAYER_H_
#define _DACP_PLAYER_H_
#include <glib-object.h>
#include "daap-record.h"
G_BEGIN_DECLS
/**
* DACP_TYPE_PLAYER:
*
* The type for #DACPPlayer.
*/
#define DACP_TYPE_PLAYER (dacp_player_get_type ())
/**
* DACP_PLAYER:
* @o: Object which is subject to casting.
*
* 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.
*/
#define DACP_PLAYER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DACP_TYPE_PLAYER, DACPPlayer))
/**
* IS_DACP_PLAYER:
* @o: Instance to check for being a %DACP_TYPE_PLAYER.
*
* Checks whether a valid #GTypeInstance pointer is of type %DACP_TYPE_PLAYER.
*/
#define IS_DACP_PLAYER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DACP_TYPE_PLAYER))
/**
* DACP_PLAYER_GET_INTERFACE:
* @o: a #DACPPlayer instance.
*
* Get the insterface structure associated to a #DACPPlayer instance.
*
* Returns: pointer to object interface structure.
*/
#define DACP_PLAYER_GET_INTERFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), \
DACP_TYPE_PLAYER, DACPPlayerIface))
typedef struct _DACPPlayerIface DACPPlayerIface;
typedef struct _DACPPlayer DACPPlayer;
typedef enum
{
DACP_REPEAT_NONE = 0,
DACP_REPEAT_SINGLE = 1,
DACP_REPEAT_ALL = 2
} DACPRepeatState;
typedef enum
{
DACP_PLAY_STOPPED = 2,
DACP_PLAY_PAUSED = 3,
DACP_PLAY_PLAYING = 4
} DACPPlayState;
struct _DACPPlayerIface
{
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);
};
GType dacp_player_get_type (void);
/**
* dacp_player_now_playing_record
* @player: a player
*/
DAAPRecord *dacp_player_now_playing_record (DACPPlayer * player);
/**
* dacp_player_now_playing_artwork
* @player: a player
* @width: width
* @height: height
*/
const guchar *dacp_player_now_playing_artwork (DACPPlayer * player,
guint width, guint height);
/**
* dacp_player_play_pause
* @player: a player
*/
void dacp_player_play_pause (DACPPlayer * player);
/**
* dacp_player_pause
* @player: a player
*/
void dacp_player_pause (DACPPlayer * player);
/**
* dacp_player_next_item
* @player: a player
*/
void dacp_player_next_item (DACPPlayer * player);
/**
* dacp_player_now_prev_item
* @player: a player
*/
void dacp_player_prev_item (DACPPlayer * player);
/**
* dacp_player_cue_clear
* @player: a player
*/
void dacp_player_cue_clear (DACPPlayer * player);
/**
* dacp_player_cue_play
* @player: a player
* @records : a list of records
* @index: an index
*/
void dacp_player_cue_play (DACPPlayer * player, GList * records, guint index);
G_END_DECLS
#endif /* _DACP_PLAYER_H_ */
|