Blob Blame History Raw
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>NMSettingWifiP2P: libnm Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="libnm Reference Manual">
<link rel="up" href="ch03.html" title="Connection and Setting API Reference">
<link rel="prev" href="NMSettingVxlan.html" title="NMSettingVxlan">
<link rel="next" href="NMSettingWimax.html" title="NMSettingWimax">
<meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#NMSettingWifiP2P.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch03.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="NMSettingVxlan.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="NMSettingWimax.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="NMSettingWifiP2P"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="NMSettingWifiP2P.top_of_page"></a>NMSettingWifiP2P</span></h2>
<p>NMSettingWifiP2P — Describes connection properties for 802.11 Wi-Fi P2P networks</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="NMSettingWifiP2P.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="NMSetting.html" title="NMSetting"><span class="returnvalue">NMSetting</span></a> *
</td>
<td class="function_name">
<a class="link" href="NMSettingWifiP2P.html#nm-setting-wifi-p2p-new" title="nm_setting_wifi_p2p_new ()">nm_setting_wifi_p2p_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="NMSettingWifiP2P.html#nm-setting-wifi-p2p-get-peer" title="nm_setting_wifi_p2p_get_peer ()">nm_setting_wifi_p2p_get_peer</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="NMSettingWirelessSecurity.html#NMSettingWirelessSecurityWpsMethod" title="enum NMSettingWirelessSecurityWpsMethod"><span class="returnvalue">NMSettingWirelessSecurityWpsMethod</span></a>
</td>
<td class="function_name">
<a class="link" href="NMSettingWifiP2P.html#nm-setting-wifi-p2p-get-wps-method" title="nm_setting_wifi_p2p_get_wps_method ()">nm_setting_wifi_p2p_get_wps_method</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="returnvalue">GBytes</span></a> *
</td>
<td class="function_name">
<a class="link" href="NMSettingWifiP2P.html#nm-setting-wifi-p2p-get-wfd-ies" title="nm_setting_wifi_p2p_get_wfd_ies ()">nm_setting_wifi_p2p_get_wfd_ies</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="NMSettingWifiP2P.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="other_proto_type">
<col class="other_proto_name">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="NMSettingWifiP2P.html#NM-SETTING-WIFI-P2P-SETTING-NAME:CAPS" title="NM_SETTING_WIFI_P2P_SETTING_NAME">NM_SETTING_WIFI_P2P_SETTING_NAME</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="NMSettingWifiP2P.html#NM-SETTING-WIFI-P2P-PEER:CAPS" title="NM_SETTING_WIFI_P2P_PEER">NM_SETTING_WIFI_P2P_PEER</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="NMSettingWifiP2P.html#NM-SETTING-WIFI-P2P-WPS-METHOD:CAPS" title="NM_SETTING_WIFI_P2P_WPS_METHOD">NM_SETTING_WIFI_P2P_WPS_METHOD</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="NMSettingWifiP2P.html#NM-SETTING-WIFI-P2P-WFD-IES:CAPS" title="NM_SETTING_WIFI_P2P_WFD_IES">NM_SETTING_WIFI_P2P_WFD_IES</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="NMSettingWifiP2P.description"></a><h2>Description</h2>
<p>The <a class="link" href="NMSettingWifiP2P.html" title="NMSettingWifiP2P"><span class="type">NMSettingWifiP2P</span></a> object is a <a class="link" href="NMSetting.html" title="NMSetting"><span class="type">NMSetting</span></a> subclass that describes properties
necessary for connection to 802.11 Wi-Fi P2P networks (aka Wi-Fi Direct).</p>
</div>
<div class="refsect1">
<a name="NMSettingWifiP2P.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="nm-setting-wifi-p2p-new"></a><h3>nm_setting_wifi_p2p_new ()</h3>
<pre class="programlisting"><a class="link" href="NMSetting.html" title="NMSetting"><span class="returnvalue">NMSetting</span></a> *
nm_setting_wifi_p2p_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Creates a new <a class="link" href="NMSettingWifiP2P.html" title="NMSettingWifiP2P"><span class="type">NMSettingWifiP2P</span></a> object with default values.</p>
<div class="refsect3">
<a name="nm-setting-wifi-p2p-new.returns"></a><h4>Returns</h4>
<p>the new empty <a class="link" href="NMSettingWifiP2P.html" title="NMSettingWifiP2P"><span class="type">NMSettingWifiP2P</span></a> object. </p>
<p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: 1.16</p>
</div>
<hr>
<div class="refsect2">
<a name="nm-setting-wifi-p2p-get-peer"></a><h3>nm_setting_wifi_p2p_get_peer ()</h3>
<pre class="programlisting">const <span class="returnvalue">char</span> *
nm_setting_wifi_p2p_get_peer (<em class="parameter"><code><a class="link" href="NMSettingWifiP2P.html" title="NMSettingWifiP2P"><span class="type">NMSettingWifiP2P</span></a> *setting</code></em>);</pre>
<div class="refsect3">
<a name="nm-setting-wifi-p2p-get-peer.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>setting</p></td>
<td class="parameter_description"><p>the <a class="link" href="NMSettingWifiP2P.html" title="NMSettingWifiP2P"><span class="type">NMSettingWifiP2P</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="nm-setting-wifi-p2p-get-peer.returns"></a><h4>Returns</h4>
<p> the <span class="type">“peer”</span> property of the setting</p>
</div>
<p class="since">Since: 1.16</p>
</div>
<hr>
<div class="refsect2">
<a name="nm-setting-wifi-p2p-get-wps-method"></a><h3>nm_setting_wifi_p2p_get_wps_method ()</h3>
<pre class="programlisting"><a class="link" href="NMSettingWirelessSecurity.html#NMSettingWirelessSecurityWpsMethod" title="enum NMSettingWirelessSecurityWpsMethod"><span class="returnvalue">NMSettingWirelessSecurityWpsMethod</span></a>
nm_setting_wifi_p2p_get_wps_method (<em class="parameter"><code><a class="link" href="NMSettingWifiP2P.html" title="NMSettingWifiP2P"><span class="type">NMSettingWifiP2P</span></a> *setting</code></em>);</pre>
<div class="refsect3">
<a name="nm-setting-wifi-p2p-get-wps-method.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>setting</p></td>
<td class="parameter_description"><p>the <a class="link" href="NMSettingWifiP2P.html" title="NMSettingWifiP2P"><span class="type">NMSettingWifiP2P</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="nm-setting-wifi-p2p-get-wps-method.returns"></a><h4>Returns</h4>
<p> the <span class="type">“wps-method”</span> property of the setting</p>
</div>
<p class="since">Since: 1.16</p>
</div>
<hr>
<div class="refsect2">
<a name="nm-setting-wifi-p2p-get-wfd-ies"></a><h3>nm_setting_wifi_p2p_get_wfd_ies ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Byte-Arrays.html#GBytes"><span class="returnvalue">GBytes</span></a> *
nm_setting_wifi_p2p_get_wfd_ies (<em class="parameter"><code><a class="link" href="NMSettingWifiP2P.html" title="NMSettingWifiP2P"><span class="type">NMSettingWifiP2P</span></a> *setting</code></em>);</pre>
<div class="refsect3">
<a name="nm-setting-wifi-p2p-get-wfd-ies.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>setting</p></td>
<td class="parameter_description"><p>the <span class="type">NMSettingWiFiP2P</span></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="nm-setting-wifi-p2p-get-wfd-ies.returns"></a><h4>Returns</h4>
<p>the <span class="type">“wfd-ies”</span> property of the setting. </p>
<p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: 1.16</p>
</div>
</div>
<div class="refsect1">
<a name="NMSettingWifiP2P.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="NM-SETTING-WIFI-P2P-SETTING-NAME:CAPS"></a><h3>NM_SETTING_WIFI_P2P_SETTING_NAME</h3>
<pre class="programlisting">#define NM_SETTING_WIFI_P2P_SETTING_NAME "wifi-p2p"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="NM-SETTING-WIFI-P2P-PEER:CAPS"></a><h3>NM_SETTING_WIFI_P2P_PEER</h3>
<pre class="programlisting">#define NM_SETTING_WIFI_P2P_PEER       "peer"
</pre>
<p>The mac address of the peer to connect to.</p>
</div>
<hr>
<div class="refsect2">
<a name="NM-SETTING-WIFI-P2P-WPS-METHOD:CAPS"></a><h3>NM_SETTING_WIFI_P2P_WPS_METHOD</h3>
<pre class="programlisting">#define NM_SETTING_WIFI_P2P_WPS_METHOD "wps-method"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="NM-SETTING-WIFI-P2P-WFD-IES:CAPS"></a><h3>NM_SETTING_WIFI_P2P_WFD_IES</h3>
<pre class="programlisting">#define NM_SETTING_WIFI_P2P_WFD_IES    "wfd-ies"
</pre>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.1</div>
</body>
</html>