mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-07 04:06:12 -05:00
Add extension support to modules. This is a list of extension commands that can be performed on the module. Remove the custom registry of extensions and make proper modules that implement the extensions. This is more in line with what pulseaudio does. The advantage is that the modules actually show up in the module list and that we can use the module user_data to implement the extension later.
23 lines
565 B
C
23 lines
565 B
C
/* PipeWire */
|
|
/* SPDX-FileCopyrightText: Copyright © 2020 Wim Taymans */
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef PULSE_SERVER_EXTENSION_H
|
|
#define PULSE_SERVER_EXTENSION_H
|
|
|
|
#include <stdint.h>
|
|
|
|
struct client;
|
|
struct message;
|
|
struct module;
|
|
|
|
struct extension {
|
|
const char *name;
|
|
uint32_t command;
|
|
int (*process)(struct module *module, struct client *client, uint32_t command,
|
|
uint32_t tag, struct message *m);
|
|
};
|
|
|
|
int extension_process(struct module *module, struct client *client, uint32_t tag, struct message *m);
|
|
|
|
#endif /* PULSE_SERVER_EXTENSION_H */
|