mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 14:13:18 -05:00
[player] Rename struct spk_info to player_speaker_info
This commit is contained in:
parent
f91df003fe
commit
116c315a84
@ -512,7 +512,7 @@ playqueuecontents_add_queue_item(struct evbuffer *songlist, struct db_queue_item
|
||||
}
|
||||
|
||||
static void
|
||||
speaker_enum_cb(struct spk_info *spk, void *arg)
|
||||
speaker_enum_cb(struct player_speaker_info *spk, void *arg)
|
||||
{
|
||||
struct evbuffer *evbuf;
|
||||
int len;
|
||||
|
@ -1071,7 +1071,7 @@ struct outputs_param
|
||||
};
|
||||
|
||||
static json_object *
|
||||
speaker_to_json(struct spk_info *spk)
|
||||
speaker_to_json(struct player_speaker_info *spk)
|
||||
{
|
||||
json_object *output;
|
||||
char output_id[21];
|
||||
@ -1092,7 +1092,7 @@ speaker_to_json(struct spk_info *spk)
|
||||
}
|
||||
|
||||
static void
|
||||
speaker_enum_cb(struct spk_info *spk, void *arg)
|
||||
speaker_enum_cb(struct player_speaker_info *spk, void *arg)
|
||||
{
|
||||
json_object *outputs;
|
||||
json_object *output;
|
||||
@ -1109,7 +1109,7 @@ speaker_enum_cb(struct spk_info *spk, void *arg)
|
||||
static int
|
||||
jsonapi_reply_outputs_get_byid(struct httpd_request *hreq)
|
||||
{
|
||||
struct spk_info speaker_info;
|
||||
struct player_speaker_info speaker_info;
|
||||
uint64_t output_id;
|
||||
json_object *jreply;
|
||||
int ret;
|
||||
@ -2220,7 +2220,7 @@ static int
|
||||
output_volume_set(int volume, int step, uint64_t output_id)
|
||||
{
|
||||
int new_volume;
|
||||
struct spk_info speaker_info;
|
||||
struct player_speaker_info speaker_info;
|
||||
int ret;
|
||||
|
||||
new_volume = volume;
|
||||
|
@ -3548,7 +3548,7 @@ mpd_command_password(struct evbuffer *evbuf, int argc, char **argv, char **errms
|
||||
* the shortid of output_get_param matches the given speaker/output spk.
|
||||
*/
|
||||
static void
|
||||
output_get_cb(struct spk_info *spk, void *arg)
|
||||
output_get_cb(struct player_speaker_info *spk, void *arg)
|
||||
{
|
||||
struct output_get_param *param = arg;
|
||||
|
||||
@ -3696,7 +3696,7 @@ mpd_command_toggleoutput(struct evbuffer *evbuf, int argc, char **argv, char **e
|
||||
* outputvolume: 50
|
||||
*/
|
||||
static void
|
||||
speaker_enum_cb(struct spk_info *spk, void *arg)
|
||||
speaker_enum_cb(struct player_speaker_info *spk, void *arg)
|
||||
{
|
||||
struct evbuffer *evbuf;
|
||||
|
||||
|
10
src/player.c
10
src/player.c
@ -149,7 +149,7 @@ struct speaker_set_param
|
||||
struct speaker_get_param
|
||||
{
|
||||
uint64_t spk_id;
|
||||
struct spk_info *spk_info;
|
||||
struct player_speaker_info *spk_info;
|
||||
};
|
||||
|
||||
struct metadata_param
|
||||
@ -2414,9 +2414,9 @@ player_speaker_status_trigger(void)
|
||||
}
|
||||
|
||||
static void
|
||||
device_to_speaker_info(struct spk_info *spk, struct output_device *device)
|
||||
device_to_speaker_info(struct player_speaker_info *spk, struct output_device *device)
|
||||
{
|
||||
memset(spk, 0, sizeof(struct spk_info));
|
||||
memset(spk, 0, sizeof(struct player_speaker_info));
|
||||
spk->id = device->id;
|
||||
strncpy(spk->name, device->name, sizeof(spk->name));
|
||||
spk->name[sizeof(spk->name) - 1] = '\0';
|
||||
@ -2437,7 +2437,7 @@ speaker_enumerate(void *arg, int *retval)
|
||||
{
|
||||
struct spk_enum *spk_enum = arg;
|
||||
struct output_device *device;
|
||||
struct spk_info spk;
|
||||
struct player_speaker_info spk;
|
||||
|
||||
for (device = dev_list; device; device = device->next)
|
||||
{
|
||||
@ -3160,7 +3160,7 @@ player_speaker_set(uint64_t *ids)
|
||||
}
|
||||
|
||||
int
|
||||
player_speaker_get_byid(uint64_t id, struct spk_info *spk)
|
||||
player_speaker_get_byid(uint64_t id, struct player_speaker_info *spk)
|
||||
{
|
||||
struct speaker_get_param param;
|
||||
int ret;
|
||||
|
@ -29,7 +29,7 @@ enum repeat_mode {
|
||||
REPEAT_ALL = 2,
|
||||
};
|
||||
|
||||
struct spk_info {
|
||||
struct player_speaker_info {
|
||||
uint64_t id;
|
||||
char name[255];
|
||||
char output_type[50];
|
||||
@ -64,7 +64,7 @@ struct player_status {
|
||||
uint32_t len_ms;
|
||||
};
|
||||
|
||||
typedef void (*spk_enum_cb)(struct spk_info *spk, void *arg);
|
||||
typedef void (*spk_enum_cb)(struct player_speaker_info *spk, void *arg);
|
||||
|
||||
struct player_history
|
||||
{
|
||||
@ -96,7 +96,7 @@ int
|
||||
player_speaker_set(uint64_t *ids);
|
||||
|
||||
int
|
||||
player_speaker_get_byid(uint64_t id, struct spk_info *spk);
|
||||
player_speaker_get_byid(uint64_t id, struct player_speaker_info *spk);
|
||||
|
||||
int
|
||||
player_speaker_enable(uint64_t id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user