Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion modules/javafx.graphics/src/main/legal/pipewire.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## PipeWire 0.3.68
## PipeWire 1.3.81

### PipeWire license:

Expand Down Expand Up @@ -39,3 +39,8 @@ spa/include/spa/utils/string.h
```
Copyright © 2021 Red Hat, Inc.
```

spa/utils/cleanup.h:
```
Copyright © 2023 PipeWire authors
```
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@ struct pw_context;

struct pw_global;
struct pw_impl_client;
struct pw_impl_node;

#include <pipewire/core.h>
#include <pipewire/loop.h>
#include <pipewire/properties.h>

/** context events emitted by the context object added with \ref pw_context_add_listener */
struct pw_context_events {
#define PW_VERSION_CONTEXT_EVENTS 0
#define PW_VERSION_CONTEXT_EVENTS 1
uint32_t version;

/** The context is being destroyed */
Expand All @@ -63,12 +64,24 @@ struct pw_context_events {
void (*global_added) (void *data, struct pw_global *global);
/** a global object was removed */
void (*global_removed) (void *data, struct pw_global *global);

/** a driver was added, since 0.3.75 version:1 */
void (*driver_added) (void *data, struct pw_impl_node *node);
/** a driver was removed, since 0.3.75 version:1 */
void (*driver_removed) (void *data, struct pw_impl_node *node);
};

/** Make a new context object for a given main_loop. Ownership of the properties is taken */
struct pw_context * pw_context_new(struct pw_loop *main_loop, /**< a main loop to run in */
struct pw_properties *props, /**< extra properties */
size_t user_data_size /**< extra user data size */);
/** Make a new context object for a given main_loop. Ownership of the properties is taken, even
* if the function returns NULL.
*
* \param main_loop A main loop to run in. This must stay alive unil pw_context_destroy() is called.
* \param props extra properties
* \param user_data_size extra user data size
* \return The context object on success, or NULL on failure, in which case errno is set.
* */
struct pw_context * pw_context_new(struct pw_loop *main_loop,
struct pw_properties *props,
size_t user_data_size);

/** destroy a context object, all resources except the main_loop will be destroyed */
void pw_context_destroy(struct pw_context *context);
Expand Down Expand Up @@ -113,15 +126,27 @@ int pw_context_conf_section_match_rules(struct pw_context *context, const char *
/** Get the context support objects */
const struct spa_support *pw_context_get_support(struct pw_context *context, uint32_t *n_support);

/** get the context main loop */
/** Get the context main loop. Returns the value passed to pw_context_new(). */
struct pw_loop *pw_context_get_main_loop(struct pw_context *context);

/** get the context data loop. Since 0.3.56 */
/** Get the context data loop. This loop runs on the realtime thread. This
* acquires a loop from the generic data.rt class. Use pw_context_acquire_loop() instead.
* Since 0.3.56 */
struct pw_data_loop *pw_context_get_data_loop(struct pw_context *context);

/** Get a data-loop.
* Since 1.1.0 */
struct pw_loop *pw_context_acquire_loop(struct pw_context *context, const struct spa_dict *props);
/** Release a data-loop.
* Since 1.1.0 */
void pw_context_release_loop(struct pw_context *context, struct pw_loop *loop);

/** Get the work queue from the context: Since 0.3.26 */
struct pw_work_queue *pw_context_get_work_queue(struct pw_context *context);

/** Get the memory pool from the context: Since 0.3.74 */
struct pw_mempool *pw_context_get_mempool(struct pw_context *context);

/** Iterate the globals of the context. The callback should return
* 0 to fetch the next item, any other value stops the iteration and returns
* the value. When all callbacks return 0, this function returns 0 when all
Expand All @@ -130,7 +155,10 @@ int pw_context_for_each_global(struct pw_context *context,
int (*callback) (void *data, struct pw_global *global),
void *data);

/** Find a context global by id */
/** Find a context global by id.
*
* \return The global on success, or NULL on failure. If id is \ref PW_ID_CORE,
* this function will always return a non-NULL value. */
struct pw_global *pw_context_find_global(struct pw_context *context, /**< the context */
uint32_t id /**< the global id */);

Expand All @@ -140,6 +168,7 @@ int pw_context_add_spa_lib(struct pw_context *context, const char *factory_regex
/** find the library name for a spa factory */
const char * pw_context_find_spa_lib(struct pw_context *context, const char *factory_name);

/** Load a SPA handle from a context. On failure returns NULL and sets errno. */
struct spa_handle *pw_context_load_spa_handle(struct pw_context *context,
const char *factory_name,
const struct spa_dict *info);
Expand All @@ -160,9 +189,21 @@ int pw_context_register_export_type(struct pw_context *context, struct pw_export
/** find information about registered export type */
const struct pw_export_type *pw_context_find_export_type(struct pw_context *context, const char *type);

/** add an object to the context */
/** add an object to the context
*
* \param context The context.
* \param type The type of the object, usually a `TYPE_INTERFACE_` value.
* \param value The object value. Must last as long as the context and must
* be of the type corresponding to the type.
* \return A negative number on failure (out of memory).
* */
int pw_context_set_object(struct pw_context *context, const char *type, void *value);
/** get an object from the context */
/** get an object from the context
*
* \param context The context.
* \param type The string corresponding to the object's interface.
* \return The object, or NULL if the object does not exist.
* */
void *pw_context_get_object(struct pw_context *context, const char *type);

/**
Expand Down
Loading