PipeWire  0.1.4
data-loop.h
Go to the documentation of this file.
1 /* PipeWire
2  * Copyright (C) 2016 Wim Taymans <wim.taymans@gmail.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef __PIPEWIRE_DATA_LOOP_H__
21 #define __PIPEWIRE_DATA_LOOP_H__
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #include <spa/hook.h>
28 
33 struct pw_data_loop;
34 
35 #include <pipewire/loop.h>
36 #include <pipewire/properties.h>
37 
39 #define PW_VERSION_DATA_LOOP_EVENTS 0
40  uint32_t version;
41 
42  void (*destroy) (void *data);
43 };
44 
45 struct pw_data_loop *
46 pw_data_loop_new(struct pw_properties *properties);
47 
49  struct spa_hook *listener,
50  const struct pw_data_loop_events *events,
51  void *data);
52 
53 struct pw_loop *
55 
56 void
58 
59 int
61 
62 int
64 
65 bool
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif /* __PIPEWIRE_DATA_LOOP_H__ */
A collection of key/value pairs.
Definition: properties.h:38
struct pw_loop * loop
Definition: private.h:143
PipeWire loop interface provides an implementation of the spa loop interfaces.
Definition: loop.h:37
uint32_t version
Definition: data-loop.h:40
struct spa_loop * loop
wrapped loop
Definition: loop.h:38
int pw_data_loop_start(struct pw_data_loop *loop)
struct pw_data_loop * pw_data_loop_new(struct pw_properties *properties)
void(* destroy)(void *data)
Definition: data-loop.h:42
PipeWire rt-loop object.
Definition: private.h:142
int pw_data_loop_stop(struct pw_data_loop *loop)
bool pw_data_loop_in_thread(struct pw_data_loop *loop)
Definition: data-loop.h:38
void pw_data_loop_destroy(struct pw_data_loop *loop)
void pw_data_loop_add_listener(struct pw_data_loop *loop, struct spa_hook *listener, const struct pw_data_loop_events *events, void *data)
Definition: data-loop.c:146
struct pw_loop * pw_data_loop_get_loop(struct pw_data_loop *loop)
Definition: data-loop.c:155