PipeWire  0.1.4
main-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_MAIN_LOOP_H__
21 #define __PIPEWIRE_MAIN_LOOP_H__
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
34 struct pw_main_loop;
35 
36 #include <pipewire/loop.h>
37 #include <pipewire/properties.h>
38 
40 #define PW_VERSION_MAIN_LOOP_EVENTS 0
41  uint32_t version;
42 
44  void (*destroy) (void *data);
45 };
46 
47 struct pw_main_loop *
48 pw_main_loop_new(struct pw_properties *properties);
49 
51  struct spa_hook *listener,
52  const struct pw_main_loop_events *events,
53  void *data);
54 
55 struct pw_loop *
57 
58 void
60 
61 void
63 
64 void
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif /* __PIPEWIRE_MAIN_LOOP_H__ */
void pw_main_loop_quit(struct pw_main_loop *loop)
void(* destroy)(void *data)
Emited when the main loop is destroyed.
Definition: main-loop.h:44
A collection of key/value pairs.
Definition: properties.h:38
PipeWire main-loop interface.
Definition: private.h:153
PipeWire loop interface provides an implementation of the spa loop interfaces.
Definition: loop.h:37
struct spa_loop * loop
wrapped loop
Definition: loop.h:38
Definition: main-loop.h:39
void pw_main_loop_run(struct pw_main_loop *loop)
uint32_t version
Definition: main-loop.h:41
struct pw_main_loop * pw_main_loop_new(struct pw_properties *properties)
struct pw_loop * loop
Definition: private.h:154
struct pw_loop * pw_main_loop_get_loop(struct pw_main_loop *loop)
Definition: main-loop.c:75
void pw_main_loop_destroy(struct pw_main_loop *loop)
void pw_main_loop_add_listener(struct pw_main_loop *loop, struct spa_hook *listener, const struct pw_main_loop_events *events, void *data)
Definition: main-loop.c:67