xref: /aosp_15_r20/external/webrtc/modules/portal/pipewire.sigs (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1// Copyright 2018 The WebRTC project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5//------------------------------------------------
6// Functions from PipeWire used in capturer code.
7//------------------------------------------------
8
9// core.h
10int pw_core_disconnect(pw_core *core);
11
12// loop.h
13void pw_loop_destroy(pw_loop *loop);
14pw_loop * pw_loop_new(const spa_dict *props);
15
16
17// pipewire.h
18void pw_init(int *argc, char **argv[]);
19const char* pw_get_library_version();
20
21// properties.h
22pw_properties * pw_properties_new_string(const char *args);
23
24// stream.h
25void pw_stream_add_listener(pw_stream *stream, spa_hook *listener, const pw_stream_events *events, void *data);
26int pw_stream_connect(pw_stream *stream, enum pw_direction direction, uint32_t target_id, enum pw_stream_flags flags, const spa_pod **params, uint32_t n_params);
27int pw_stream_disconnect(pw_stream *stream);
28pw_buffer *pw_stream_dequeue_buffer(pw_stream *stream);
29void pw_stream_destroy(pw_stream *stream);
30pw_stream * pw_stream_new(pw_core *core, const char *name, pw_properties *props);
31int pw_stream_queue_buffer(pw_stream *stream, pw_buffer *buffer);
32int pw_stream_set_active(pw_stream *stream, bool active);
33int pw_stream_update_params(pw_stream *stream, const spa_pod **params, uint32_t n_params);
34uint32_t pw_stream_get_node_id(pw_stream *stream);
35pw_stream_state pw_stream_get_state(pw_stream *stream, const char **error);
36
37// thread-loop.h
38void pw_thread_loop_destroy(pw_thread_loop *loop);
39pw_thread_loop * pw_thread_loop_new(const char *name, const spa_dict *props);
40int pw_thread_loop_start(pw_thread_loop *loop);
41void pw_thread_loop_stop(pw_thread_loop *loop);
42void pw_thread_loop_lock(pw_thread_loop *loop);
43void pw_thread_loop_unlock(pw_thread_loop *loop);
44pw_loop * pw_thread_loop_get_loop(pw_thread_loop *loop);
45void pw_thread_loop_signal(pw_thread_loop *loop, bool wait_for_accept);
46void pw_thread_loop_wait(pw_thread_loop *loop);
47
48// context.h
49void pw_context_destroy(pw_context *context);
50pw_context *pw_context_new(pw_loop *main_loop, pw_properties *props, size_t user_data_size);
51pw_core * pw_context_connect(pw_context *context, pw_properties *properties, size_t user_data_size);
52pw_core * pw_context_connect_fd(pw_context *context, int fd, pw_properties *properties, size_t user_data_size);
53