2023-02-08 18:12:00 +01:00
|
|
|
/* PipeWire */
|
|
|
|
|
/* SPDX-FileCopyrightText: Copyright © 2020 Wim Taymans */
|
|
|
|
|
/* SPDX-License-Identifier: MIT */
|
2021-06-18 22:43:09 +02:00
|
|
|
|
|
|
|
|
#ifndef PULSE_SERVER_UTILS_H
|
|
|
|
|
#define PULSE_SERVER_UTILS_H
|
|
|
|
|
|
|
|
|
|
#include <stddef.h>
|
2021-07-25 02:12:07 +02:00
|
|
|
#include <sys/types.h>
|
2021-06-18 22:43:09 +02:00
|
|
|
|
|
|
|
|
struct client;
|
|
|
|
|
struct pw_context;
|
|
|
|
|
|
2022-06-09 17:06:07 +02:00
|
|
|
int get_runtime_dir(char *buf, size_t buflen);
|
2021-07-25 02:12:07 +02:00
|
|
|
int check_flatpak(struct client *client, pid_t pid);
|
|
|
|
|
pid_t get_client_pid(struct client *client, int client_fd);
|
2021-06-18 22:43:09 +02:00
|
|
|
const char *get_server_name(struct pw_context *context);
|
|
|
|
|
int create_pid_file(void);
|
2024-10-22 09:50:27 +02:00
|
|
|
int notify_startup(void);
|
2021-06-18 22:43:09 +02:00
|
|
|
|
|
|
|
|
#endif /* PULSE_SERVER_UTILS_H */
|