summaryrefslogtreecommitdiff
path: root/profiles/audio/player.h
diff options
context:
space:
mode:
authorBharat Panda <bharat.panda@samsung.com>2015-11-10 12:37:36 +0530
committerBharat Panda <bharat.panda@samsung.com>2015-11-10 12:39:18 +0530
commit7998533b3030b8f7b5c1abec646cab8a04970959 (patch)
treecd7c6aa8bc32cbc7f866e148ab08e3dc2eefc279 /profiles/audio/player.h
parentf37981ababd10cee13868a91abf2a585639e664d (diff)
downloadbluez-7998533b3030b8f7b5c1abec646cab8a04970959.tar.gz
bluez-7998533b3030b8f7b5c1abec646cab8a04970959.tar.bz2
bluez-7998533b3030b8f7b5c1abec646cab8a04970959.zip
audio/avrcp: Add support for GetTotalNumberOfItems
Added support for AVRCP GetTotalNumberOfItems command to get total num of items in a folder(with a given scope) prior calling GetFolderItems to retrieve the content of the folder. On response, emit PropertyChanged for "NumberOfItems" property on MediaPlayer1 interface. git repo link: http://git.kernel.org/cgit/bluetooth/bluez.git/commit/?id=f17d3a2c3b0d4a8869ff297f53d55d1cdd524421 Change-Id: I8b3274c376e0a009d4910412dce1b17e0f5b0ac6
Diffstat (limited to 'profiles/audio/player.h')
-rw-r--r--profiles/audio/player.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/profiles/audio/player.h b/profiles/audio/player.h
index ac2a3daf..082db868 100644
--- a/profiles/audio/player.h
+++ b/profiles/audio/player.h
@@ -64,6 +64,8 @@ struct media_player_callback {
uint64_t uid, void *user_data);
int (*add_to_nowplaying) (struct media_player *mp, const char *name,
uint64_t uid, void *user_data);
+ int (*total_items) (struct media_player *mp, const char *name,
+ void *user_data);
};
struct media_player *media_player_controller_create(const char *path,
@@ -104,6 +106,8 @@ void media_player_list_complete(struct media_player *mp, GSList *items,
void media_player_change_folder_complete(struct media_player *player,
const char *path, int ret);
void media_player_search_complete(struct media_player *mp, int ret);
+void media_player_total_items_complete(struct media_player *mp,
+ uint32_t num_of_items);
void media_player_set_callbacks(struct media_player *mp,
const struct media_player_callback *cbs,