Re: [MM] [PATCH 4/5] novatel: Poll for whether the connection still exists.
- From: Aleksander Morgado <aleksander lanedo com>
- To: Nathan Williams <njw google com>
- Cc: networkmanager-list gnome org
- Subject: Re: [MM] [PATCH 4/5] novatel: Poll for whether the connection still exists.
- Date: Wed, 02 May 2012 12:24:59 +0200
On 05/01/2012 06:09 PM, Nathan Williams wrote:
> +static gboolean
> +poll_connection (MMBroadbandBearerNovatel *bearer)
> +{
> + mm_base_modem_at_command (
> + bearer->priv->connection_modem,
> + "$NWQMISTATUS",
> + 3,
> + FALSE,
> + (GAsyncReadyCallback)poll_connection_ready,
> + bearer);
> + return TRUE;
> +}
Why the extra connection_modem object in the private struct? There's
already a proper reference to the modem object in the MMBearer parent,
which can be retrieved getting the MM_BEARER_MODEM property.
--
Aleksander
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]