<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://docs.yate.ro/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=Radio.create</id>
		<title>Radio.create - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://docs.yate.ro/wiki/index.php?action=history&amp;feed=atom&amp;title=Radio.create"/>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Radio.create&amp;action=history"/>
		<updated>2026-06-27T00:51:48Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.1</generator>

	<entry>
		<id>https://docs.yate.ro/wiki/index.php?title=Radio.create&amp;diff=8246&amp;oldid=prev</id>
		<title>Marian: Created page with &quot; '''radio.create''' is a message sent to request creation of a radio interface.  ===Parameters===  ;radio_driver :    Optional radio driver (module) name. If present only modu...&quot;</title>
		<link rel="alternate" type="text/html" href="https://docs.yate.ro/wiki/index.php?title=Radio.create&amp;diff=8246&amp;oldid=prev"/>
				<updated>2018-05-25T08:15:41Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; &amp;#039;&amp;#039;&amp;#039;radio.create&amp;#039;&amp;#039;&amp;#039; is a message sent to request creation of a radio interface.  ===Parameters===  ;radio_driver :    Optional radio driver (module) name. If present only modu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
'''radio.create''' is a message sent to request creation of a radio interface.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
&lt;br /&gt;
;radio_driver&lt;br /&gt;
:    Optional radio driver (module) name. If present only modules matching it will handle the message&lt;br /&gt;
;radio_params_prefix&lt;br /&gt;
:    Optional prefix for radio init parameters. Defaults to '''radio.'''&lt;br /&gt;
:    Message parameters starting with indicated prefix will be used to create the radio interface&lt;br /&gt;
&lt;br /&gt;
===Return===&lt;br /&gt;
&lt;br /&gt;
;Success (message dispatch return true)&lt;br /&gt;
:    A RadioInterface pointer is returned in '''interface''' parameter&lt;br /&gt;
;Failure (message dispatch return false)&lt;br /&gt;
:    '''code''' (RadioInterface error code) parameter may be returned along with other parameters describing the failure&lt;br /&gt;
&lt;br /&gt;
===Usage example===&lt;br /&gt;
&lt;br /&gt;
 Message m(&amp;quot;radio.create&amp;quot;);&lt;br /&gt;
 // Set some radio related params ...&lt;br /&gt;
 Engine::dispatch(m);&lt;br /&gt;
 NamedPointer* np = YOBJECT(NamedPointer,m.getParam(YSTRING(&amp;quot;interface&amp;quot;)));&lt;br /&gt;
 RadioInterface* r = np ? YOBJECT(RadioInterface,np) : 0;&lt;br /&gt;
 if (r) {&lt;br /&gt;
     // Remove pointer from 'np': take ownership&lt;br /&gt;
     np-&amp;gt;takeData();&lt;br /&gt;
     // Use the RadioInterface. You are owning the pointer now!&lt;br /&gt;
 }&lt;br /&gt;
 else {&lt;br /&gt;
     // Failure !&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Marian</name></author>	</entry>

	</feed>