mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-30 06:46:49 -04:00
Including C headers inside of `extern "C"` breaks use from C++. Hoist the includes of standard C headers above the block so we don't try to mangle the stdlib. I initially tried to scope this with a targeted change but it's too hard to do correctly that way. This way, we avoid whack-a-mole. Firefox is working around this in their e21461b7b8b39cc31ba53c47d4f6f310c673ff2f commit. Bug: https://bugzilla.mozilla.org/1953080
36 lines
1,006 B
C
36 lines
1,006 B
C
/* PipeWire */
|
|
/* SPDX-FileCopyrightText: Copyright © 2020 Wim Taymans */
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef PIPEWIRE_PROTOCOL_PULSE_H
|
|
#define PIPEWIRE_PROTOCOL_PULSE_H
|
|
|
|
#include <spa/utils/defs.h>
|
|
#include <spa/utils/hook.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define PW_PROTOCOL_PULSE_DEFAULT_PORT 4713
|
|
#define PW_PROTOCOL_PULSE_DEFAULT_SOCKET "native"
|
|
|
|
#define PW_PROTOCOL_PULSE_DEFAULT_SERVER "unix:"PW_PROTOCOL_PULSE_DEFAULT_SOCKET
|
|
|
|
#define PW_PROTOCOL_PULSE_USAGE "[ server.address=(tcp:[<ip>:]<port>|unix:<path>)[,...] ] " \
|
|
|
|
struct pw_context;
|
|
struct pw_properties;
|
|
struct pw_protocol_pulse;
|
|
struct pw_protocol_pulse_server;
|
|
|
|
struct pw_protocol_pulse *pw_protocol_pulse_new(struct pw_context *context,
|
|
struct pw_properties *props, size_t user_data_size);
|
|
void *pw_protocol_pulse_get_user_data(struct pw_protocol_pulse *pulse);
|
|
void pw_protocol_pulse_destroy(struct pw_protocol_pulse *pulse);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif /* PIPEWIRE_PROTOCOL_PULSE_H */
|