mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-11 04:27:56 -05: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
52 lines
1.4 KiB
C
52 lines
1.4 KiB
C
/* Simple Plugin API */
|
|
/* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef SPA_PARAM_PROFILE_H
|
|
#define SPA_PARAM_PROFILE_H
|
|
|
|
#include <spa/param/param.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* \addtogroup spa_param
|
|
* \{
|
|
*/
|
|
|
|
/** properties for SPA_TYPE_OBJECT_ParamProfile */
|
|
enum spa_param_profile {
|
|
SPA_PARAM_PROFILE_START,
|
|
SPA_PARAM_PROFILE_index, /**< profile index (Int) */
|
|
SPA_PARAM_PROFILE_name, /**< profile name (String) */
|
|
SPA_PARAM_PROFILE_description, /**< profile description (String) */
|
|
SPA_PARAM_PROFILE_priority, /**< profile priority (Int) */
|
|
SPA_PARAM_PROFILE_available, /**< availability of the profile
|
|
* (Id enum spa_param_availability) */
|
|
SPA_PARAM_PROFILE_info, /**< info (Struct(
|
|
* Int : n_items,
|
|
* (String : key,
|
|
* String : value)*)) */
|
|
SPA_PARAM_PROFILE_classes, /**< node classes provided by this profile
|
|
* (Struct(
|
|
* Int : number of items following
|
|
* Struct(
|
|
* String : class name (eg. "Audio/Source"),
|
|
* Int : number of nodes
|
|
* String : property (eg. "card.profile.devices"),
|
|
* Array of Int: device indexes
|
|
* )*)) */
|
|
SPA_PARAM_PROFILE_save, /**< If profile should be saved (Bool) */
|
|
};
|
|
|
|
/**
|
|
* \}
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif /* SPA_PARAM_PROFILE_H */
|