mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
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:
parent
42103a8218
commit
8ea78c2e3f
113 changed files with 905 additions and 906 deletions
|
|
@ -123,23 +123,23 @@ static void test_read_write(struct pw_protocol_native_connection *in,
|
|||
int main(int argc, char *argv[])
|
||||
{
|
||||
struct pw_main_loop *loop;
|
||||
struct pw_core *core;
|
||||
struct pw_context *context;
|
||||
struct pw_protocol_native_connection *in, *out;
|
||||
int fds[2];
|
||||
|
||||
pw_init(&argc, &argv);
|
||||
|
||||
loop = pw_main_loop_new(NULL);
|
||||
core = pw_core_new(pw_main_loop_get_loop(loop), NULL, 0);
|
||||
context = pw_context_new(pw_main_loop_get_loop(loop), NULL, 0);
|
||||
|
||||
if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds) < 0) {
|
||||
spa_assert_not_reached();
|
||||
return -1;
|
||||
}
|
||||
|
||||
in = pw_protocol_native_connection_new(core, fds[0]);
|
||||
in = pw_protocol_native_connection_new(context, fds[0]);
|
||||
spa_assert(in != NULL);
|
||||
out = pw_protocol_native_connection_new(core, fds[1]);
|
||||
out = pw_protocol_native_connection_new(context, fds[1]);
|
||||
spa_assert(out != NULL);
|
||||
|
||||
test_create(in);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue