pulse-server: make separate index

Separate the id (the pipewire object id) from the index (what we send to
the client to identify the objects).
This commit is contained in:
Wim Taymans 2022-01-17 11:28:40 +01:00
parent 955e4287ab
commit 0904a35ba8
19 changed files with 235 additions and 210 deletions

View file

@ -38,10 +38,10 @@ struct extension_sub {
struct extension {
const char *name;
uint32_t idx;
uint32_t index;
int (*process)(struct client *client, uint32_t tag, struct message *m);
};
const struct extension *extension_find(uint32_t idx, const char *name);
const struct extension *extension_find(uint32_t index, const char *name);
#endif /* PULSE_SERVER_EXTENSION_H */