25#ifndef PIPEWIRE_IMPL_FACTORY_H
26#define PIPEWIRE_IMPL_FACTORY_H
41struct pw_impl_factory;
51#define PW_VERSION_IMPL_FACTORY_EVENTS 0
63#define PW_VERSION_IMPL_FACTORY_IMPLEMENTATION 0
67 void *(*create_object) (
void *
data,
68 struct pw_resource *resource,
80 size_t user_data_size);
112 struct pw_resource *resource,
119struct pw_impl_factory *
void pw_impl_factory_destroy(struct pw_impl_factory *factory)
Definition: impl-factory.c:83
int pw_impl_factory_update_properties(struct pw_impl_factory *factory, const struct spa_dict *dict)
Update the factory properties.
Definition: impl-factory.c:154
const struct pw_factory_info * pw_impl_factory_get_info(struct pw_impl_factory *factory)
Get the factory info.
Definition: impl-factory.c:233
void pw_impl_factory_set_implementation(struct pw_impl_factory *factory, const struct pw_impl_factory_implementation *implementation, void *data)
Definition: impl-factory.c:254
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)
Definition: impl-factory.c:262
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)
Definition: impl-factory.c:39
int pw_impl_factory_register(struct pw_impl_factory *factory, struct pw_properties *properties)
Definition: impl-factory.c:177
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.
Definition: impl-factory.c:245
struct pw_impl_factory * pw_context_find_factory(struct pw_context *context, const char *name)
Find a factory by name.
Definition: impl-factory.c:288
struct pw_global * pw_impl_factory_get_global(struct pw_impl_factory *factory)
Get the global of this factory.
Definition: impl-factory.c:239
void * pw_impl_factory_get_user_data(struct pw_impl_factory *factory)
Definition: impl-factory.c:227
const struct pw_properties * pw_impl_factory_get_properties(struct pw_impl_factory *factory)
Get the factory properties.
Definition: impl-factory.c:148
user data to add to an object
Definition: filter.c:75
The factory information.
Definition: factory.h:46
Factory events, listen to them with pw_impl_factory_add_listener.
Definition: impl-factory.h:50
uint32_t version
Definition: impl-factory.h:52
void(* initialized)(void *data)
the factory is initialized
Definition: impl-factory.h:59
void(* destroy)(void *data)
the factory is destroyed
Definition: impl-factory.h:55
void(* free)(void *data)
the factory is freed
Definition: impl-factory.h:57
Definition: impl-factory.h:62
uint32_t version
Definition: impl-factory.h:64
Definition: properties.h:49
Definition: utils/dict.h:48
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:313