pw_core -> pw_context

The proxy API is the one that we would like to expose for applications
and the other API is used internally when implementing modules or
factories.

The current pw_core object is really a context for all objects so
name it that way. It also makes it possible to rename pw_core_proxy
to pw_proxy later.
This commit is contained in:
Wim Taymans 2019-12-10 18:19:56 +01:00
parent 42103a8218
commit 8ea78c2e3f
113 changed files with 905 additions and 906 deletions

View file

@ -32,7 +32,7 @@ extern "C" {
#include <spa/utils/hook.h>
#include <pipewire/core.h>
#include <pipewire/context.h>
#define PIPEWIRE_SYMBOL_MODULE_INIT "pipewire__module_init"
#define PIPEWIRE_MODULE_PREFIX "libpipewire-"
@ -74,13 +74,13 @@ struct pw_module_events {
};
struct pw_module *
pw_module_load(struct pw_core *core,
pw_module_load(struct pw_context *context,
const char *name, /**< name of the module */
const char *args /**< arguments of the module */,
struct pw_properties *properties /**< extra global properties */);
/** Get the core of a module */
struct pw_core * pw_module_get_core(struct pw_module *module);
/** Get the context of a module */
struct pw_context * pw_module_get_context(struct pw_module *module);
/** Get the global of a module */
struct pw_global * pw_module_get_global(struct pw_module *module);