~cyphermox/+junk/bluez-debug

« back to all changes in this revision

Viewing changes to audio/avrcp.h

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-07-04 13:28:49 UTC
  • mfrom: (1.1.38)
  • Revision ID: package-import@ubuntu.com-20120704132849-tmwu1x7p2vxcclt1
Tags: 4.101-0ubuntu1
* New upstream release
* debian/libbluetooth3.symbols:
  - Updated
* debian/patches/10-unregister_interface_on_exit.patch:
* debian/patches/11-explicitly_close.patch:
* debian/patches/python3.patch:
  - Applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
#define AVRCP_EVENT_TRACK_CHANGED       0x02
74
74
#define AVRCP_EVENT_TRACK_REACHED_END   0x03
75
75
#define AVRCP_EVENT_TRACK_REACHED_START 0x04
76
 
#define AVRCP_EVENT_LAST                AVRCP_EVENT_TRACK_REACHED_START
 
76
#define AVRCP_EVENT_VOLUME_CHANGED      0x0d
 
77
#define AVRCP_EVENT_LAST                AVRCP_EVENT_VOLUME_CHANGED
77
78
 
78
79
struct avrcp_player_cb {
79
80
        int (*get_setting) (uint8_t attr, void *user_data);
83
84
        GList *(*list_metadata) (void *user_data);
84
85
        uint8_t (*get_status) (void *user_data);
85
86
        uint32_t (*get_position) (void *user_data);
 
87
        void (*set_volume) (uint8_t volume, struct audio_device *dev,
 
88
                                                        void *user_data);
86
89
};
87
90
 
88
91
int avrcp_register(DBusConnection *conn, const bdaddr_t *src, GKeyFile *config);
90
93
 
91
94
gboolean avrcp_connect(struct audio_device *dev);
92
95
void avrcp_disconnect(struct audio_device *dev);
 
96
int avrcp_set_volume(struct audio_device *dev, uint8_t volume);
93
97
 
94
98
struct avrcp_player *avrcp_register_player(const bdaddr_t *src,
95
99
                                                struct avrcp_player_cb *cb,
98
102
void avrcp_unregister_player(struct avrcp_player *player);
99
103
 
100
104
int avrcp_player_event(struct avrcp_player *player, uint8_t id, void *data);
 
105
 
 
106
 
 
107
size_t avrcp_handle_vendor_reject(uint8_t *code, uint8_t *operands);