<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<refentry id="NMDeviceEthernet">
<refmeta>
<refentrytitle role="top_of_page">NMDeviceEthernet</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBNM-GLIB Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>NMDeviceEthernet</refname>
<refpurpose></refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>



#define             <link linkend="NM-DEVICE-ETHERNET-HW-ADDRESS:CAPS">NM_DEVICE_ETHERNET_HW_ADDRESS</link>
#define             <link linkend="NM-DEVICE-ETHERNET-SPEED:CAPS">NM_DEVICE_ETHERNET_SPEED</link>
#define             <link linkend="NM-DEVICE-ETHERNET-CARRIER:CAPS">NM_DEVICE_ETHERNET_CARRIER</link>
                    <link linkend="NMDeviceEthernet-struct">NMDeviceEthernet</link>;
<link linkend="GObject">GObject</link>*            <link linkend="nm-device-ethernet-new">nm_device_ethernet_new</link>              (<link linkend="DBusGConnection">DBusGConnection</link> *connection,
                                                         const <link linkend="char">char</link> *path);
const <link linkend="char">char</link>*         <link linkend="nm-device-ethernet-get-hw-address">nm_device_ethernet_get_hw_address</link>   (<link linkend="NMDeviceEthernet">NMDeviceEthernet</link> *device);
<link linkend="guint32">guint32</link>             <link linkend="nm-device-ethernet-get-speed">nm_device_ethernet_get_speed</link>        (<link linkend="NMDeviceEthernet">NMDeviceEthernet</link> *device);
<link linkend="gboolean">gboolean</link>            <link linkend="nm-device-ethernet-get-carrier">nm_device_ethernet_get_carrier</link>      (<link linkend="NMDeviceEthernet">NMDeviceEthernet</link> *device);

</synopsis>
</refsynopsisdiv>

<refsect1 role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>

  <link linkend="GObject">GObject</link>
   +----<link linkend="NMObject">NMObject</link>
         +----<link linkend="NMDevice">NMDevice</link>
               +----NMDeviceEthernet
</synopsis>

</refsect1>





<refsect1 role="properties">
<title role="properties.title">Properties</title>
<synopsis>

  &quot;<link linkend="NMDeviceEthernet--carrier">carrier</link>&quot;                  <link linkend="gboolean">gboolean</link>              : Read
  &quot;<link linkend="NMDeviceEthernet--hw-address">hw-address</link>&quot;               <link linkend="gchararray">gchararray</link>            : Read
  &quot;<link linkend="NMDeviceEthernet--speed">speed</link>&quot;                    <link linkend="guint">guint</link>                 : Read
</synopsis>
</refsect1>



<refsect1 role="desc">
<title role="desc.title">Description</title>
<para>

</para>
</refsect1>

<refsect1 role="details">
<title role="details.title">Details</title>
<refsect2>
<title><anchor id="NM-DEVICE-ETHERNET-HW-ADDRESS:CAPS" role="macro"/>NM_DEVICE_ETHERNET_HW_ADDRESS</title>
<indexterm><primary>NM_DEVICE_ETHERNET_HW_ADDRESS</primary></indexterm><programlisting>#define NM_DEVICE_ETHERNET_HW_ADDRESS  "hw-address"
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="NM-DEVICE-ETHERNET-SPEED:CAPS" role="macro"/>NM_DEVICE_ETHERNET_SPEED</title>
<indexterm><primary>NM_DEVICE_ETHERNET_SPEED</primary></indexterm><programlisting>#define NM_DEVICE_ETHERNET_SPEED       "speed"
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="NM-DEVICE-ETHERNET-CARRIER:CAPS" role="macro"/>NM_DEVICE_ETHERNET_CARRIER</title>
<indexterm><primary>NM_DEVICE_ETHERNET_CARRIER</primary></indexterm><programlisting>#define NM_DEVICE_ETHERNET_CARRIER     "carrier"
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="NMDeviceEthernet-struct" role="struct"/>NMDeviceEthernet</title>
<indexterm><primary>NMDeviceEthernet</primary></indexterm><programlisting>typedef struct _NMDeviceEthernet NMDeviceEthernet;</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="nm-device-ethernet-new" role="function"/>nm_device_ethernet_new ()</title>
<indexterm><primary>nm_device_ethernet_new</primary></indexterm><programlisting><link linkend="GObject">GObject</link>*            nm_device_ethernet_new              (<link linkend="DBusGConnection">DBusGConnection</link> *connection,
                                                         const <link linkend="char">char</link> *path);</programlisting>
