mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
core: add async create_client_node access check
This commit is contained in:
parent
4cf59e3953
commit
a5b39019d1
3 changed files with 191 additions and 37 deletions
|
|
@ -36,10 +36,12 @@ typedef struct _PinosAccessData PinosAccessData;
|
|||
#include <pinos/server/resource.h>
|
||||
|
||||
struct _PinosAccessData {
|
||||
SpaResult res;
|
||||
void (*complete_cb) (PinosAccessData *data);
|
||||
void (*cancel_cb) (PinosAccessData *data);
|
||||
void *user_data;
|
||||
SpaResult res;
|
||||
PinosResource *resource;
|
||||
void *(*async_copy) (PinosAccessData *data, size_t size);
|
||||
void (*complete_cb) (PinosAccessData *data);
|
||||
void (*free_cb) (PinosAccessData *data);
|
||||
void *user_data;
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -49,9 +51,18 @@ struct _PinosAccessData {
|
|||
* Pinos Access support struct.
|
||||
*/
|
||||
struct _PinosAccess {
|
||||
SpaResult (*check_global) (PinosAccess *access,
|
||||
PinosClient *client,
|
||||
PinosGlobal *global);
|
||||
SpaResult (*view_global) (PinosAccess *access,
|
||||
PinosClient *client,
|
||||
PinosGlobal *global);
|
||||
SpaResult (*create_node) (PinosAccess *access,
|
||||
PinosAccessData *data,
|
||||
const char *factory_name,
|
||||
const char *name,
|
||||
PinosProperties *properties);
|
||||
SpaResult (*create_client_node) (PinosAccess *access,
|
||||
PinosAccessData *data,
|
||||
const char *name,
|
||||
PinosProperties *properties);
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue