Loading...
Searching...
No Matches
impl-core.h
Go to the documentation of this file.
/* PipeWire */
/* SPDX-FileCopyrightText: Copyright © 2018 Wim Taymans */
/* SPDX-License-Identifier: MIT */
#ifndef PIPEWIRE_IMPL_CORE_H
#define PIPEWIRE_IMPL_CORE_H
#ifdef __cplusplus
extern "C" {
#endif
struct pw_impl_core;
#include <pipewire/context.h>
#include <pipewire/global.h>
#include <pipewire/properties.h>
#include <pipewire/resource.h>
struct pw_impl_core_events {
#define PW_VERSION_IMPL_CORE_EVENTS 0
uint32_t version;
void (*destroy) (void *data);
void (*free) (void *data);
void (*initialized) (void *data);
};
struct pw_impl_core *pw_context_create_core(struct pw_context *context,
struct pw_properties *properties,
size_t user_data_size);
/* get the default core in a context */
struct pw_impl_core *pw_context_get_default_core(struct pw_context *context);
const struct pw_properties *pw_impl_core_get_properties(struct pw_impl_core *core);
const struct pw_core_info *pw_impl_core_get_info(struct pw_impl_core *core);
int pw_impl_core_update_properties(struct pw_impl_core *core, const struct spa_dict *dict);
int pw_impl_core_register(struct pw_impl_core *core,
struct pw_properties *properties);
void pw_impl_core_destroy(struct pw_impl_core *core);
void *pw_impl_core_get_user_data(struct pw_impl_core *core);
struct pw_global *pw_impl_core_get_global(struct pw_impl_core *core);
void pw_impl_core_add_listener(struct pw_impl_core *core,
struct spa_hook *listener,
const struct pw_impl_core_events *events,
void *data);
#ifdef __cplusplus
}
#endif
#endif /* PIPEWIRE_IMPL_CORE_H */
global.h
pipewire/global.h
pw_context_create_core
struct pw_impl_core * pw_context_create_core(struct pw_context *context, struct pw_properties *properties, size_t user_data_size)
Definition impl-core.c:386
pw_impl_core_get_user_data
void * pw_impl_core_get_user_data(struct pw_impl_core *core)
Definition impl-core.c:626
pw_impl_core_get_info
const struct pw_core_info * pw_impl_core_get_info(struct pw_impl_core *core)
Get the core information.
pw_impl_core_get_properties
const struct pw_properties * pw_impl_core_get_properties(struct pw_impl_core *core)
Get the core properties.
Definition impl-core.c:545
pw_impl_core_update_properties
int pw_impl_core_update_properties(struct pw_impl_core *core, const struct spa_dict *dict)
Update the core properties.
Definition impl-core.c:551
pw_context_get_default_core
struct pw_impl_core * pw_context_get_default_core(struct pw_context *context)
Definition impl-core.c:438
pw_impl_core_get_global
struct pw_global * pw_impl_core_get_global(struct pw_impl_core *core)
Get the global of this core.
Definition impl-core.c:632
pw_impl_core_register
int pw_impl_core_register(struct pw_impl_core *core, struct pw_properties *properties)
Definition impl-core.c:573
pw_impl_core_add_listener
void pw_impl_core_add_listener(struct pw_impl_core *core, struct spa_hook *listener, const struct pw_impl_core_events *events, void *data)
Add an event listener.
Definition impl-core.c:638
pw_impl_core_destroy
void pw_impl_core_destroy(struct pw_impl_core *core)
Definition impl-core.c:444
properties.h
pipewire/properties.h
resource.h
pipewire/resource.h
context.h
pipewire/context.h
pw_context
pw_core_info
The core information.
Definition core.h:81
pw_global
pw_impl_core_events
Factory events, listen to them with pw_impl_core_add_listener.
Definition impl-core.h:37
pw_impl_core_events::destroy
void(* destroy)(void *data)
the core is destroyed
Definition impl-core.h:43
pw_impl_core_events::version
uint32_t version
Definition impl-core.h:40
pw_impl_core_events::initialized
void(* initialized)(void *data)
the core is initialized
Definition impl-core.h:47
pw_impl_core
pw_properties
Definition properties.h:39
spa_dict
Definition dict.h:51
spa_hook
A hook, contains the structure with functions and the data passed to the functions.
Definition hook.h:427