aboutsummaryrefslogtreecommitdiffstats
path: root/doc/api-ref/html/soundmanager_8h_source.html
blob: b8e9098243d693ca149c118e31f4063de9c6ab39 (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
118
119
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.11"/>
<title>Sound Manager: /home/mitsunari/work/gerrit/agl-src/agl-service-soundmanager-2017/src/soundmanager.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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</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">Sound Manager
   &#160;<span id="projectnumber">0.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">soundmanager.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="soundmanager_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">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2017 TOYOTA MOTOR CORPORATION</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * you may not use this file except in compliance with the License.</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * You may obtain a copy of the License at</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *      http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * See the License for the specific language governing permissions and</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * limitations under the License.</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;</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#ifndef SOUNDMANAGER_H</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#define SOUNDMANAGER_H</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define _GNU_SOURCE</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#define AFB_BINDING_VERSION 2</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;afb/afb-binding.h&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;dbus/audio_manager_interface.h&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="structevent.html">   29</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structevent.html">event</a>{</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keywordtype">char</span>* name;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keyword">struct </span>afb_event* <a class="code" href="structevent.html">event</a>;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    };</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment">********** Method of Sound Manager (API) **********</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</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="soundmanager_8h.html#a7ee1dc75adf60b3c8103eb2952e9d43a">connect</a> (<span class="keyword">struct</span> afb_req request);</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#a1163f003156022724b3b63b6ee2a22a9">disconnect</a> (<span class="keyword">struct</span> afb_req request);</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#a46e6977f600ea8966d9564c73d5af1b8">setVolume</a> (<span class="keyword">struct</span> afb_req request);</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#aac0462f29094b70d2f5313ecef5f822c">volumeStep</a> (<span class="keyword">struct</span> afb_req request);</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#a2c805469264f9acca25fc743bb1d8766">setSinkMuteState</a>(<span class="keyword">struct</span> afb_req request);</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#a3ad86d9e9c674a5175592f6fc8609180">getListMainConnections</a>(<span class="keyword">struct</span> afb_req request);</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#a3ea295d5eddd5374d8e14a4b644bef2a">getListMainSources</a>(<span class="keyword">struct</span> afb_req request);</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#aa64808b1a049f3b51e69d28354584970">getListMainSinks</a>(<span class="keyword">struct</span> afb_req request);</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#a78d54418197fb8e8eabfc38ce72b4686">ackConnect</a>(<span class="keyword">struct</span> afb_req request);</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#a00a381a9071af396dae663d9f562864a">ackDisconnect</a>(<span class="keyword">struct</span> afb_req request);</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#ab2c237e1ace8880ff529cb741972a52d">ackSetSourceState</a>(<span class="keyword">struct</span> afb_req request);</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#a42998e5cc065baf3b80177d9501ca40f">registerSource</a>(<span class="keyword">struct</span> afb_req request);</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#a7d6b772364b9ccd4b4f5c0a124f30901">deregisterSource</a>(<span class="keyword">struct</span> afb_req request);</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#ae65575dec31b2cda45bf5ad147b0f56c">subscribe</a>(<span class="keyword">struct</span> afb_req request);</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#ab7f3bbf32f0b968deca03b2f05bd6e9f">unsubscribe</a>(<span class="keyword">struct</span> afb_req request);</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#a2faf87479e039a21c0030f4b4108266f">streamOpen</a>(<span class="keyword">struct</span> afb_req req);</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#abe001967a59ef3a10d048f570876b336">streamClose</a>(<span class="keyword">struct</span> afb_req req);</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;<span class="keywordtype">void</span> <a class="code" href="soundmanager_8h.html#af7d1de5a540b5c89edfa74a7004d8f14">setStreamState</a>(<span class="keyword">struct</span> afb_req req);</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;<span class="comment">********** Event list from Sound Manager **********</span></div><div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;<span class="comment">********** Application Framework Imprement **********</span></div><div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;<span class="comment">*/</span></div><div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;</div><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;<span class="comment"> * array of the verbs exported to afb-daemon</span></div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span>afb_verb_v2 binding_verbs[]= {</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;<span class="comment">// High Level API of AGL</span></div><div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;{ .verb = <span class="stringliteral">&quot;stream_open&quot;</span>,            .callback = <a class="code" href="soundmanager_8h.html#a2faf87479e039a21c0030f4b4108266f">streamOpen</a>,             .auth = NULL,</div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;                .info = <span class="stringliteral">&quot;Open stream.&quot;</span> ,                 .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;{ .verb = <span class="stringliteral">&quot;stream_close&quot;</span>,           .callback = <a class="code" href="soundmanager_8h.html#abe001967a59ef3a10d048f570876b336">streamClose</a>,            .auth = NULL,</div><div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;                .info = <span class="stringliteral">&quot;Close stream&quot;</span> ,       .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;{ .verb = <span class="stringliteral">&quot;set_stream_state&quot;</span>,       .callback = <a class="code" href="soundmanager_8h.html#af7d1de5a540b5c89edfa74a7004d8f14">setStreamState</a>,         .auth = NULL,</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;                .info = <span class="stringliteral">&quot;Set stream state&quot;</span> ,             .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;<span class="comment">// Adaption API of Audio Manager</span></div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;{ .verb = <span class="stringliteral">&quot;connect&quot;</span>,                .callback = <a class="code" href="soundmanager_8h.html#a7ee1dc75adf60b3c8103eb2952e9d43a">connect</a>,                .auth = NULL,</div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;                .info = <span class="stringliteral">&quot;Connect source id and sink id&quot;</span> ,       .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;{ .verb = <span class="stringliteral">&quot;disconnect&quot;</span>,             .callback = <a class="code" href="soundmanager_8h.html#a1163f003156022724b3b63b6ee2a22a9">disconnect</a>,             .auth = NULL,</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;                .info = <span class="stringliteral">&quot;Disconnect source id and sink id&quot;</span> ,    .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;{ .verb = <span class="stringliteral">&quot;setVolume&quot;</span>,              .callback = <a class="code" href="soundmanager_8h.html#a46e6977f600ea8966d9564c73d5af1b8">setVolume</a>,              .auth = NULL,</div><div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;                .info = <span class="stringliteral">&quot;Set volume value&quot;</span> ,                    .session = AFB_SESSION_NONE}, <span class="comment">/* it is better to show the range*/</span></div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;{ .verb = <span class="stringliteral">&quot;volumeStep&quot;</span>,             .callback = <a class="code" href="soundmanager_8h.html#aac0462f29094b70d2f5313ecef5f822c">volumeStep</a>,             .auth = NULL,</div><div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;                .info = <span class="stringliteral">&quot;Set volume step range&quot;</span> ,               .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;{ .verb = <span class="stringliteral">&quot;setSinkMuteState&quot;</span>,       .callback = <a class="code" href="soundmanager_8h.html#a2c805469264f9acca25fc743bb1d8766">setSinkMuteState</a>,       .auth = NULL,</div><div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;                .info = <span class="stringliteral">&quot;Set Mute state: 1 means mute, 2 means umute. Others are invalid&quot;</span> ,.session = AFB_SESSION_NONE},</div><div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;{ .verb = <span class="stringliteral">&quot;getListMainConnections&quot;</span>, .callback = <a class="code" href="soundmanager_8h.html#a3ad86d9e9c674a5175592f6fc8609180">getListMainConnections</a>, .auth = NULL,</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;                .info = <span class="stringliteral">&quot;Get MainConnection List&quot;</span> ,             .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;{ .verb = <span class="stringliteral">&quot;getListMainSinks&quot;</span>,       .callback = <a class="code" href="soundmanager_8h.html#aa64808b1a049f3b51e69d28354584970">getListMainSinks</a>,       .auth = NULL,</div><div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;                .info = <span class="stringliteral">&quot;Get MainSink List&quot;</span> ,                   .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;{ .verb = <span class="stringliteral">&quot;getListMainSources&quot;</span>,       .callback = <a class="code" href="soundmanager_8h.html#a3ea295d5eddd5374d8e14a4b644bef2a">getListMainSources</a>,       .auth = NULL,</div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;                .info = <span class="stringliteral">&quot;Get MainSource List&quot;</span> ,                   .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;{ .verb = <span class="stringliteral">&quot;registerSource&quot;</span>,         .callback = <a class="code" href="soundmanager_8h.html#a42998e5cc065baf3b80177d9501ca40f">registerSource</a>,         .auth = NULL,</div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;                .info = <span class="stringliteral">&quot;Register autio role&quot;</span> ,                .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;{ .verb = <span class="stringliteral">&quot;deregisterSource&quot;</span>,       .callback = <a class="code" href="soundmanager_8h.html#a7d6b772364b9ccd4b4f5c0a124f30901">deregisterSource</a>,       .auth = NULL,</div><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;                .info = <span class="stringliteral">&quot;Deregister audio role&quot;</span> ,              .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;{ .verb = <span class="stringliteral">&quot;ackConnect&quot;</span>,             .callback = <a class="code" href="soundmanager_8h.html#a78d54418197fb8e8eabfc38ce72b4686">ackConnect</a>,             .auth = NULL,</div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;                .info = <span class="stringliteral">&quot;Acknowledge of asyncConnect&quot;</span> ,         .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;{ .verb = <span class="stringliteral">&quot;ackDisconnect&quot;</span>,          .callback = <a class="code" href="soundmanager_8h.html#a00a381a9071af396dae663d9f562864a">ackDisconnect</a>,          .auth = NULL,</div><div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;                .info = <span class="stringliteral">&quot;Acknowledge of asyncConnect&quot;</span> ,         .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;{ .verb = <span class="stringliteral">&quot;ackSetSourceState&quot;</span>,      .callback = <a class="code" href="soundmanager_8h.html#ab2c237e1ace8880ff529cb741972a52d">ackSetSourceState</a>,      .auth = NULL,</div><div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;                .info = <span class="stringliteral">&quot;Acknowledge of asyncSetSourceState&quot;</span> ,  .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;{ .verb = <span class="stringliteral">&quot;subscribe&quot;</span>,              .callback = <a class="code" href="soundmanager_8h.html#ae65575dec31b2cda45bf5ad147b0f56c">subscribe</a>,              .auth = NULL,</div><div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;                .info = <span class="stringliteral">&quot;Subscribe event&quot;</span> ,                     .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;{ .verb = <span class="stringliteral">&quot;unsubscribe&quot;</span>,            .callback = <a class="code" href="soundmanager_8h.html#ab7f3bbf32f0b968deca03b2f05bd6e9f">unsubscribe</a>,            .auth = NULL,</div><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;                .info = <span class="stringliteral">&quot;Unsubscribe event&quot;</span> ,                   .session = AFB_SESSION_NONE},</div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;{ .verb = NULL } <span class="comment">/* marker for end of the array */</span>};</div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;<span class="keywordtype">int</span> preinit();</div><div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;<span class="keywordtype">int</span> sm_init();</div><div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;<span class="keywordtype">void</span> onevent(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structevent.html">event</a>, <span class="keyword">struct</span> json_object *<span class="keywordtype">object</span>);</div><div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;</div><div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;<span class="keyword">const</span> <span class="keyword">struct </span>afb_binding_v2 afbBindingV2 = {</div><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;    .api = <span class="stringliteral">&quot;soundmanager&quot;</span>,</div><div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;    .specification = NULL,</div><div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;    .verbs = binding_verbs,</div><div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;    .preinit = preinit,</div><div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;    .init = sm_init,</div><div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;    .onevent = onevent</div><div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;};</div><div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;</div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;<span class="preprocessor">#endif //SOUNDMANAGER_H</span></div><div class="ttc" id="soundmanager_8h_html_a78d54418197fb8e8eabfc38ce72b4686"><div class="ttname"><a href="soundmanager_8h.html#a78d54418197fb8e8eabfc38ce72b4686">ackConnect</a></div><div class="ttdeci">void ackConnect(struct afb_req request)</div></div>
<div class="ttc" id="soundmanager_8h_html_a2c805469264f9acca25fc743bb1d8766"><div class="ttname"><a href="soundmanager_8h.html#a2c805469264f9acca25fc743bb1d8766">setSinkMuteState</a></div><div class="ttdeci">void setSinkMuteState(struct afb_req request)</div></div>
<div class="ttc" id="structevent_html"><div class="ttname"><a href="structevent.html">event</a></div><div class="ttdef"><b>Definition:</b> <a href="soundmanager_8h_source.html#l00029">soundmanager.h:29</a></div></div>
<div class="ttc" id="soundmanager_8h_html_a2faf87479e039a21c0030f4b4108266f"><div class="ttname"><a href="soundmanager_8h.html#a2faf87479e039a21c0030f4b4108266f">streamOpen</a></div><div class="ttdeci">void streamOpen(struct afb_req req)</div></div>
<div class="ttc" id="soundmanager_8h_html_ae65575dec31b2cda45bf5ad147b0f56c"><div class="ttname"><a href="soundmanager_8h.html#ae65575dec31b2cda45bf5ad147b0f56c">subscribe</a></div><div class="ttdeci">void subscribe(struct afb_req request)</div></div>
<div class="ttc" id="soundmanager_8h_html_ab7f3bbf32f0b968deca03b2f05bd6e9f"><div class="ttname"><a href="soundmanager_8h.html#ab7f3bbf32f0b968deca03b2f05bd6e9f">unsubscribe</a></div><div class="ttdeci">void unsubscribe(struct afb_req request)</div></div>
<div class="ttc" id="soundmanager_8h_html_a00a381a9071af396dae663d9f562864a"><div class="ttname"><a href="soundmanager_8h.html#a00a381a9071af396dae663d9f562864a">ackDisconnect</a></div><div class="ttdeci">void ackDisconnect(struct afb_req request)</div></div>
<div class="ttc" id="soundmanager_8h_html_ab2c237e1ace8880ff529cb741972a52d"><div class="ttname"><a href="soundmanager_8h.html#ab2c237e1ace8880ff529cb741972a52d">ackSetSourceState</a></div><div class="ttdeci">void ackSetSourceState(struct afb_req request)</div></div>
<div class="ttc" id="soundmanager_8h_html_a3ea295d5eddd5374d8e14a4b644bef2a"><div class="ttname"><a href="soundmanager_8h.html#a3ea295d5eddd5374d8e14a4b644bef2a">getListMainSources</a></div><div class="ttdeci">void getListMainSources(struct afb_req request)</div></div>
<div class="ttc" id="soundmanager_8h_html_a1163f003156022724b3b63b6ee2a22a9"><div class="ttname"><a href="soundmanager_8h.html#a1163f003156022724b3b63b6ee2a22a9">disconnect</a></div><div class="ttdeci">void disconnect(struct afb_req request)</div></div>
<div class="ttc" id="soundmanager_8h_html_aac0462f29094b70d2f5313ecef5f822c"><div class="ttname"><a href="soundmanager_8h.html#aac0462f29094b70d2f5313ecef5f822c">volumeStep</a></div><div class="ttdeci">void volumeStep(struct afb_req request)</div></div>
<div class="ttc" id="soundmanager_8h_html_af7d1de5a540b5c89edfa74a7004d8f14"><div class="ttname"><a href="soundmanager_8h.html#af7d1de5a540b5c89edfa74a7004d8f14">setStreamState</a></div><div class="ttdeci">void setStreamState(struct afb_req req)</div></div>
<div class="ttc" id="soundmanager_8h_html_a42998e5cc065baf3b80177d9501ca40f"><div class="ttname"><a href="soundmanager_8h.html#a42998e5cc065baf3b80177d9501ca40f">registerSource</a></div><div class="ttdeci">void registerSource(struct afb_req request)</div></div>
<div class="ttc" id="soundmanager_8h_html_abe001967a59ef3a10d048f570876b336"><div class="ttname"><a href="soundmanager_8h.html#abe001967a59ef3a10d048f570876b336">streamClose</a></div><div class="ttdeci">void streamClose(struct afb_req req)</div></div>
<div class="ttc" id="soundmanager_8h_html_a7d6b772364b9ccd4b4f5c0a124f30901"><div class="ttname"><a href="soundmanager_8h.html#a7d6b772364b9ccd4b4f5c0a124f30901">deregisterSource</a></div><div class="ttdeci">void deregisterSource(struct afb_req request)</div></div>
<div class="ttc" id="soundmanager_8h_html_aa64808b1a049f3b51e69d28354584970"><div class="ttname"><a href="soundmanager_8h.html#aa64808b1a049f3b51e69d28354584970">getListMainSinks</a></div><div class="ttdeci">void getListMainSinks(struct afb_req request)</div></div>
<div class="ttc" id="soundmanager_8h_html_a7ee1dc75adf60b3c8103eb2952e9d43a"><div class="ttname"><a href="soundmanager_8h.html#a7ee1dc75adf60b3c8103eb2952e9d43a">connect</a></div><div class="ttdeci">void connect(struct afb_req request)</div></div>
<div class="ttc" id="soundmanager_8h_html_a46e6977f600ea8966d9564c73d5af1b8"><div class="ttname"><a href="soundmanager_8h.html#a46e6977f600ea8966d9564c73d5af1b8">setVolume</a></div><div class="ttdeci">void setVolume(struct afb_req request)</div></div>
<div class="ttc" id="soundmanager_8h_html_a3ad86d9e9c674a5175592f6fc8609180"><div class="ttname"><a href="soundmanager_8h.html#a3ad86d9e9c674a5175592f6fc8609180">getListMainConnections</a></div><div class="ttdeci">void getListMainConnections(struct afb_req request)</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>