mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
Rename to Support
This commit is contained in:
parent
6e6b5588f4
commit
a68e5d5124
14 changed files with 41 additions and 40 deletions
|
|
@ -31,6 +31,7 @@ typedef struct _SpaLog SpaLog;
|
|||
#include <spa/defs.h>
|
||||
#include <spa/plugin.h>
|
||||
|
||||
#define SPA_SUPPORT_ID_LOG 3
|
||||
#define SPA_INTERFACE_ID_LOG 3
|
||||
#define SPA_INTERFACE_ID_LOG_NAME "Log interface"
|
||||
#define SPA_INTERFACE_ID_LOG_DESCRIPTION "Log interface"
|
||||
|
|
|
|||
|
|
@ -79,17 +79,17 @@ typedef struct {
|
|||
} SpaInterfaceInfo;
|
||||
|
||||
/**
|
||||
* SpaInterface:
|
||||
* @interface_id: the id of the interface
|
||||
* @interface: an interface instance
|
||||
* SpaSupport:
|
||||
* @support_id: the id of the support item
|
||||
* @data: specific data for the item
|
||||
*
|
||||
* An interface instance that is usually passed to the init() function of
|
||||
* a factory to provide extra API such as logging.
|
||||
* Extra supporting infrastructure passed to the init() function of
|
||||
* a factory. It can be extra information or interfaces such as logging.
|
||||
*/
|
||||
typedef struct {
|
||||
uint32_t interface_id;
|
||||
void *interface;
|
||||
} SpaInterface;
|
||||
uint32_t support_id;
|
||||
void *data;
|
||||
} SpaSupport;
|
||||
|
||||
struct _SpaHandleFactory {
|
||||
/**
|
||||
|
|
@ -117,14 +117,14 @@ struct _SpaHandleFactory {
|
|||
* @handle: a pointer to memory
|
||||
* @info: extra handle specific information, usually obtained
|
||||
* from a #SpaMonitor. This can be used to configure the handle.
|
||||
* @platform: platform interfaces
|
||||
* @n_platform: number of elements in @platform
|
||||
* @support: support items
|
||||
* @n_support: number of elements in @support
|
||||
*
|
||||
* Initialize an instance of this factory. The caller should allocate
|
||||
* memory at least SpaHandleFactory::size bytes and pass this as @handle.
|
||||
*
|
||||
* @platform can optionally contain extra interfaces that the plugin can
|
||||
* use such as a logger.
|
||||
* @support can optionally contain extra interfaces or data ites that the
|
||||
* plugin can use such as a logger.
|
||||
*
|
||||
* Returns: #SPA_RESULT_OK on success
|
||||
* #SPA_RESULT_NOT_IMPLEMENTED when an instance can't be made
|
||||
|
|
@ -133,8 +133,8 @@ struct _SpaHandleFactory {
|
|||
SpaResult (*init) (const SpaHandleFactory *factory,
|
||||
SpaHandle *handle,
|
||||
const SpaDict *info,
|
||||
const SpaInterface **platform,
|
||||
unsigned int n_platform);
|
||||
const SpaSupport **support,
|
||||
unsigned int n_support);
|
||||
|
||||
/**
|
||||
* SpaHandle::enum_interface_info:
|
||||
|
|
|
|||
|
|
@ -380,8 +380,8 @@ static SpaResult
|
|||
alsa_monitor_init (const SpaHandleFactory *factory,
|
||||
SpaHandle *handle,
|
||||
const SpaDict *info,
|
||||
const SpaInterface **platform,
|
||||
unsigned int n_platform)
|
||||
const SpaSupport **support,
|
||||
unsigned int n_support)
|
||||
{
|
||||
SpaALSAMonitor *this;
|
||||
|
||||
|
|
|
|||
|
|
@ -599,8 +599,8 @@ static SpaResult
|
|||
alsa_sink_init (const SpaHandleFactory *factory,
|
||||
SpaHandle *handle,
|
||||
const SpaDict *info,
|
||||
const SpaInterface **platform,
|
||||
unsigned int n_platform)
|
||||
const SpaSupport **support,
|
||||
unsigned int n_support)
|
||||
{
|
||||
SpaALSASink *this;
|
||||
|
||||
|
|
|
|||
|
|
@ -752,8 +752,8 @@ static SpaResult
|
|||
alsa_source_init (const SpaHandleFactory *factory,
|
||||
SpaHandle *handle,
|
||||
const SpaDict *info,
|
||||
const SpaInterface **platform,
|
||||
unsigned int n_platform)
|
||||
const SpaSupport **support,
|
||||
unsigned int n_support)
|
||||
{
|
||||
SpaALSASource *this;
|
||||
unsigned int i;
|
||||
|
|
|
|||
|
|
@ -780,8 +780,8 @@ static SpaResult
|
|||
spa_audiomixer_init (const SpaHandleFactory *factory,
|
||||
SpaHandle *handle,
|
||||
const SpaDict *info,
|
||||
const SpaInterface **platform,
|
||||
unsigned int n_platform)
|
||||
const SpaSupport **support,
|
||||
unsigned int n_support)
|
||||
{
|
||||
SpaAudioMixer *this;
|
||||
|
||||
|
|
|
|||
|
|
@ -989,8 +989,8 @@ static SpaResult
|
|||
audiotestsrc_init (const SpaHandleFactory *factory,
|
||||
SpaHandle *handle,
|
||||
const SpaDict *info,
|
||||
const SpaInterface **platform,
|
||||
unsigned int n_platform)
|
||||
const SpaSupport **support,
|
||||
unsigned int n_support)
|
||||
{
|
||||
SpaAudioTestSrc *this;
|
||||
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@ static SpaResult
|
|||
ffmpeg_dec_init (const SpaHandleFactory *factory,
|
||||
SpaHandle *handle,
|
||||
const SpaDict *info,
|
||||
const SpaInterface **platform,
|
||||
unsigned int n_platform)
|
||||
const SpaSupport **support,
|
||||
unsigned int n_support)
|
||||
{
|
||||
if (factory == NULL || handle == NULL)
|
||||
return SPA_RESULT_INVALID_ARGUMENTS;
|
||||
|
|
@ -45,8 +45,8 @@ static SpaResult
|
|||
ffmpeg_enc_init (const SpaHandleFactory *factory,
|
||||
SpaHandle *handle,
|
||||
const SpaDict *info,
|
||||
const SpaInterface **platform,
|
||||
unsigned int n_platform)
|
||||
const SpaSupport **support,
|
||||
unsigned int n_support)
|
||||
{
|
||||
if (factory == NULL || handle == NULL)
|
||||
return SPA_RESULT_INVALID_ARGUMENTS;
|
||||
|
|
|
|||
|
|
@ -1348,8 +1348,8 @@ static SpaResult
|
|||
proxy_init (const SpaHandleFactory *factory,
|
||||
SpaHandle *handle,
|
||||
const SpaDict *info,
|
||||
const SpaInterface **platform,
|
||||
unsigned int n_platform)
|
||||
const SpaSupport **support,
|
||||
unsigned int n_support)
|
||||
{
|
||||
SpaProxy *this;
|
||||
|
||||
|
|
|
|||
|
|
@ -351,8 +351,8 @@ static SpaResult
|
|||
v4l2_monitor_init (const SpaHandleFactory *factory,
|
||||
SpaHandle *handle,
|
||||
const SpaDict *info,
|
||||
const SpaInterface **platform,
|
||||
unsigned int n_platform)
|
||||
const SpaSupport **support,
|
||||
unsigned int n_support)
|
||||
{
|
||||
SpaV4l2Monitor *this;
|
||||
|
||||
|
|
|
|||
|
|
@ -831,8 +831,8 @@ static SpaResult
|
|||
v4l2_source_init (const SpaHandleFactory *factory,
|
||||
SpaHandle *handle,
|
||||
const SpaDict *info,
|
||||
const SpaInterface **platform,
|
||||
unsigned int n_platform)
|
||||
const SpaSupport **support,
|
||||
unsigned int n_support)
|
||||
{
|
||||
SpaV4l2Source *this;
|
||||
unsigned int i;
|
||||
|
|
|
|||
|
|
@ -937,8 +937,8 @@ static SpaResult
|
|||
videotestsrc_init (const SpaHandleFactory *factory,
|
||||
SpaHandle *handle,
|
||||
const SpaDict *info,
|
||||
const SpaInterface **platform,
|
||||
unsigned int n_platform)
|
||||
const SpaSupport **support,
|
||||
unsigned int n_support)
|
||||
{
|
||||
SpaVideoTestSrc *this;
|
||||
|
||||
|
|
|
|||
|
|
@ -677,8 +677,8 @@ static SpaResult
|
|||
volume_init (const SpaHandleFactory *factory,
|
||||
SpaHandle *handle,
|
||||
const SpaDict *info,
|
||||
const SpaInterface **platform,
|
||||
unsigned int n_platform)
|
||||
const SpaSupport **support,
|
||||
unsigned int n_support)
|
||||
{
|
||||
SpaVolume *this;
|
||||
|
||||
|
|
|
|||
|
|
@ -558,8 +558,8 @@ static SpaResult
|
|||
xv_sink_init (const SpaHandleFactory *factory,
|
||||
SpaHandle *handle,
|
||||
const SpaDict *info,
|
||||
const SpaInterface **platform,
|
||||
unsigned int n_platform)
|
||||
const SpaSupport **support,
|
||||
unsigned int n_support)
|
||||
{
|
||||
SpaXvSink *this;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue