PipeWire 0.2.5

Data Structures | Functions
factory.c File Reference
Include dependency graph for factory.c:

## Data Structures
struct | resource_data

## Functions
struct pw_factory * | pw_factory_new (struct pw_core *core, const char *name, uint32_t type, uint32_t version, struct pw_properties *properties, size_t user_data_size)
void | pw_factory_destroy (struct pw_factory *factory)
int | pw_factory_register (struct pw_factory *factory, struct pw_client *owner, struct pw_global *parent, struct pw_properties *properties)
void * | pw_factory_get_user_data (struct pw_factory *factory)
struct pw_global * | pw_factory_get_global (struct pw_factory *factory)
| Get the global of this factory. More...
void | pw_factory_add_listener (struct pw_factory *factory, struct spa_hook *listener, const struct pw_factory_events *events, void *data)
| Add an event listener. More...
void | pw_factory_set_implementation (struct pw_factory *factory, const struct pw_factory_implementation *implementation, void *data)
void * | pw_factory_create_object (struct pw_factory *factory, struct pw_resource *resource, uint32_t type, uint32_t version, struct pw_properties *properties, uint32_t new_id)

## Function Documentation

## ◆ pw_factory_add_listener()

void pw_factory_add_listener | ( | struct pw_factory * | factory,
|  | struct spa_hook * | listener,
|  | const struct pw_factory_events * | events,
|  | void * | data
| ) |  |

Add an event listener.

## ◆ pw_factory_create_object()

void* pw_factory_create_object | ( | struct pw_factory * | factory,
|  | struct pw_resource * | resource,
|  | uint32_t | type,
|  | uint32_t | version,
|  | struct pw_properties * | properties,
|  | uint32_t | new_id
| ) |  |

## ◆ pw_factory_destroy()

void pw_factory_destroy | ( | struct pw_factory * | factory | ) |

References pw_global::pw_global_destroy(), pw_log::pw_log_debug(), and pw_properties::pw_properties_free().

## ◆ pw_factory_get_global()

struct pw_global* pw_factory_get_global | ( | struct pw_factory * | factory | ) |

Get the global of this factory.

## ◆ pw_factory_get_user_data()

void* pw_factory_get_user_data | ( | struct pw_factory * | factory | ) |

## ◆ pw_factory_new()

struct pw_factory* pw_factory_new | ( | struct pw_core * | core,
|  | const char * | name,
|  | uint32_t | type,
|  | uint32_t | version,
|  | struct pw_properties * | properties,
|  | size_t | user_data_size
| ) |  |

References pw_properties::dict, and pw_log::pw_log_debug().

## ◆ pw_factory_register()

int pw_factory_register | ( | struct pw_factory * | factory,
|  | struct pw_client * | owner,
|  | struct pw_global * | parent,
|  | struct pw_properties * | properties
| ) |  |

References pw_global_add_listener(), pw_global::pw_global_new(), pw_properties::pw_properties_new(), pw_properties::pw_properties_set(), pw_properties::pw_properties_setf(), and PW_VERSION_FACTORY.

## ◆ pw_factory_set_implementation()

void pw_factory_set_implementation | ( | struct pw_factory * | factory,
|  | const struct pw_factory_implementation * | implementation,
|  | void * | data
| ) |  |