PipeWire  0.3.27
impl-factory.c File Reference

Macros

#define NAME   "factory"
 
#define pw_factory_resource_info(r, ...)   pw_resource_call(r,struct pw_factory_events,info,0,__VA_ARGS__)
 

Functions

SPA_EXPORT struct pw_impl_factorypw_context_create_factory (struct pw_context *context, const char *name, const char *type, uint32_t version, struct pw_properties *properties, size_t user_data_size)
 
SPA_EXPORT void pw_impl_factory_destroy (struct pw_impl_factory *factory)
 
SPA_EXPORT const struct pw_propertiespw_impl_factory_get_properties (struct pw_impl_factory *factory)
 Get the factory properties. More...
 
SPA_EXPORT int pw_impl_factory_update_properties (struct pw_impl_factory *factory, const struct spa_dict *dict)
 Update the factory properties. More...
 
SPA_EXPORT int pw_impl_factory_register (struct pw_impl_factory *factory, struct pw_properties *properties)
 
SPA_EXPORT void * pw_impl_factory_get_user_data (struct pw_impl_factory *factory)
 
SPA_EXPORT const struct pw_factory_infopw_impl_factory_get_info (struct pw_impl_factory *factory)
 Get the factory info. More...
 
SPA_EXPORT struct pw_globalpw_impl_factory_get_global (struct pw_impl_factory *factory)
 Get the global of this factory. More...
 
SPA_EXPORT void pw_impl_factory_add_listener (struct pw_impl_factory *factory, struct spa_hook *listener, const struct pw_impl_factory_events *events, void *data)
 Add an event listener. More...
 
SPA_EXPORT void pw_impl_factory_set_implementation (struct pw_impl_factory *factory, const struct pw_impl_factory_implementation *implementation, void *data)
 
SPA_EXPORT void * pw_impl_factory_create_object (struct pw_impl_factory *factory, struct pw_resource *resource, const char *type, uint32_t version, struct pw_properties *properties, uint32_t new_id)
 

Macro Definition Documentation

◆ NAME

#define NAME   "factory"

◆ pw_factory_resource_info

#define pw_factory_resource_info (   r,
  ... 
)    pw_resource_call(r,struct pw_factory_events,info,0,__VA_ARGS__)

Function Documentation

◆ pw_context_create_factory()

SPA_EXPORT struct pw_impl_factory* pw_context_create_factory ( struct pw_context context,
const char *  name,
const char *  type,
uint32_t  version,
struct pw_properties properties,
size_t  user_data_size 
)

◆ pw_impl_factory_add_listener()

SPA_EXPORT void pw_impl_factory_add_listener ( struct pw_impl_factory factory,
struct spa_hook *  listener,
const struct pw_impl_factory_events events,
void *  data 
)

Add an event listener.

◆ pw_impl_factory_create_object()

SPA_EXPORT void* pw_impl_factory_create_object ( struct pw_impl_factory factory,
struct pw_resource resource,
const char *  type,
uint32_t  version,
struct pw_properties properties,
uint32_t  new_id 
)

References res.

◆ pw_impl_factory_destroy()

SPA_EXPORT void pw_impl_factory_destroy ( struct pw_impl_factory factory)

◆ pw_impl_factory_get_global()

SPA_EXPORT struct pw_global* pw_impl_factory_get_global ( struct pw_impl_factory factory)

Get the global of this factory.

◆ pw_impl_factory_get_info()

SPA_EXPORT const struct pw_factory_info* pw_impl_factory_get_info ( struct pw_impl_factory factory)

Get the factory info.

◆ pw_impl_factory_get_properties()

SPA_EXPORT const struct pw_properties* pw_impl_factory_get_properties ( struct pw_impl_factory factory)

Get the factory properties.

◆ pw_impl_factory_get_user_data()

SPA_EXPORT void* pw_impl_factory_get_user_data ( struct pw_impl_factory factory)

◆ pw_impl_factory_register()

◆ pw_impl_factory_set_implementation()

SPA_EXPORT void pw_impl_factory_set_implementation ( struct pw_impl_factory factory,
const struct pw_impl_factory_implementation implementation,
void *  data 
)

◆ pw_impl_factory_update_properties()

SPA_EXPORT int pw_impl_factory_update_properties ( struct pw_impl_factory factory,
const struct spa_dict dict 
)