<para>
Creates a new <link linkend="NMDeviceEthernet"><type>NMDeviceEthernet</type></link>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>connection</parameter>&nbsp;:</term>
<listitem><simpara> the <link linkend="DBusGConnection"><type>DBusGConnection</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>path</parameter>&nbsp;:</term>
<listitem><simpara> the DBus object path of the device
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a new device
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="nm-device-ethernet-get-hw-address" role="function"/>nm_device_ethernet_get_hw_address ()</title>
<indexterm><primary>nm_device_ethernet_get_hw_address</primary></indexterm><programlisting>const <link linkend="char">char</link>*         nm_device_ethernet_get_hw_address   (<link linkend="NMDeviceEthernet">NMDeviceEthernet</link> *device);</programlisting>
<para>
Gets the hardware (MAC) address of the <link linkend="NMDeviceEthernet"><type>NMDeviceEthernet</type></link></para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>device</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="NMDeviceEthernet"><type>NMDeviceEthernet</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the hardware address. This is the internal string used by the
device, and must not be modified.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="nm-device-ethernet-get-speed" role="function"/>nm_device_ethernet_get_speed ()</title>
<indexterm><primary>nm_device_ethernet_get_speed</primary></indexterm><programlisting><link linkend="guint32">guint32</link>             nm_device_ethernet_get_speed        (<link linkend="NMDeviceEthernet">NMDeviceEthernet</link> *device);</programlisting>
<para>
Gets the speed of the <link linkend="NMDeviceEthernet"><type>NMDeviceEthernet</type></link>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>device</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="NMDeviceEthernet"><type>NMDeviceEthernet</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the speed of the device
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="nm-device-ethernet-get-carrier" role="function"/>nm_device_ethernet_get_carrier ()</title>
<indexterm><primary>nm_device_ethernet_get_carrier</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link>            nm_device_ethernet_get_carrier      (<link linkend="NMDeviceEthernet">NMDeviceEthernet</link> *device);</programlisting>
<para>
Whether the device has carrier.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>device</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="NMDeviceEthernet"><type>NMDeviceEthernet</type></link>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the device has carrier
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1 role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2><title><anchor id="NMDeviceEthernet--carrier"/>The <literal>&quot;carrier&quot;</literal> property</title>
<indexterm><primary>NMDeviceEthernet:carrier</primary></indexterm><programlisting>  &quot;carrier&quot;                  <link linkend="gboolean">gboolean</link>              : Read</programlisting>
<para>
Whether the device has carrier.</para>
<para>

</para><para>Default value: FALSE</para>
</refsect2>
<refsect2><title><anchor id="NMDeviceEthernet--hw-address"/>The <literal>&quot;hw-address&quot;</literal> property</title>
<indexterm><primary>NMDeviceEthernet:hw-address</primary></indexterm><programlisting>  &quot;hw-address&quot;               <link linkend="gchararray">gchararray</link>            : Read</programlisting>
<para>
The hardware (MAC) address of the device.</para>
<para>

</para><para>Default value: NULL</para>
</refsect2>
<refsect2><title><anchor id="NMDeviceEthernet--speed"/>The <literal>&quot;speed&quot;</literal> property</title>
<indexterm><primary>NMDeviceEthernet:speed</primary></indexterm><programlisting>  &quot;speed&quot;                    <link linkend="guint">guint</link>                 : Read</programlisting>
<para>
The speed of the device.</para>
<para>

</para><para>Default value: 0</para>
</refsect2>

</refsect1>





<refsect1><refsect2 /><refsect2 /></refsect1>
</refentry>
