From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 1/6] gprs-provision: add driver API header
Date: Thu, 20 Jan 2011 15:51:34 -0600 [thread overview]
Message-ID: <4D38AE66.8030805@gmail.com> (raw)
In-Reply-To: <1295529099-21082-2-git-send-email-jukka.saunamaki@nokia.com>
[-- Attachment #1: Type: text/plain, Size: 1306 bytes --]
Hi Jukka,
> +/*
> + * Callback from provisioning plugin.
> + */
> +typedef void (*ofono_gprs_provision_cb_t)(
> + const struct ofono_gprs_provision_data settings[],
> + int count, void *user_data);
> +
> +struct ofono_gprs_provision_driver {
> + const char *name;
> + int priority;
> + int (*probe)(struct ofono_gprs_provision_context *context);
> + void (*remove)(struct ofono_gprs_provision_context *context);
> + void (*get_settings)(struct ofono_gprs_provision_context *context,
> + ofono_gprs_provision_cb_t cb,
> + void *user_data);
> +};
So I don't really see the point in an asynchronous provisioning driver.
If you want to do this over D-Bus or something then you might as well
provision via the ConnectionManager interface. The other problem with
being async is that is nearly impossible to support multiple
provisioning plugins properly. I'd rather not deal with the race
conditions.
If we can't make the lookup fast enough to be done synchronously, then I
think we should give up.
I also don't see the point of instantiating these per modem. The API
already has all the information it needs in the get_settings call. So
having the plugin allocate its data in the plugin init function and free
it there seems enough to me.
Regards,
-Denis
next prev parent reply other threads:[~2011-01-20 21:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-20 13:11 [gprs-provision PATCHv5 0/6] Plugin API for provisioning of GPRS context setting Jukka Saunamaki
2011-01-20 13:11 ` [PATCH 1/6] gprs-provision: add driver API header Jukka Saunamaki
2011-01-20 21:51 ` Denis Kenzior [this message]
2011-01-21 7:39 ` Jukka Saunamaki
2011-01-21 17:44 ` Denis Kenzior
2011-01-24 7:10 ` Jukka Saunamaki
2011-01-24 10:16 ` Aki Niemi
2011-01-24 10:38 ` Aki Niemi
2011-01-20 13:11 ` [PATCH 2/6] ofono.h: add new atom type for gprs-provision Jukka Saunamaki
2011-01-20 13:11 ` [PATCH 3/6] gprs-provision: add driver API sources Jukka Saunamaki
2011-01-20 13:11 ` [PATCH 4/6] modem: probe gprs_provision drivers Jukka Saunamaki
2011-01-20 13:11 ` [PATCH 5/6] gprs: add gprs context provisioning Jukka Saunamaki
2011-01-20 13:11 ` [PATCH 6/6] gprs-provision: add example context provisioning driver Jukka Saunamaki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D38AE66.8030805@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.