46 #define SPA_VERSION_HANDLE 0 73 #define spa_handle_get_interface(h,...) (h)->get_interface((h),__VA_ARGS__) 74 #define spa_handle_clear(h) (h)->clear((h)) 100 for (i = 0; i < n_support; i++) {
101 if (strcmp(
support[i].type, type) == 0)
107 #define SPA_SUPPORT_INIT(type,data) (struct spa_support) { (type), (data) } 111 #define SPA_VERSION_HANDLE_FACTORY 1 180 #define spa_handle_factory_get_size(h,...) (h)->get_size((h),__VA_ARGS__) 181 #define spa_handle_factory_init(h,...) (h)->init((h),__VA_ARGS__) 182 #define spa_handle_factory_enum_interface_info(h,...) (h)->enum_interface_info((h),__VA_ARGS__) 196 #define SPA_HANDLE_FACTORY_ENUM_FUNC_NAME "spa_handle_factory_enum" 211 #define SPA_KEY_FACTORY_NAME "factory.name" 212 #define SPA_KEY_FACTORY_AUTHOR "factory.author" 213 #define SPA_KEY_FACTORY_DESCRIPTION "factory.description" 214 #define SPA_KEY_FACTORY_USAGE "factory.usage" 216 #define SPA_KEY_LIBRARY_NAME "library.name"
int(* enum_interface_info)(const struct spa_handle_factory *factory, const struct spa_interface_info **info, uint32_t *index)
spa_handle_factory::enum_interface_info:
Definition: plugin.h:175
int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
The entry point in a plugin.
const struct spa_dict * info
Extra information about the handles of this factory.
Definition: plugin.h:130
This structure lists the information about available interfaces on handles.
Definition: plugin.h:80
Definition: pipewire.c:65
Definition: pipewire.c:77
int(* clear)(struct spa_handle *handle)
Clean up the memory of handle.
Definition: plugin.h:70
uint32_t version
Definition: plugin.h:47
Definition: utils/dict.h:48
const char * type
Definition: plugin.h:81
int(* init)(const struct spa_handle_factory *factory, struct spa_handle *handle, const struct spa_dict *info, const struct spa_support *support, uint32_t n_support)
Initialize an instance of this factory.
Definition: plugin.h:157
int(* spa_handle_factory_enum_func_t)(const struct spa_handle_factory **factory, uint32_t *index)
The function signature of the entry point in a plugin.
Definition: plugin.h:193
void * spa_support_find(const struct spa_support *support, uint32_t n_support, const char *type)
Find a support item of the given type.
Definition: plugin.h:95
void * data
Definition: plugin.h:91
const char * name
The name of the factory contains a logical name that describes the function of the handle...
Definition: plugin.h:126
size_t(* get_size)(const struct spa_handle_factory *factory, const struct spa_dict *params)
Get the size of handles from this factory.
Definition: plugin.h:138
Extra supporting infrastructure passed to the init() function of a factory.
Definition: plugin.h:89
const char * type
Definition: plugin.h:90
int(* get_interface)(struct spa_handle *handle, const char *type, void **interface)
Get the interface provided by handle with type.
Definition: plugin.h:62
uint32_t version
Definition: plugin.h:112