summaryrefslogtreecommitdiff
path: root/build/doc/html/main-loop_8h_source.html
diff options
context:
space:
mode:
Diffstat (limited to 'build/doc/html/main-loop_8h_source.html')
-rw-r--r--build/doc/html/main-loop_8h_source.html98
1 files changed, 98 insertions, 0 deletions
diff --git a/build/doc/html/main-loop_8h_source.html b/build/doc/html/main-loop_8h_source.html
new file mode 100644
index 00000000..4cd85819
--- /dev/null
+++ b/build/doc/html/main-loop_8h_source.html
@@ -0,0 +1,98 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<meta http-equiv="X-UA-Compatible" content="IE=9"/>
+<meta name="generator" content="Doxygen 1.8.15"/>
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>PipeWire: main-loop.h Source File</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="navtree.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="resize.js"></script>
+<script type="text/javascript" src="navtreedata.js"></script>
+<script type="text/javascript" src="navtree.js"></script>
+<script type="text/javascript">
+/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
+ $(document).ready(initResizable);
+/* @license-end */</script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td id="projectalign" style="padding-left: 0.5em;">
+ <div id="projectname">PipeWire
+ &#160;<span id="projectnumber">0.2.9</span>
+ </div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.15 -->
+<script type="text/javascript" src="menudata.js"></script>
+<script type="text/javascript" src="menu.js"></script>
+<script type="text/javascript">
+/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
+$(function() {
+ initMenu('',false,false,'search.php','Search');
+});
+/* @license-end */</script>
+<div id="main-nav"></div>
+</div><!-- top -->
+<div id="side-nav" class="ui-resizable side-nav-resizable">
+ <div id="nav-tree">
+ <div id="nav-tree-contents">
+ <div id="nav-sync" class="sync"></div>
+ </div>
+ </div>
+ <div id="splitbar" style="-moz-user-select:none;"
+ class="ui-resizable-handle">
+ </div>
+</div>
+<script type="text/javascript">
+/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
+$(document).ready(function(){initNavTree('main-loop_8h_source.html','');});
+/* @license-end */
+</script>
+<div id="doc-content">
+<div class="header">
+ <div class="headertitle">
+<div class="title">main-loop.h</div> </div>
+</div><!--header-->
+<div class="contents">
+<a href="main-loop_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/* PipeWire</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> * Copyright © 2018 Wim Taymans</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> * copy of this software and associated documentation files (the &quot;Software&quot;),</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * to deal in the Software without restriction, including without limitation</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * the rights to use, copy, modify, merge, publish, distribute, sublicense,</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * and/or sell copies of the Software, and to permit persons to whom the</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * Software is furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * The above copyright notice and this permission notice (including the next</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * paragraph) shall be included in all copies or substantial portions of the</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * Software.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment"> * DEALINGS IN THE SOFTWARE.</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#ifndef PIPEWIRE_MAIN_LOOP_H</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#define PIPEWIRE_MAIN_LOOP_H</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="keyword">struct </span><a class="code" href="classpw__main__loop.html">pw_main_loop</a>;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="loop_8h.html">pipewire/loop.h</a>&gt;</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="properties_8h.html">pipewire/properties.h</a>&gt;</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structpw__main__loop__events.html"> 45</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structpw__main__loop__events.html">pw_main_loop_events</a> {</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="main-loop_8h.html#a3310e380c0368cb007552027a040ff96"> 46</a></span>&#160;<span class="preprocessor">#define PW_VERSION_MAIN_LOOP_EVENTS 0</span></div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structpw__main__loop__events.html#abbfcaf5cd47f231f25979949df15cf29"> 47</a></span>&#160; uint32_t <a class="code" href="structpw__main__loop__events.html#abbfcaf5cd47f231f25979949df15cf29">version</a>;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="structpw__main__loop__events.html#a1713b16265dcafb5944612c5d653a553"> 50</a></span>&#160; void (*<a class="code" href="structpw__main__loop__events.html#a1713b16265dcafb5944612c5d653a553">destroy</a>) (<span class="keywordtype">void</span> *<a class="code" href="structdata.html">data</a>);</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;};</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="keyword">struct </span><a class="code" href="classpw__main__loop.html">pw_main_loop</a> *</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<a class="code" href="classpw__main__loop.html#ac905677385238893cf73a362c960f957">pw_main_loop_new</a>(<span class="keyword">struct</span> <a class="code" href="structpw__properties.html">pw_properties</a> *properties);</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="keywordtype">void</span> <a class="code" href="main-loop_8h.html#ae2ca7b19516a0245b0da1756a82ca753">pw_main_loop_add_listener</a>(<span class="keyword">struct</span> <a class="code" href="classpw__main__loop.html">pw_main_loop</a> *loop,</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keyword">struct</span> spa_hook *listener,</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structpw__main__loop__events.html">pw_main_loop_events</a> *events,</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordtype">void</span> *<a class="code" href="structdata.html">data</a>);</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="keyword">struct </span><a class="code" href="structpw__loop.html">pw_loop</a> * <a class="code" href="main-loop_8h.html#af0fc490ae11b6409e2bbc0838c8becdd">pw_main_loop_get_loop</a>(<span class="keyword">struct</span> <a class="code" href="classpw__main__loop.html">pw_main_loop</a> *<a class="code" href="structpw__loop.html#a4624741580712c167c17bd9242be003f">loop</a>);</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="keywordtype">void</span> <a class="code" href="classpw__main__loop.html#adae8ebcf8d461723a8cf53be56c802db">pw_main_loop_destroy</a>(<span class="keyword">struct</span> <a class="code" href="classpw__main__loop.html">pw_main_loop</a> *<a class="code" href="structpw__loop.html#a4624741580712c167c17bd9242be003f">loop</a>);</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="keywordtype">int</span> <a class="code" href="classpw__main__loop.html#a30019fb9d75c02846ec56246f78f5356">pw_main_loop_run</a>(<span class="keyword">struct</span> <a class="code" href="classpw__main__loop.html">pw_main_loop</a> *<a class="code" href="structpw__loop.html#a4624741580712c167c17bd9242be003f">loop</a>);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;<span class="keywordtype">int</span> <a class="code" href="classpw__main__loop.html#a4ba80d38ff00953836429a526535e7d2">pw_main_loop_quit</a>(<span class="keyword">struct</span> <a class="code" href="classpw__main__loop.html">pw_main_loop</a> *<a class="code" href="structpw__loop.html#a4624741580712c167c17bd9242be003f">loop</a>);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;}</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* PIPEWIRE_MAIN_LOOP_H */</span><span class="preprocessor"></span></div><div class="ttc" id="structpw__main__loop__events_html_a1713b16265dcafb5944612c5d653a553"><div class="ttname"><a href="structpw__main__loop__events.html#a1713b16265dcafb5944612c5d653a553">pw_main_loop_events::destroy</a></div><div class="ttdeci">void(* destroy)(void *data)</div><div class="ttdoc">Emited when the main loop is destroyed.</div><div class="ttdef"><b>Definition:</b> main-loop.h:50</div></div>
+<div class="ttc" id="structpw__properties_html"><div class="ttname"><a href="structpw__properties.html">pw_properties</a></div><div class="ttdoc">A collection of key/value pairs.</div><div class="ttdef"><b>Definition:</b> properties.h:43</div></div>
+<div class="ttc" id="classpw__main__loop_html_a30019fb9d75c02846ec56246f78f5356"><div class="ttname"><a href="classpw__main__loop.html#a30019fb9d75c02846ec56246f78f5356">pw_main_loop::pw_main_loop_run</a></div><div class="ttdeci">SPA_EXPORT int pw_main_loop_run(struct pw_main_loop *loop)</div><div class="ttdoc">Start a main loop.</div><div class="ttdef"><b>Definition:</b> main-loop.c:137</div></div>
+<div class="ttc" id="classpw__main__loop_html_adae8ebcf8d461723a8cf53be56c802db"><div class="ttname"><a href="classpw__main__loop.html#adae8ebcf8d461723a8cf53be56c802db">pw_main_loop::pw_main_loop_destroy</a></div><div class="ttdeci">SPA_EXPORT void pw_main_loop_destroy(struct pw_main_loop *loop)</div><div class="ttdoc">Destroy a main loop.</div><div class="ttdef"><b>Definition:</b> main-loop.c:89</div></div>
+<div class="ttc" id="structpw__loop_html"><div class="ttname"><a href="structpw__loop.html">pw_loop</a></div><div class="ttdoc">PipeWire loop object provides an implementation of the spa loop interfaces.</div><div class="ttdef"><b>Definition:</b> loop.h:42</div></div>
+<div class="ttc" id="structpw__loop_html_a4624741580712c167c17bd9242be003f"><div class="ttname"><a href="structpw__loop.html#a4624741580712c167c17bd9242be003f">pw_loop::loop</a></div><div class="ttdeci">struct spa_loop * loop</div><div class="ttdoc">wrapped loop</div><div class="ttdef"><b>Definition:</b> loop.h:44</div></div>
+<div class="ttc" id="structpw__main__loop__events_html"><div class="ttname"><a href="structpw__main__loop__events.html">pw_main_loop_events</a></div><div class="ttdoc">Events of the main loop.</div><div class="ttdef"><b>Definition:</b> main-loop.h:45</div></div>
+<div class="ttc" id="loop_8h_html"><div class="ttname"><a href="loop_8h.html">loop.h</a></div></div>
+<div class="ttc" id="structpw__main__loop__events_html_abbfcaf5cd47f231f25979949df15cf29"><div class="ttname"><a href="structpw__main__loop__events.html#abbfcaf5cd47f231f25979949df15cf29">pw_main_loop_events::version</a></div><div class="ttdeci">uint32_t version</div><div class="ttdef"><b>Definition:</b> main-loop.h:47</div></div>
+<div class="ttc" id="properties_8h_html"><div class="ttname"><a href="properties_8h.html">properties.h</a></div></div>
+<div class="ttc" id="classpw__main__loop_html"><div class="ttname"><a href="classpw__main__loop.html">pw_main_loop</a></div><div class="ttdoc">PipeWire main-loop interface.</div></div>
+<div class="ttc" id="classpw__main__loop_html_a4ba80d38ff00953836429a526535e7d2"><div class="ttname"><a href="classpw__main__loop.html#a4ba80d38ff00953836429a526535e7d2">pw_main_loop::pw_main_loop_quit</a></div><div class="ttdeci">SPA_EXPORT int pw_main_loop_quit(struct pw_main_loop *loop)</div><div class="ttdoc">Stop a main loop.</div><div class="ttdef"><b>Definition:</b> main-loop.c:122</div></div>
+<div class="ttc" id="classpw__main__loop_html_ac905677385238893cf73a362c960f957"><div class="ttname"><a href="classpw__main__loop.html#ac905677385238893cf73a362c960f957">pw_main_loop::pw_main_loop_new</a></div><div class="ttdeci">SPA_EXPORT struct pw_main_loop * pw_main_loop_new(struct pw_properties *properties)</div><div class="ttdoc">Create a new new main loop.</div><div class="ttdef"><b>Definition:</b> main-loop.c:42</div></div>
+<div class="ttc" id="main-loop_8h_html_af0fc490ae11b6409e2bbc0838c8becdd"><div class="ttname"><a href="main-loop_8h.html#af0fc490ae11b6409e2bbc0838c8becdd">pw_main_loop_get_loop</a></div><div class="ttdeci">struct pw_loop * pw_main_loop_get_loop(struct pw_main_loop *loop)</div><div class="ttdoc">Get the loop implementation.</div><div class="ttdef"><b>Definition:</b> main-loop.c:109</div></div>
+<div class="ttc" id="structdata_html"><div class="ttname"><a href="structdata.html">data</a></div><div class="ttdef"><b>Definition:</b> stream.c:69</div></div>
+<div class="ttc" id="main-loop_8h_html_ae2ca7b19516a0245b0da1756a82ca753"><div class="ttname"><a href="main-loop_8h.html#ae2ca7b19516a0245b0da1756a82ca753">pw_main_loop_add_listener</a></div><div class="ttdeci">void pw_main_loop_add_listener(struct pw_main_loop *loop, struct spa_hook *listener, const struct pw_main_loop_events *events, void *data)</div><div class="ttdoc">Add an event listener.</div><div class="ttdef"><b>Definition:</b> main-loop.c:100</div></div>
+</div><!-- fragment --></div><!-- contents -->
+</div><!-- doc-content -->
+<!-- start footer part -->
+<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
+ <ul>
+ <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_7129a66c92fe7beef816c2ac906ef0b3.html">pipewire</a></li><li class="navelem"><a class="el" href="main-loop_8h.html">main-loop.h</a></li>
+ <li class="footer">Generated by
+ <a href="http://www.doxygen.org/index.html">
+ <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
+ </ul>
+</div>
+</body>
+</html>