25 #ifndef SPA_PLUGIN_LOADER_H 26 #define SPA_PLUGIN_LOADER_H 40 #define SPA_TYPE_INTERFACE_PluginLoader SPA_TYPE_INFO_INTERFACE_BASE "PluginLoader" 42 #define SPA_VERSION_PLUGIN_LOADER 0 46 #define SPA_VERSION_PLUGIN_LOADER_METHODS 0 56 struct spa_handle *(*load) (
void *object,
const char *factory_name,
const struct spa_dict *info);
74 load, 0, factory_name, info);
#define spa_interface_call_res(iface, method_type, res, method, vers,...)
Invoke method named method in the callbacks on the given interface object.
Definition: hook.h:226
#define SPA_LIKELY(x)
Definition: defs.h:241
struct spa_interface iface
Definition: plugin-loader.h:43
uint32_t version
Definition: plugin-loader.h:47
Definition: pipewire.c:71
int(* unload)(void *object, struct spa_handle *handle)
Unload a SPA plugin.
Definition: plugin-loader.h:64
Definition: utils/dict.h:48
Definition: plugin-loader.h:45
int spa_plugin_loader_unload(struct spa_plugin_loader *loader, struct spa_handle *handle)
Definition: plugin-loader.h:79
struct spa_handle * spa_plugin_loader_load(struct spa_plugin_loader *loader, const char *factory_name, const struct spa_dict *info)
Definition: plugin-loader.h:68
Definition: plugin-loader.h:43