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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
|
<!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: pw_core Class Reference</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&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
 <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&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&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpw__core.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<div class="title">pw_core Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>the core PipeWire object
<a href="classpw__core.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a149d054319a8cd3fb6206b233d2476cd"><td class="memItemLeft" align="right" valign="top">SPA_EXPORT struct <a class="el" href="classpw__core.html">pw_core</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classpw__core.html#a149d054319a8cd3fb6206b233d2476cd">pw_core_new</a> (struct <a class="el" href="structpw__loop.html">pw_loop</a> *main_loop, struct <a class="el" href="structpw__properties.html">pw_properties</a> *properties, size_t user_data_size)</td></tr>
<tr class="memdesc:a149d054319a8cd3fb6206b233d2476cd"><td class="mdescLeft"> </td><td class="mdescRight">Create a new core object. <a href="#a149d054319a8cd3fb6206b233d2476cd">More...</a><br /></td></tr>
<tr class="separator:a149d054319a8cd3fb6206b233d2476cd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3fe8a902e97223d11c0e8e4640c16379"><td class="memItemLeft" align="right" valign="top">SPA_EXPORT void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpw__core.html#a3fe8a902e97223d11c0e8e4640c16379">pw_core_destroy</a> (struct <a class="el" href="classpw__core.html">pw_core</a> *core)</td></tr>
<tr class="memdesc:a3fe8a902e97223d11c0e8e4640c16379"><td class="mdescLeft"> </td><td class="mdescRight">Destroy a core object. <a href="#a3fe8a902e97223d11c0e8e4640c16379">More...</a><br /></td></tr>
<tr class="separator:a3fe8a902e97223d11c0e8e4640c16379"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9f93e4947d5c6c6beba5030f6ca4c4d4"><td class="memItemLeft" align="right" valign="top">SPA_EXPORT int </td><td class="memItemRight" valign="bottom"><a class="el" href="classpw__core.html#a9f93e4947d5c6c6beba5030f6ca4c4d4">pw_core_update_properties</a> (struct <a class="el" href="classpw__core.html">pw_core</a> *core, const struct spa_dict *dict)</td></tr>
<tr class="memdesc:a9f93e4947d5c6c6beba5030f6ca4c4d4"><td class="mdescLeft"> </td><td class="mdescRight">Update core properties. <a href="#a9f93e4947d5c6c6beba5030f6ca4c4d4">More...</a><br /></td></tr>
<tr class="separator:a9f93e4947d5c6c6beba5030f6ca4c4d4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5d492e950bb2c4bbb47c3aa2ad348e66"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="classpw__port.html">pw_port</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classpw__core.html#a5d492e950bb2c4bbb47c3aa2ad348e66">pw_core_find_port</a> (struct <a class="el" href="classpw__core.html">pw_core</a> *core, struct <a class="el" href="classpw__port.html">pw_port</a> *other_port, uint32_t id, struct <a class="el" href="structpw__properties.html">pw_properties</a> *<a class="el" href="structprops.html">props</a>, uint32_t n_format_filters, struct spa_pod **format_filters, char **error)</td></tr>
<tr class="memdesc:a5d492e950bb2c4bbb47c3aa2ad348e66"><td class="mdescLeft"> </td><td class="mdescRight">Find a port to link with. <a href="#a5d492e950bb2c4bbb47c3aa2ad348e66">More...</a><br /></td></tr>
<tr class="separator:a5d492e950bb2c4bbb47c3aa2ad348e66"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab69bdeb136a9020b68cefce3587b3adf"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classpw__core.html#ab69bdeb136a9020b68cefce3587b3adf">pw_core_find_format</a> (struct <a class="el" href="classpw__core.html">pw_core</a> *core, struct <a class="el" href="classpw__port.html">pw_port</a> *output, struct <a class="el" href="classpw__port.html">pw_port</a> *input, struct <a class="el" href="structpw__properties.html">pw_properties</a> *<a class="el" href="structprops.html">props</a>, uint32_t n_format_filters, struct spa_pod **format_filters, struct spa_pod **format, struct spa_pod_builder *builder, char **error)</td></tr>
<tr class="memdesc:ab69bdeb136a9020b68cefce3587b3adf"><td class="mdescLeft"> </td><td class="mdescRight">Find a common format between two ports. <a href="#ab69bdeb136a9020b68cefce3587b3adf">More...</a><br /></td></tr>
<tr class="separator:ab69bdeb136a9020b68cefce3587b3adf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abffc2dad96073f10fb01a701789b0a6a"><td class="memItemLeft" align="right" valign="top">SPA_EXPORT struct <a class="el" href="classpw__factory.html">pw_factory</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classpw__core.html#abffc2dad96073f10fb01a701789b0a6a">pw_core_find_factory</a> (struct <a class="el" href="classpw__core.html">pw_core</a> *core, const char *name)</td></tr>
<tr class="memdesc:abffc2dad96073f10fb01a701789b0a6a"><td class="mdescLeft"> </td><td class="mdescRight">Find a factory by name. <a href="#abffc2dad96073f10fb01a701789b0a6a">More...</a><br /></td></tr>
<tr class="separator:abffc2dad96073f10fb01a701789b0a6a"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>the core PipeWire object </p>
<p>The core object manages all available resources.</p>
<p>See <a class="el" href="page_core_api.html">Core API</a> </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a3fe8a902e97223d11c0e8e4640c16379"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fe8a902e97223d11c0e8e4640c16379">◆ </a></span>pw_core_destroy()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">SPA_EXPORT void pw_core_destroy </td>
<td>(</td>
<td class="paramtype">struct <a class="el" href="classpw__core.html">pw_core</a> * </td>
<td class="paramname"><em>core</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Destroy a core object. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">core</td><td>a core to destroy </td></tr>
</table>
</dd>
</dl>
<p class="reference">References <a class="el" href="array_8h.html#aa960ca693013e1b7fce13b0968db70b8">pw_array_for_each</a>, <a class="el" href="classpw__data__loop.html#a9e8300a978c0a9ecefb54dc6b23f333c">pw_data_loop::pw_data_loop_destroy()</a>, <a class="el" href="device_8h.html#a3f8d111095ba4fee857b469727ef98ae">pw_device_destroy()</a>, <a class="el" href="classpw__global.html#a57e86d7712b658ee7d2e0f73cfcb9db5">pw_global::pw_global_destroy()</a>, <a class="el" href="classpw__log.html#a98a49c37f11de525890014e927e34d02">pw_log::pw_log_debug</a>, <a class="el" href="mem_8h.html#ab253128cb2d2bc7ad5203d2b65e762c8">pw_mempool_destroy()</a>, <a class="el" href="classpw__module.html#aeb91aaec73271350e79774d753202045">pw_module::pw_module_destroy()</a>, <a class="el" href="classpw__node.html#a797514cde71af23b5a27744d951ca83a">pw_node::pw_node_destroy()</a>, <a class="el" href="structpw__properties.html#a6473c3fdc688733f1db2e8d645ba94f4">pw_properties::pw_properties_free()</a>, <a class="el" href="classpw__remote.html#a512639c335f32485de2291f03ae03cdc">pw_remote::pw_remote_destroy()</a>, <a class="el" href="resource_8h.html#ab9e159d75b7efe39bd53b64055244092">pw_resource_destroy()</a>, and <a class="el" href="pipewire_8h.html#af3d7686492ea5032eb135cddf21d3da2">pw_unload_spa_handle()</a>.</p>
<p class="reference">Referenced by <a class="el" href="stream_8c.html#a0aa398ef7b09697a0e48719b27112614">pw_stream_new_simple()</a>.</p>
</div>
</div>
<a id="abffc2dad96073f10fb01a701789b0a6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abffc2dad96073f10fb01a701789b0a6a">◆ </a></span>pw_core_find_factory()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">SPA_EXPORT struct <a class="el" href="classpw__factory.html">pw_factory</a> * pw_core_find_factory </td>
<td>(</td>
<td class="paramtype">struct <a class="el" href="classpw__core.html">pw_core</a> * </td>
<td class="paramname"><em>core</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>name</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Find a factory by name. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">core</td><td>the core object </td></tr>
<tr><td class="paramname">name</td><td>the name of the factory to find</td></tr>
</table>
</dd>
</dl>
<p>Find in the list of factories registered in <em>core</em> for one with the given <em>name</em>. </p>
</div>
</div>
<a id="ab69bdeb136a9020b68cefce3587b3adf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab69bdeb136a9020b68cefce3587b3adf">◆ </a></span>pw_core_find_format()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int pw_core_find_format </td>
<td>(</td>
<td class="paramtype">struct <a class="el" href="classpw__core.html">pw_core</a> * </td>
<td class="paramname"><em>core</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct <a class="el" href="classpw__port.html">pw_port</a> * </td>
<td class="paramname"><em>output</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct <a class="el" href="classpw__port.html">pw_port</a> * </td>
<td class="paramname"><em>input</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct <a class="el" href="structpw__properties.html">pw_properties</a> * </td>
<td class="paramname"><em>props</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t </td>
<td class="paramname"><em>n_format_filters</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct spa_pod ** </td>
<td class="paramname"><em>format_filters</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct spa_pod ** </td>
<td class="paramname"><em>format</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct spa_pod_builder * </td>
<td class="paramname"><em>builder</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char ** </td>
<td class="paramname"><em>error</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Find a common format between two ports. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir"></td><td class="paramname">core</td><td>a core object </td></tr>
<tr><td class="paramdir"></td><td class="paramname">output</td><td>an output port </td></tr>
<tr><td class="paramdir"></td><td class="paramname">input</td><td>an input port </td></tr>
<tr><td class="paramdir"></td><td class="paramname">props</td><td>extra properties </td></tr>
<tr><td class="paramdir"></td><td class="paramname">n_format_filters</td><td>number of format filters </td></tr>
<tr><td class="paramdir"></td><td class="paramname">format_filters</td><td>array of format filters </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">error</td><td>an error when something is wrong </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a common format of NULL on error</dd></dl>
<p>Find a common format between the given ports. The format will be restricted to a subset given with the format filters. </p>
<p class="reference">References <a class="el" href="classpw__log.html#a98a49c37f11de525890014e927e34d02">pw_log::pw_log_debug</a>, <a class="el" href="classpw__log.html#a66c4dbcfe71f20642b74e4ec1576ac2a">pw_log::pw_log_level_enabled</a>, <a class="el" href="introspect_8h.html#ac493839c0b0a1d0b935969f2e990a2dfa801ee69d0b0c9d30b12ff89daae9a075">PW_NODE_STATE_IDLE</a>, and <a class="el" href="port_8h.html#adbdfd176064e149c49e7c4bbbdd1e3a6a4198e858d11461bc8b1ce179b579b537">PW_PORT_STATE_CONFIGURE</a>.</p>
<p class="reference">Referenced by <a class="el" href="classpw__core.html#a5d492e950bb2c4bbb47c3aa2ad348e66">pw_core_find_port()</a>.</p>
</div>
</div>
<a id="a5d492e950bb2c4bbb47c3aa2ad348e66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d492e950bb2c4bbb47c3aa2ad348e66">◆ </a></span>pw_core_find_port()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">struct <a class="el" href="classpw__port.html">pw_port</a> * pw_core_find_port </td>
<td>(</td>
<td class="paramtype">struct <a class="el" href="classpw__core.html">pw_core</a> * </td>
<td class="paramname"><em>core</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct <a class="el" href="classpw__port.html">pw_port</a> * </td>
<td class="paramname"><em>other_port</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t </td>
<td class="paramname"><em>id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct <a class="el" href="structpw__properties.html">pw_properties</a> * </td>
<td class="paramname"><em>props</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t </td>
<td class="paramname"><em>n_format_filters</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct spa_pod ** </td>
<td class="paramname"><em>format_filters</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char ** </td>
<td class="paramname"><em>error</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Find a port to link with. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir"></td><td class="paramname">core</td><td>a core </td></tr>
<tr><td class="paramdir"></td><td class="paramname">other_port</td><td>a port to find a link with </td></tr>
<tr><td class="paramdir"></td><td class="paramname">id</td><td>the id of a port or SPA_ID_INVALID </td></tr>
<tr><td class="paramdir"></td><td class="paramname">props</td><td>extra properties </td></tr>
<tr><td class="paramdir"></td><td class="paramname">n_format_filters</td><td>number of filters </td></tr>
<tr><td class="paramdir"></td><td class="paramname">format_filters</td><td>array of format filters </td></tr>
<tr><td class="paramdir">[out]</td><td class="paramname">error</td><td>an error when something is wrong </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a port that can be used to link to <em>otherport</em> or NULL on error </dd></dl>
<p class="reference">References <a class="el" href="classpw__core.html#ab69bdeb136a9020b68cefce3587b3adf">pw_core_find_format()</a>, <a class="el" href="introspect_8h.html#a6e9e847059d68cbdb608abc8eb6b631da08983f9bf02a2e66e0ea838631d64ebe">PW_DIRECTION_OUTPUT</a>, <a class="el" href="classpw__pipewire.html#a9d9479e374690765eb875840b450b371">pw_pipewire::pw_direction_reverse()</a>, <a class="el" href="global_8h.html#ab983a411d18d68fa3025180fb49f321d">pw_global_get_permissions()</a>, <a class="el" href="classpw__log.html#a98a49c37f11de525890014e927e34d02">pw_log::pw_log_debug</a>, <a class="el" href="node_8h.html#ae457b2a0a17339a0ea724fb7248792d3">pw_node_find_port()</a>, and <a class="el" href="permission_8h.html#a2668b1c9a4b1e4b68fefe81e55d1ee59">PW_PERM_IS_R</a>.</p>
</div>
</div>
<a id="a149d054319a8cd3fb6206b233d2476cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a149d054319a8cd3fb6206b233d2476cd">◆ </a></span>pw_core_new()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">SPA_EXPORT struct <a class="el" href="classpw__core.html">pw_core</a> * pw_core_new </td>
<td>(</td>
<td class="paramtype">struct <a class="el" href="structpw__loop.html">pw_loop</a> * </td>
<td class="paramname"><em>main_loop</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct <a class="el" href="structpw__properties.html">pw_properties</a> * </td>
<td class="paramname"><em>properties</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>user_data_size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new core object. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">main_loop</td><td>the main loop to use </td></tr>
<tr><td class="paramname">properties</td><td>extra properties for the core, ownership it taken </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a newly allocated core object </dd></dl>
<p class="reference">References <a class="el" href="structpw__properties.html#a70aa5816bde60f5511f2308971794881">pw_properties::dict</a>, <a class="el" href="structpw__loop.html#a4624741580712c167c17bd9242be003f">pw_loop::loop</a>, <a class="el" href="structpw__array.html#a41905dd179bcee03cceef47579e0a22e">pw_array::pw_array_init()</a>, <a class="el" href="data-loop_8h.html#a6761f26b6c77a8f5ada552077f3fbd2c">pw_data_loop_get_loop()</a>, <a class="el" href="classpw__data__loop.html#aa81641e625a0d12db3ac1e9fa037809c">pw_data_loop::pw_data_loop_new()</a>, <a class="el" href="classpw__data__loop.html#a1ca9b85ed7dde1f8f011f2d47dd87dab">pw_data_loop::pw_data_loop_start()</a>, <a class="el" href="classpw__pipewire.html#abfb1706b196cef280d0d9a189fcac57f">pw_pipewire::pw_get_host_name()</a>, <a class="el" href="pipewire_8c.html#adc79f7ce98fb706a36eb8a32de61b20c">pw_get_library_version()</a>, <a class="el" href="pipewire_8h.html#a0a42d8f153fc58df733f74e5bf9af251">pw_get_support()</a>, <a class="el" href="classpw__pipewire.html#a823e39140fc29c1d7303fa11f47111a2">pw_pipewire::pw_get_user_name()</a>, <a class="el" href="classpw__global.html#a70cf2ad61f1f9b7c1cb40a1ea6e73ce5">pw_global::pw_global_new()</a>, <a class="el" href="keys_8h.html#a7d8bfd1e173bfbb0360b7a59bd2ec68a">PW_KEY_CORE_NAME</a>, <a class="el" href="keys_8h.html#adaf914599e9ddeab31f925204323f678">PW_KEY_CORE_VERSION</a>, <a class="el" href="keys_8h.html#a9530cacf53a11083543fc8b0076d8b4b">PW_KEY_HOST_NAME</a>, <a class="el" href="keys_8h.html#a32748e803174c4983e3f5378fcbe0e87">PW_KEY_LIBRARY_NAME_DBUS</a>, <a class="el" href="keys_8h.html#ada76163a82aae28e7563c6c28eddc5ea">PW_KEY_LIBRARY_NAME_SYSTEM</a>, <a class="el" href="keys_8h.html#a42bba61b82c004dd909c1796633e936b">PW_KEY_USER_NAME</a>, <a class="el" href="pipewire_8h.html#accacb9b931e5e7d72c02987939f4edfd">pw_load_spa_handle()</a>, <a class="el" href="classpw__log.html#a98a49c37f11de525890014e927e34d02">pw_log::pw_log_debug</a>, <a class="el" href="classpw__log.html#a2d2c2dc7d35b7104f5caef08df416767">pw_log::pw_log_warn</a>, <a class="el" href="structpw__map.html#acdd13c22e79cecf19a28d30e1154d323">pw_map::pw_map_init()</a>, <a class="el" href="mem_8h.html#ae5e42242439fef39fd696db151642513">pw_mempool_new()</a>, <a class="el" href="structpw__properties.html#a674f4f6bd81ec0b229c0b6af88774b7a">pw_properties::pw_properties_copy()</a>, <a class="el" href="structpw__properties.html#aef040055887634f636bb26594091c31c">pw_properties::pw_properties_get()</a>, <a class="el" href="structpw__properties.html#aea9bdd771760e44ca7d77b5113297610">pw_properties::pw_properties_new()</a>, <a class="el" href="structpw__properties.html#a30bb01472ad7feccd59e8b589e2896ee">pw_properties::pw_properties_set()</a>, <a class="el" href="structpw__properties.html#a24c715aa1d9eec46b7ebef61410d6f13">pw_properties::pw_properties_setf()</a>, <a class="el" href="type_8h.html#a06fc87d81c62e9abb8790b6e5713c55ba4c479616e546e814c019fd061e06010c">PW_TYPE_INTERFACE_Core</a>, <a class="el" href="interfaces_8h.html#a0e448047d35967113b998048a4a5495e">PW_VERSION_CORE_PROXY</a>, <a class="el" href="structpw__loop.html#abab71679705176a16c9e27b3115701c3">pw_loop::system</a>, <a class="el" href="structimpl.html#a6eaec9ea671abe6434946657ac2f1bae">impl::this</a>, and <a class="el" href="structpw__loop.html#ad34e8c247c5a3e9760b1c0fb33a7cc2f">pw_loop::utils</a>.</p>
<p class="reference">Referenced by <a class="el" href="stream_8c.html#a0aa398ef7b09697a0e48719b27112614">pw_stream_new_simple()</a>.</p>
</div>
</div>
<a id="a9f93e4947d5c6c6beba5030f6ca4c4d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f93e4947d5c6c6beba5030f6ca4c4d4">◆ </a></span>pw_core_update_properties()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">SPA_EXPORT int pw_core_update_properties </td>
<td>(</td>
<td class="paramtype">struct <a class="el" href="classpw__core.html">pw_core</a> * </td>
<td class="paramname"><em>core</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const struct spa_dict * </td>
<td class="paramname"><em>dict</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Update core properties. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">core</td><td>a core </td></tr>
<tr><td class="paramname">dict</td><td>properties to update</td></tr>
</table>
</dd>
</dl>
<p>Update the core object with the given properties </p>
<p class="reference">References <a class="el" href="introspect_8h.html#a787755cfb5d235fa3a961bcc7f65b3a8">PW_CORE_CHANGE_MASK_PROPS</a>, <a class="el" href="classpw__log.html#a98a49c37f11de525890014e927e34d02">pw_log::pw_log_debug</a>, and <a class="el" href="structpw__properties.html#a15a72cca30ebffc472fb46cfa8b22c43">pw_properties::pw_properties_update()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="core_8h_source.html">core.h</a></li>
<li><a class="el" href="core_8c.html">core.c</a></li>
</ul>
</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="classpw__core.html">pw_core</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>
|