summaryrefslogtreecommitdiff
path: root/build/doc/html/port_8h_source.html
blob: dcce7b575f9629460a442f104479671bd0403790 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!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: port.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('port_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">port.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="port_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_PORT_H</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#define PIPEWIRE_PORT_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="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;spa/utils/hook.h&gt;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="keyword">struct </span><a class="code" href="classpw__port.html">pw_port</a>;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="keyword">struct </span><a class="code" href="classpw__link.html">pw_link</a>;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">struct </span><a class="code" href="classpw__control.html">pw_control</a>;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="core_8h.html">pipewire/core.h</a>&gt;</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="introspect_8h.html">pipewire/introspect.h</a>&gt;</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="node_8h.html">pipewire/node.h</a>&gt;</span></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"><a class="line" href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6">   52</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6">pw_port_state</a> {</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6a0db5ddd15b188c1f747499c8d75f20c2">   53</a></span>&#160;        <a class="code" href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6a0db5ddd15b188c1f747499c8d75f20c2">PW_PORT_STATE_ERROR</a> = -1,       </div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6a921e399f53a6dd90a1721022d87931ca">   54</a></span>&#160;        <a class="code" href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6a921e399f53a6dd90a1721022d87931ca">PW_PORT_STATE_INIT</a> = 0,         </div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6a4198e858d11461bc8b1ce179b579b537">   55</a></span>&#160;        <a class="code" href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6a4198e858d11461bc8b1ce179b579b537">PW_PORT_STATE_CONFIGURE</a> = 1,    </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6ae71d3a847559a838fe9bd5bf8c07faa2">   56</a></span>&#160;        <a class="code" href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6ae71d3a847559a838fe9bd5bf8c07faa2">PW_PORT_STATE_READY</a> = 2,        </div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6a15f1ec0a36d9e4f9dd3d7304243044a9">   57</a></span>&#160;        <a class="code" href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6a15f1ec0a36d9e4f9dd3d7304243044a9">PW_PORT_STATE_PAUSED</a> = 3,       </div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;};</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structpw__port__events.html">   61</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structpw__port__events.html">pw_port_events</a> {</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="port_8h.html#a2d08d6e2358afc05ca212a0258fb6a26">   62</a></span>&#160;<span class="preprocessor">#define PW_VERSION_PORT_EVENTS 0</span></div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="structpw__port__events.html#ab9b6466b9ef1ed29b53c585e6d7d5885">   63</a></span>&#160;        uint32_t <a class="code" href="structpw__port__events.html#ab9b6466b9ef1ed29b53c585e6d7d5885">version</a>;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structpw__port__events.html#ac25f071f63392c69328dfa829be044e3">   66</a></span>&#160;        void (*<a class="code" href="structpw__port__events.html#ac25f071f63392c69328dfa829be044e3">destroy</a>) (<span class="keywordtype">void</span> *<a class="code" href="structdata.html">data</a>);</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="structpw__port__events.html#a757cc045456c8c2cdae36a8e787ac5d3">   69</a></span>&#160;        void (*<a class="code" href="structpw__port__events.html#a757cc045456c8c2cdae36a8e787ac5d3">free</a>) (<span class="keywordtype">void</span> *<a class="code" href="structdata.html">data</a>);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="structpw__port__events.html#afc2735d24e0eb220a56690973c9f626c">   72</a></span>&#160;        void (*<a class="code" href="structpw__port__events.html#afc2735d24e0eb220a56690973c9f626c">info_changed</a>) (<span class="keywordtype">void</span> *<a class="code" href="structdata.html">data</a>, <span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structpw__port__info.html">pw_port_info</a> *info);</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structpw__port__events.html#a1d93b05500a2b781e2c29b841b08ba30">   75</a></span>&#160;        void (*<a class="code" href="structpw__port__events.html#a1d93b05500a2b781e2c29b841b08ba30">link_added</a>) (<span class="keywordtype">void</span> *<a class="code" href="structdata.html">data</a>, <span class="keyword">struct </span><a class="code" href="classpw__link.html">pw_link</a> *link);</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structpw__port__events.html#a0dcfa2b27d020b541a72315693e372fd">   78</a></span>&#160;        void (*<a class="code" href="structpw__port__events.html#a0dcfa2b27d020b541a72315693e372fd">link_removed</a>) (<span class="keywordtype">void</span> *<a class="code" href="structdata.html">data</a>, <span class="keyword">struct </span><a class="code" href="classpw__link.html">pw_link</a> *link);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structpw__port__events.html#aafea670c82e6cf6c1a3d4c5e93d86e0a">   81</a></span>&#160;        void (*<a class="code" href="structpw__port__events.html#aafea670c82e6cf6c1a3d4c5e93d86e0a">state_changed</a>) (<span class="keywordtype">void</span> *<a class="code" href="structdata.html">data</a>, <span class="keyword">enum</span> <a class="code" href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6">pw_port_state</a> old,</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;                        <span class="keyword">enum</span> <a class="code" href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6">pw_port_state</a> state, <span class="keyword">const</span> <span class="keywordtype">char</span> *error);</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structpw__port__events.html#ad5a3e7eac86a39b78be8736cbad37d13">   85</a></span>&#160;        void (*<a class="code" href="structpw__port__events.html#ad5a3e7eac86a39b78be8736cbad37d13">control_added</a>) (<span class="keywordtype">void</span> *<a class="code" href="structdata.html">data</a>, <span class="keyword">struct </span><a class="code" href="classpw__control.html">pw_control</a> *<a class="code" href="structcontrol.html">control</a>);</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structpw__port__events.html#ac6376ddcd1537b31549bfbe03b801574">   88</a></span>&#160;        void (*<a class="code" href="structpw__port__events.html#ac6376ddcd1537b31549bfbe03b801574">control_removed</a>) (<span class="keywordtype">void</span> *<a class="code" href="structdata.html">data</a>, <span class="keyword">struct </span><a class="code" href="classpw__control.html">pw_control</a> *<a class="code" href="structcontrol.html">control</a>);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;};</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="keyword">enum</span> <a class="code" href="introspect_8h.html#a6e9e847059d68cbdb608abc8eb6b631d">pw_direction</a> <a class="code" href="port_8h.html#a53aab0d888eb07c1543dee1c55e5c681">pw_port_get_direction</a>(<span class="keyword">struct</span> <a class="code" href="classpw__port.html">pw_port</a> *port);</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span><a class="code" href="structpw__properties.html">pw_properties</a> *<a class="code" href="port_8h.html#a265fceb6afcbf35100789c8604adb8ef">pw_port_get_properties</a>(<span class="keyword">struct</span> <a class="code" href="classpw__port.html">pw_port</a> *port);</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="keywordtype">int</span> <a class="code" href="port_8h.html#a6415901538a39fe66d36263ea9ca79cc">pw_port_update_properties</a>(<span class="keyword">struct</span> <a class="code" href="classpw__port.html">pw_port</a> *port, <span class="keyword">const</span> <span class="keyword">struct</span> spa_dict *<a class="code" href="structpw__properties.html#a70aa5816bde60f5511f2308971794881">dict</a>);</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;uint32_t <a class="code" href="port_8h.html#a2461fe53d57c257892e36e7d37ae3e24">pw_port_get_id</a>(<span class="keyword">struct</span> <a class="code" href="classpw__port.html">pw_port</a> *port);</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="keyword">struct </span><a class="code" href="classpw__node.html">pw_node</a> *<a class="code" href="port_8h.html#a501ca4956581fbd1a4fe94f3b46d1dec">pw_port_get_node</a>(<span class="keyword">struct</span> <a class="code" href="classpw__port.html">pw_port</a> *port);</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="keywordtype">void</span> <a class="code" href="port_8h.html#a6d61253f97045f6452627a0de7e0a0fc">pw_port_add_listener</a>(<span class="keyword">struct</span> <a class="code" href="classpw__port.html">pw_port</a> *port,</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;                          <span class="keyword">struct</span> spa_hook *listener,</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;                          <span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structpw__port__events.html">pw_port_events</a> *events,</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;                          <span class="keywordtype">void</span> *<a class="code" href="structdata.html">data</a>);</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;}</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* PIPEWIRE_PORT_H */</span><span class="preprocessor"></span></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="node_8h_html"><div class="ttname"><a href="node_8h.html">node.h</a></div></div>
<div class="ttc" id="port_8h_html_a6415901538a39fe66d36263ea9ca79cc"><div class="ttname"><a href="port_8h.html#a6415901538a39fe66d36263ea9ca79cc">pw_port_update_properties</a></div><div class="ttdeci">int pw_port_update_properties(struct pw_port *port, const struct spa_dict *dict)</div><div class="ttdoc">Update the port properties.</div><div class="ttdef"><b>Definition:</b> port.c:474</div></div>
<div class="ttc" id="port_8h_html_a2461fe53d57c257892e36e7d37ae3e24"><div class="ttname"><a href="port_8h.html#a2461fe53d57c257892e36e7d37ae3e24">pw_port_get_id</a></div><div class="ttdeci">uint32_t pw_port_get_id(struct pw_port *port)</div><div class="ttdoc">Get the port id.</div><div class="ttdef"><b>Definition:</b> port.c:462</div></div>
<div class="ttc" id="introspect_8h_html"><div class="ttname"><a href="introspect_8h.html">introspect.h</a></div></div>
<div class="ttc" id="structpw__port__events_html_a1d93b05500a2b781e2c29b841b08ba30"><div class="ttname"><a href="structpw__port__events.html#a1d93b05500a2b781e2c29b841b08ba30">pw_port_events::link_added</a></div><div class="ttdeci">void(* link_added)(void *data, struct pw_link *link)</div><div class="ttdoc">a new link is added on this port</div><div class="ttdef"><b>Definition:</b> port.h:75</div></div>
<div class="ttc" id="classpw__link_html"><div class="ttname"><a href="classpw__link.html">pw_link</a></div><div class="ttdoc">PipeWire link object.</div></div>
<div class="ttc" id="structpw__properties_html_a70aa5816bde60f5511f2308971794881"><div class="ttname"><a href="structpw__properties.html#a70aa5816bde60f5511f2308971794881">pw_properties::dict</a></div><div class="ttdeci">struct spa_dict dict</div><div class="ttdoc">dictionary of key/values</div><div class="ttdef"><b>Definition:</b> properties.h:44</div></div>
<div class="ttc" id="core_8h_html"><div class="ttname"><a href="core_8h.html">core.h</a></div></div>
<div class="ttc" id="port_8h_html_adbdfd176064e149c49e7c4bbbdd1e3a6a4198e858d11461bc8b1ce179b579b537"><div class="ttname"><a href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6a4198e858d11461bc8b1ce179b579b537">PW_PORT_STATE_CONFIGURE</a></div><div class="ttdoc">the port is ready for format negotiation</div><div class="ttdef"><b>Definition:</b> port.h:55</div></div>
<div class="ttc" id="structpw__port__events_html_aafea670c82e6cf6c1a3d4c5e93d86e0a"><div class="ttname"><a href="structpw__port__events.html#aafea670c82e6cf6c1a3d4c5e93d86e0a">pw_port_events::state_changed</a></div><div class="ttdeci">void(* state_changed)(void *data, enum pw_port_state old, enum pw_port_state state, const char *error)</div><div class="ttdoc">the state of the port changed</div><div class="ttdef"><b>Definition:</b> port.h:81</div></div>
<div class="ttc" id="port_8h_html_a6d61253f97045f6452627a0de7e0a0fc"><div class="ttname"><a href="port_8h.html#a6d61253f97045f6452627a0de7e0a0fc">pw_port_add_listener</a></div><div class="ttdeci">void pw_port_add_listener(struct pw_port *port, struct spa_hook *listener, const struct pw_port_events *events, void *data)</div><div class="ttdoc">Add an event listener on the port.</div><div class="ttdef"><b>Definition:</b> port.c:496</div></div>
<div class="ttc" id="structpw__port__info_html"><div class="ttname"><a href="structpw__port__info.html">pw_port_info</a></div><div class="ttdef"><b>Definition:</b> introspect.h:196</div></div>
<div class="ttc" id="structpw__port__events_html_afc2735d24e0eb220a56690973c9f626c"><div class="ttname"><a href="structpw__port__events.html#afc2735d24e0eb220a56690973c9f626c">pw_port_events::info_changed</a></div><div class="ttdeci">void(* info_changed)(void *data, const struct pw_port_info *info)</div><div class="ttdoc">the port info changed</div><div class="ttdef"><b>Definition:</b> port.h:72</div></div>
<div class="ttc" id="classpw__control_html"><div class="ttname"><a href="classpw__control.html">pw_control</a></div><div class="ttdoc">The control object.</div></div>
<div class="ttc" id="structpw__port__events_html_ab9b6466b9ef1ed29b53c585e6d7d5885"><div class="ttname"><a href="structpw__port__events.html#ab9b6466b9ef1ed29b53c585e6d7d5885">pw_port_events::version</a></div><div class="ttdeci">uint32_t version</div><div class="ttdef"><b>Definition:</b> port.h:63</div></div>
<div class="ttc" id="port_8h_html_a265fceb6afcbf35100789c8604adb8ef"><div class="ttname"><a href="port_8h.html#a265fceb6afcbf35100789c8604adb8ef">pw_port_get_properties</a></div><div class="ttdeci">const struct pw_properties * pw_port_get_properties(struct pw_port *port)</div><div class="ttdoc">Get the port properties.</div><div class="ttdef"><b>Definition:</b> port.c:468</div></div>
<div class="ttc" id="structpw__port__events_html"><div class="ttname"><a href="structpw__port__events.html">pw_port_events</a></div><div class="ttdoc">Port events, use pw_port_add_listener.</div><div class="ttdef"><b>Definition:</b> port.h:61</div></div>
<div class="ttc" id="port_8h_html_adbdfd176064e149c49e7c4bbbdd1e3a6a0db5ddd15b188c1f747499c8d75f20c2"><div class="ttname"><a href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6a0db5ddd15b188c1f747499c8d75f20c2">PW_PORT_STATE_ERROR</a></div><div class="ttdoc">the port is in error</div><div class="ttdef"><b>Definition:</b> port.h:53</div></div>
<div class="ttc" id="port_8h_html_adbdfd176064e149c49e7c4bbbdd1e3a6"><div class="ttname"><a href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6">pw_port_state</a></div><div class="ttdeci">pw_port_state</div><div class="ttdef"><b>Definition:</b> port.h:52</div></div>
<div class="ttc" id="port_8h_html_adbdfd176064e149c49e7c4bbbdd1e3a6a15f1ec0a36d9e4f9dd3d7304243044a9"><div class="ttname"><a href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6a15f1ec0a36d9e4f9dd3d7304243044a9">PW_PORT_STATE_PAUSED</a></div><div class="ttdoc">the port is paused</div><div class="ttdef"><b>Definition:</b> port.h:57</div></div>
<div class="ttc" id="structpw__port__events_html_a757cc045456c8c2cdae36a8e787ac5d3"><div class="ttname"><a href="structpw__port__events.html#a757cc045456c8c2cdae36a8e787ac5d3">pw_port_events::free</a></div><div class="ttdeci">void(* free)(void *data)</div><div class="ttdoc">The port is freed.</div><div class="ttdef"><b>Definition:</b> port.h:69</div></div>
<div class="ttc" id="port_8h_html_adbdfd176064e149c49e7c4bbbdd1e3a6ae71d3a847559a838fe9bd5bf8c07faa2"><div class="ttname"><a href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6ae71d3a847559a838fe9bd5bf8c07faa2">PW_PORT_STATE_READY</a></div><div class="ttdoc">the port is ready for buffer allocation</div><div class="ttdef"><b>Definition:</b> port.h:56</div></div>
<div class="ttc" id="structcontrol_html"><div class="ttname"><a href="structcontrol.html">control</a></div><div class="ttdef"><b>Definition:</b> stream.c:84</div></div>
<div class="ttc" id="structpw__port__events_html_ac25f071f63392c69328dfa829be044e3"><div class="ttname"><a href="structpw__port__events.html#ac25f071f63392c69328dfa829be044e3">pw_port_events::destroy</a></div><div class="ttdeci">void(* destroy)(void *data)</div><div class="ttdoc">The port is destroyed.</div><div class="ttdef"><b>Definition:</b> port.h:66</div></div>
<div class="ttc" id="port_8h_html_a53aab0d888eb07c1543dee1c55e5c681"><div class="ttname"><a href="port_8h.html#a53aab0d888eb07c1543dee1c55e5c681">pw_port_get_direction</a></div><div class="ttdeci">enum pw_direction pw_port_get_direction(struct pw_port *port)</div><div class="ttdoc">Get the port direction.</div><div class="ttdef"><b>Definition:</b> port.c:456</div></div>
<div class="ttc" id="classpw__node_html"><div class="ttname"><a href="classpw__node.html">pw_node</a></div><div class="ttdoc">PipeWire node class.</div></div>
<div class="ttc" id="port_8h_html_a501ca4956581fbd1a4fe94f3b46d1dec"><div class="ttname"><a href="port_8h.html#a501ca4956581fbd1a4fe94f3b46d1dec">pw_port_get_node</a></div><div class="ttdeci">struct pw_node * pw_port_get_node(struct pw_port *port)</div><div class="ttdoc">Get the port parent node or NULL when not yet set.</div><div class="ttdef"><b>Definition:</b> port.c:490</div></div>
<div class="ttc" id="port_8h_html_adbdfd176064e149c49e7c4bbbdd1e3a6a921e399f53a6dd90a1721022d87931ca"><div class="ttname"><a href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6a921e399f53a6dd90a1721022d87931ca">PW_PORT_STATE_INIT</a></div><div class="ttdoc">the port is being created</div><div class="ttdef"><b>Definition:</b> port.h:54</div></div>
<div class="ttc" id="structpw__port__events_html_a0dcfa2b27d020b541a72315693e372fd"><div class="ttname"><a href="structpw__port__events.html#a0dcfa2b27d020b541a72315693e372fd">pw_port_events::link_removed</a></div><div class="ttdeci">void(* link_removed)(void *data, struct pw_link *link)</div><div class="ttdoc">a link is removed from this port</div><div class="ttdef"><b>Definition:</b> port.h:78</div></div>
<div class="ttc" id="classpw__port_html"><div class="ttname"><a href="classpw__port.html">pw_port</a></div><div class="ttdoc">The port object.</div></div>
<div class="ttc" id="structpw__port__events_html_ad5a3e7eac86a39b78be8736cbad37d13"><div class="ttname"><a href="structpw__port__events.html#ad5a3e7eac86a39b78be8736cbad37d13">pw_port_events::control_added</a></div><div class="ttdeci">void(* control_added)(void *data, struct pw_control *control)</div><div class="ttdoc">a control was added to the port</div><div class="ttdef"><b>Definition:</b> port.h:85</div></div>
<div class="ttc" id="structpw__port__events_html_ac6376ddcd1537b31549bfbe03b801574"><div class="ttname"><a href="structpw__port__events.html#ac6376ddcd1537b31549bfbe03b801574">pw_port_events::control_removed</a></div><div class="ttdeci">void(* control_removed)(void *data, struct pw_control *control)</div><div class="ttdoc">a control was removed from the port</div><div class="ttdef"><b>Definition:</b> port.h:88</div></div>
<div class="ttc" id="introspect_8h_html_a6e9e847059d68cbdb608abc8eb6b631d"><div class="ttname"><a href="introspect_8h.html#a6e9e847059d68cbdb608abc8eb6b631d">pw_direction</a></div><div class="ttdeci">pw_direction</div><div class="ttdoc">The direction of a port.</div><div class="ttdef"><b>Definition:</b> introspect.h:52</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><!-- 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="port_8h.html">port.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>