mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
SPDX tags make the licensing information easy to understand and clear, and they are machine parseable. See https://spdx.dev for more information.
30 lines
811 B
C
30 lines
811 B
C
/* PipeWire */
|
|
/* SPDX-FileCopyrightText: Copyright © 2020 Wim Taymans */
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef PULSER_SERVER_OPERATION_H
|
|
#define PULSER_SERVER_OPERATION_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <spa/utils/list.h>
|
|
|
|
struct client;
|
|
|
|
struct operation {
|
|
struct spa_list link;
|
|
struct client *client;
|
|
uint32_t tag;
|
|
void (*callback) (void *data, struct client *client, uint32_t tag);
|
|
void *data;
|
|
};
|
|
|
|
int operation_new(struct client *client, uint32_t tag);
|
|
int operation_new_cb(struct client *client, uint32_t tag,
|
|
void (*callback) (void *data, struct client *client, uint32_t tag),
|
|
void *data);
|
|
struct operation *operation_find(struct client *client, uint32_t tag);
|
|
void operation_free(struct operation *o);
|
|
void operation_complete(struct operation *o);
|
|
|
|
#endif /* PULSER_SERVER_OPERATION_H */
|